troubleshooting
[!TIP|label:official recommended]
troubleshooting
[!NOTE|label:references:]
Unrecognized VM Option
UseGCLogFileRotation
GCLogFileSize=100m
PrintGCDateStamps
PrintGCCause
PrintTenuringDistribution
PrintReferenceGC
PrintAdaptiveSizePolicy
tools
[!NOTE|label:tools]
iostat
prepare
$ apt update $ apt install sudo vim netstat net-tools sysstat nfs-common $ sudo systemctl start sysstat $ sudo systemctl enable sysstat $ cat /etc/cron.d/sysstat
[!NOTE|label:tips for sar]
if you wanted to check your memory usage instead, you could use the
-r
argument rather than-u
$ sar -r 2 30
collectPerformanceData.sh
$ curl -sO https://s3.amazonaws.com/cloudbees-jenkins-scripts/e206a5-linux/collectPerformanceData.sh $ chmod +x collectPerformanceData.sh $ sudo -u $JENKINS_USER sh collectPerformanceData.sh $JENKINS_PID 300 5 $ or <jenkins> $ bash collectPerformanceData.sh $JENKINS_PID 300 5 [INFO] Collected a threadDump for PID 8. [INFO] A new collection will start in 5 seconds. [INFO] Taking top data collection. [INFO] Taking TopdashH data collection. [INFO] Taking vmstat data collection. [INFO] Taking netstat collection. [INFO] Taking iostat data collection. [INFO] Taking nfsiostat data collection. [INFO] Taking nfsstat data collection.
[!NOTE]
300
: "Length to run the script in seconds"5
: "Intervals to execute commands in seconds"
thread dump
generated via monitor plugin
generate heap dump generated via
jmap
[!NOTE|label:references:]
$ pid=$(ps auxfww | grep devops-jenkins | awk '{print $2}') $ jmap -dump:format=b,file=/opt/tmp/heapdump.bin ${pid}
analysis via
Eclipse Memory Analyzer i.e.:
visualvm.exe --jdkhome "C:\Software\Java\jdk1.6.0" --userdir "C:\Temp\visualvm_userdir"
VisualVM
other tools
Last updated
Was this helpful?