Hi there, I am wondering if commandbox (under Java...
# box-products
m
Hi there, I am wondering if commandbox (under Java 11) will expand to use as much memory as it needs (without setting xmx and xms) ? I cant find any docs on that (just how to set it)
b
Are you asking about the CLI or a server? Either way, the answer should be the same. There's no max set in either case, so this becomes a Java question.
Are you wanting to set a max on the CLI or something?
m
Ok. That’s what I was assuming. That it would use up as much as it needs rather than being limited. I guess my question was if there is a defaulted limit.
about the server. As we were adding the heapsize in server.json
b
Yeah, after years of seeing Production ColdFusion servers with a max heap of 512 or whatever it was because no one ever cahnged the default, I had decided to just not set one in CommandBox. And Java has gotten smarter on choosing a heap size, especially in Docker, allowing you to more/less control the heap size of via your docker container memory size.
❤️ 1
If you want to cap the CLI itself, you can do it with this env var on *nix, or a properties file on Windows https://commandbox.ortusbooks.com/usage/execution#a-d-hoc-jvm-args-for-the-cli
m
Oh , I dont want to cap it. the opposite actually and you have answered my question:D
👍 1