http://coldfusion.com logo
Title
r

Ryan Albrecht

05/25/2023, 12:52 PM
Javaish question. I have an issue with commandbox and starting a server on a windows 11 machine. I have set the jvm heap size to 2g and when I try start the server I get a
[ERROR] Could not reserve enough space for 2097152KB object heap
. I have tried running commandbox as administrator aswell. Anyone got any ideas?
server.json
{
    "app":{
        "cfengine":"adobe@2018"
    },
    "jvm":{
        "heapSize":"2048"
    },
    "web":{
        "http":{
            "port":"52482"
        }
    }
}
r

Rodney

05/25/2023, 1:01 PM
You don't have 2GB of contiguous memory available in the OS for the JVM. Either increase your RAM or lower the JVM heap size.
r

Ryan Albrecht

05/25/2023, 1:29 PM
No thats not the case
image.png
r

Rodney

05/25/2023, 1:32 PM
Are you running a 64-bit JVM?
r

Ryan Albrecht

05/25/2023, 1:33 PM
I think so. Its the JVM that is included in the commandbox download.
r

Rodney

05/25/2023, 1:37 PM
There are 2 versions available with JRE. Make sure it's the 64 bit one. FYI, a newer version of CommandBox is also available.
👍 1
You can also check JVM by going to the
\jre\bin
directory that came with Commandbox and run
.\java.exe --version
image.png
r

Ryan Albrecht

05/25/2023, 1:44 PM
That did the trick thanks. I must have donwloaded the wrong version
👍🏻 1