[CommandBox 3.6] Could not reserve enough space for object heap

22 views
Skip to first unread message

brett

unread,
Apr 30, 2017, 9:17:16 PM4/30/17
to ColdBox Platform
I'm trying to start a server in command box and getting 'Could not reserve enough space for object help' message.  I'm on a windows VM and my startup stack trace is:

CommandBox:commandbox-jre-win64-3.6.0> server start --debug > c:\start.txt
Looking for server JSON file by convention: C:\Program Files\commandbox-jre-win6
4-3.6.0/server.json
webroot defaulted to location of server's JSON file: C:\Program Files\commandbox
-jre-win64-3.6.0
start server in - C:\Program Files\commandbox-jre-win64-3.6.0
server name - commandbox-jre-win64-3.6.0
server config file - C:\Program Files\commandbox-jre-win64-3.6.0/server.json
Contacting ForgeBox to determine the latest & greatest version of [lucee 5]...
Use an exact 'cfengine' version to skip this check.
OK, [lucee 5.1.2+24] it is!
WAR/zip archive already installed.
Server start command: C:\Program Files\commandbox-jre-win64-3.6.0\jre\bin\java.e
xe
    -jar C:\Users\me\.CommandBox\lib\runwar-3.6.0.jar
    --background=true
    --port 60571
    --host 127.0.0.1
    --debug true
    --stop-port 60620
    --processname commandbox-jre-win64-3.6.0 [lucee 5.1.2+24]
    --log-dir C:/Users/me/.CommandBox/server/D06583DD43FF7671D1D20899BA
748788-commandbox-jre-win64-3.6.0/lucee-5.1.2.24/logs
    --open-browser true
    --open-url http://127.0.0.1:60571
    --server-name commandbox-jre-win64-3.6.0
    --tray-icon C:\Users\me\.CommandBox\cfml\system\config\server-icons
\trayicon-lucee-32px.png
    --tray-config C:\Users\me\.CommandBox/server/D06583DD43FF7671D1D208
99BA748788-commandbox-jre-win64-3.6.0/trayOptions.json
    --servlet-rest-mappings /rest/*,/api/*
    --directoryindex true
    --timeout 240
    --cfengine-name lucee
    --jvm-args=-Xmx512m;-Xms512m
    -war C:\Program Files\commandbox-jre-win64-3.6.0
    --web-xml-path C:/Users/me/.CommandBox/server/D06583DD43FF7671D1D20
899BA748788-commandbox-jre-win64-3.6.0/lucee-5.1.2.24/WEB-INF/web.xml
    --urlrewrite-enable false
The server for C:\Program Files\commandbox-jre-win64-3.6.0 is starting on 127.0.
0.1:60571...
Runwar: RunwarLogger JDK loggers detected, org.jboss.logging set to level DEBUG
Runwar: RunwarLogger JDK loggers detected, RunwarLogger set to level DEBUG
Runwar: RunwarLoggerNo log4j loggers detected
Runwar: Starting background commandbox-jre-win64-3.6.0 [lucee 5.1.2+24] from: /C
:/Users/brettdeline/.CommandBox/lib/runwar-3.6.0.jar
Runwar: launching: [C:\Program Files\commandbox-jre-win64-3.6.0\jre\bin\java.exe
, -Xmx512m, -Xms512m, -jar, C:\Users\brettdeline\.CommandBox\lib\runwar-3.6.0.ja
r, --port, 60571, --host, 127.0.0.1, --debug, true, --stop-port, 60620, --proces
sname, commandbox-jre-win64-3.6.0 [lucee 5.1.2+24], --log-dir, C:/Users/brettdel
ine/.CommandBox/server/D06583DD43FF7671D1D20899BA748788-commandbox-jre-win64-3.6
.0/lucee-5.1.2.24/logs, --open-browser, true, --open-url, http://127.0.0.1:60571
, --server-name, commandbox-jre-win64-3.6.0, --tray-icon, C:\Users\brettdeline\.
CommandBox\cfml\system\config\server-icons\trayicon-lucee-32px.png, --tray-confi
g, C:\Users\brettdeline\.CommandBox/server/D06583DD43FF7671D1D20899BA748788-comm
andbox-jre-win64-3.6.0/trayOptions.json, --servlet-rest-mappings, /rest/*,/api/*
, --directoryindex, true, --timeout, 240, --cfengine-name, lucee, --jvm-args=-Xm
x512m;-Xms512m, -war, C:\Program Files\commandbox-jre-win64-3.6.0, --web-xml-pat
h, C:/Users/brettdeline/.CommandBox/server/D06583DD43FF7671D1D20899BA748788-comm
andbox-jre-win64-3.6.0/lucee-5.1.2.24/WEB-INF/web.xml, --urlrewrite-enable, fals
e, --background, false]
Runwar: timeout of 240 seconds
Starting in background -
Runwar: Error occurred during initialization of VM
Error occurred during initialization of VM
Runwar: Could not reserve enough space for object heap
Could not reserve enough space for object heap

CommandBox:commandbox-jre-win64-3.6.0>

Thoughts?
Thanks.
Brett

Jon Clausen

unread,
Apr 30, 2017, 9:29:17 PM4/30/17
to col...@googlegroups.com

Brett,

 

The default heap size for a CommandBox server is 512MB.  If you need anything smaller than that, you’ll need to set the server up for the smaller heap:

`server set JVM.heapSize=256`

HTH,

Jon

--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/e7161e60-c188-4c3b-b649-cdf1ac4ca211%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

br...@bradwood.com

unread,
Apr 30, 2017, 10:31:16 PM4/30/17
to col...@googlegroups.com
Specifically, that error means that your operating system cannot allocate enough RAM to start the JVM.  What Jon said it true, you'll need to start with a smaller heap.  Also, did you specify the min heap size?  If not, please upgrade to the latest version of CommandBox.  We no longer set the min heap size which should help reduce memory usage on your machine since the JVM won't ask the OS for all the RAM unless it needs it.

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: br...@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com 
 
 
--------- Original Message ---------

brett

unread,
May 1, 2017, 8:21:02 AM5/1/17
to ColdBox Platform
Thanks guys,

That did the trick.

Brett
Reply all
Reply to author
Forward
0 new messages