seandaniels
05/31/2023, 1:10 PMjvm.heapSize=2048
value in server.json, that value is obviously used for the server when it starts. Is that value also used by Commandbox for other commands? For example, if I run box install
will the Commandbox process also grab another 2GB of memory? I ask because I am running a server on an EC2 instance with 4GB memory and 2048 heapsize. Sometimes when I do a deploy the entire instance crashes when it gets to the box install
part of the deploy (like can't even ssh to it). Trying to figure out why...bdw429s
05/31/2023, 4:04 PMbdw429s
05/31/2023, 4:05 PMbdw429s
05/31/2023, 4:05 PMbdw429s
05/31/2023, 4:06 PMbdw429s
05/31/2023, 4:06 PMbdw429s
05/31/2023, 4:07 PMbdw429s
05/31/2023, 4:07 PMseandaniels
05/31/2023, 5:09 PMseandaniels
05/31/2023, 5:10 PMbox install
so it didn't seem to me to be too heavy a task (probably a dozen or so packages?) but hey who knows. It was definitely happening repeatedly at that exact step in the deploy.bdw429s
05/31/2023, 5:12 PMbdw429s
05/31/2023, 5:12 PMbdw429s
05/31/2023, 5:12 PMseandaniels
05/31/2023, 5:13 PMseandaniels
05/31/2023, 5:18 PMcommandbox-dotenv
and I'm on *nix and I add BOX_JAVA_ARGS="-Xms512m -Xmx512m"
to my .env, that should do it, eh?bdw429s
05/31/2023, 5:18 PMseandaniels
05/31/2023, 5:18 PMseandaniels
05/31/2023, 5:18 PMbdw429s
05/31/2023, 5:19 PMseandaniels
05/31/2023, 5:19 PMbdw429s
05/31/2023, 5:19 PMbdw429s
05/31/2023, 5:19 PMseandaniels
05/31/2023, 5:20 PMbdw429s
05/31/2023, 5:20 PMbox
that sets that and then runs the real_box
, etcbdw429s
05/31/2023, 5:20 PMseandaniels
05/31/2023, 5:21 PMbox install