diff options
author | Mattia Rizzolo <mattia@debian.org> | 2016-09-08 15:23:28 +0000 |
---|---|---|
committer | Mattia Rizzolo <mattia@debian.org> | 2016-09-08 15:23:28 +0000 |
commit | 6f7a081d9f2c37532ce0c7f2e83a4224fc2440b5 (patch) | |
tree | c1d6df06c27d2dfe5f0a56e64f63f7a923ec5667 /hosts/jenkins/etc/default | |
parent | 272ba8a6cc480c2f185221ebe7e6e4ec923f8804 (diff) | |
download | jenkins.debian.net-6f7a081d9f2c37532ce0c7f2e83a4224fc2440b5.tar.xz |
instruct java to store heap dumps in case of OOM
Diffstat (limited to 'hosts/jenkins/etc/default')
-rw-r--r-- | hosts/jenkins/etc/default/jenkins | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts/jenkins/etc/default/jenkins b/hosts/jenkins/etc/default/jenkins index ecf2a203..615b35f0 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 -Xmx3072m -XX:MaxPermSize=384m" +JAVA_ARGS="-Djava.awt.headless=true -Xmx3072m -XX:MaxPermSize=384m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/lib/jenkins/heapDumps/" PIDFILE=/var/run/$NAME/$NAME.pid |