heap memory recommended for jenkins with docker (JAVA_OPTS)

12 views
Skip to first unread message

Mahesh Waikar

unread,
Jun 16, 2021, 4:05:25 AMJun 16
to Jenkins Users

What should be minimum and maximum recommended size for heap memory in JENKINS as per ram size ?

While starting jenkins server on Docker container, generally pass JAVA_OPTS parameter for heap memory allocation. There parameters are given below, Use -Xmx to specify the maximum heap size
 Use -Xms to specify the initial Java heap size
 Use -Xss to set the Java thread stack size

The example command would be: 

```

docker run --name myjenkins -p 8080:8080 -p 50000:50000 --env JAVA_OPTS=-Xmx512m-Xms512m  Dhudson.footerURL=http://mycompany.com jenkins/jenkins:lts

```

Reply all
Reply to author
Forward
0 new messages