diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-12-23 18:10:15 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-12-23 18:10:15 +0100 |
commit | 70681faa45f16cf9d53ebc4dfebf9a7cc7370bc0 (patch) | |
tree | 17f7cf419beb3af31dff78dad6e33f8819b5e8eb /hosts/jenkins/etc/default | |
parent | 71f3d1a12951764b4fea9e6a91639de1a39c34c4 (diff) | |
download | jenkins.debian.net-70681faa45f16cf9d53ebc4dfebf9a7cc7370bc0.tar.xz |
tune jenkins with magic settings from https://jenkins.io/blog/2016/11/21/gc-tuning/
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'hosts/jenkins/etc/default')
-rw-r--r-- | hosts/jenkins/etc/default/jenkins | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hosts/jenkins/etc/default/jenkins b/hosts/jenkins/etc/default/jenkins index d1ade336..e5f74109 100644 --- a/hosts/jenkins/etc/default/jenkins +++ b/hosts/jenkins/etc/default/jenkins @@ -10,7 +10,7 @@ JAVA=/usr/bin/java #JAVA_ARGS="-Djava.awt.headless=true" # Allow graphs etc. to work even when an X server is present #JAVA_ARGS="-Xmx256m" #JAVA_ARGS="-Djava.net.preferIPv4Stack=true" # make jenkins listen on IPv4 address -JAVA_ARGS="-Djava.awt.headless=true -Xmx4096m -XX:MaxPermSize=384m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/lib/jenkins/heapDumps/" +JAVA_ARGS="-Djava.awt.headless=true -Xms4G -Xmx8G -server -XX:+AlwaysPreTouch -XX:MaxPermSize=384m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/lib/jenkins/heapDumps/ -Xloggc:$JENKINS_HOME/gc-%t.log -XX:NumberOfGCLogFiles=5 -XX:+UseGCLogFileRotation -XX:GCLogFileSize=20m -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCCause -XX:+PrintTenuringDistribution -XX:+PrintReferenceGC -XX:+PrintAdaptiveSizePolicy -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:+UnlockDiagnosticVMOptions -XX:G1SummarizeRSetStatsPeriod=1" PIDFILE=/var/run/$NAME/$NAME.pid @@ -38,7 +38,7 @@ JENKINS_LOG=/var/log/$NAME/$NAME.log # this is on by default because http://github.com/jenkinsci/jenkins/commit/2fb288474e980d0e7ff9c4a3b768874835a3e92e # reported that Ubuntu's PAM configuration doesn't include pam_limits.so, and as a result the # of file # descriptors are forced to 1024 regardless of /etc/security/limits.conf -MAXOPENFILES=32768 +MAXOPENFILES=65535 # set the umask to control permission bits of files that Jenkins creates. # 027 makes files read-only for group and inaccessible for others, which some security sensitive users |