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

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

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

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

Thanks guys,

That did the trick.

Brett