Issue
Your CloudBees CD/RO server’s web UI is responding slowly, or you have other reasons to believe your CD server is encountering a performance issue, and you’d like to open a support ticket to get help.
Resolution
The required data is:
-
Symptoms - Screen shots of what you see in the UI, or a description of what you see in the UI that makes you suspect a performance issue
-
Time range - Approximate time range when this issue was observed, including the time zone
-
Logs - the commander.log from that timeframe
-
If you have Garbage Collection logs enabled, then upload the gc logs from the path
-Xloggc:$path/gc.log
-
Clear the system statistics:
ectool --server localhost login admin ectool dumpStatistics --clearStatistics true > ~/dumpStatistics_hostName_Before.txt
-
Then reproduce the slowness, and generate diagnostics data:
ectool --server localhost login admin ectool getServerStatus --diagnostics 1 > GSS_hostName.txt ectool dumpStatistics > dumpStatistics_hostName_After.txt
-
Attach the generated files
dumpStatistics_hostName_Before.txt`
,dumpStatistics_hostName_After.txt
, andGSS_hostName.txt
-
Run getJobDetails on a specific job to test if the slowness is in the UI or the backend
-
Attach the output of running collectPerformanceData.sh with the PID of your CD server process:
-
Check you have the required tools to run the script included in the
$PATH
. ThecollectPerformanceData.sh
script collects thread dumps using thejstack
command. It also needs to be able to runtop
,vmstat
,netstat
,nfsiostat
,nfsstat
andiostat
. Please make sure that the user running this script can execute all of these commands. -
Execute the script while the issue is occurring.
cd /tmp/ curl https://s3.amazonaws.com/cloudbees-jenkins-scripts/e206a5-linux/collectPerformanceData.sh -o collectPerformanceData.sh # optional, but strongly recommended: download busybox so 'top' and 'top -H' can be collected if those commands are not available on the system curl https://busybox.net/downloads/binaries/1.35.0-x86_64-linux-musl/busybox -o busybox export BUSYBOX_HOME=/tmp chmod +x collectPerformanceData.sh chmod +x busybox jps ./collectPerformanceData.sh PID
-
-
The output file name will be
performanceData.PID.output.tar.gz
. Attach this file to the support ticket.
collectPerformanceData.sh requires a JDK to be able to collect thread dumps. CloudBees CD/RO is installed with a JRE.
|
The output from this script can be understood by reviewing What is collectPerformanceData.sh and how does it help?. |