Javaish question. I have an issue with commandbox ...
# box-products
r
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?
Copy code
server.json
{
    "app":{
        "cfengine":"adobe@2018"
    },
    "jvm":{
        "heapSize":"2048"
    },
    "web":{
        "http":{
            "port":"52482"
        }
    }
}
r
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
No thats not the case
image.png
r
Are you running a 64-bit JVM?
r
I think so. Its the JVM that is included in the commandbox download.
r
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
That did the trick thanks. I must have donwloaded the wrong version
👍🏻 1