Like always, I ask the question then I find the answer, which is docker run --restart=unless-stopped -d -p 8080:8080 -v /home/jenkins:/var/jenkins_home --name jenkins_master --env JAVA_OPTS="-Xms24g -Xmx24g" 0123456789.dkr.ecr.us-east-1.amazonaws.com/jenkins_master:lts
On Friday, July 26, 2024 at 1:08:12 AM UTC-4 zil...@gmail.com wrote: > I have an AWS EC2 box with 32GB host memory. I run Jenkins as a container, > like this, hoping to use 24/32 GB of memory. > > docker run --restart=unless-stopped -d -p 8080:8080 -v > /home/jenkins:/var/jenkins_home --name jenkins_master --memory=24GB > 0123456789.dkr.ecr.us-east-1.amazonaws.com/jenkins_master:lts > > Notice the --memory 24GB option. However, when I look in the > Dashboard->Monitoring menu, I see the following memory usage, were Jenkins > is only using 8GB. > > > Java memory used: > 1,270 > <https://ci.eng.ziftsolutions.com/monitoring?part=graph&graph=usedMemory> Mb > / 8,192 Mb > > Obviously I'm using the wrong setting. How can I make Jenkins use 24GB? > > Thanks! > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cee413ce-275c-45af-9731-24fa32206ffdn%40googlegroups.com.