📌
ibook
  • README
  • cheatsheet
    • bash
      • builtin
      • syntactic sugar
      • cmd
      • havefun
    • text-processing
      • awk
      • sed
      • html
      • json
      • regex
      • unicode
    • osx
    • curl
    • tricky
    • widget
    • proxy
    • colors
    • math
    • media
    • ssl
      • keystore
      • verification
      • server
      • client
      • tricky
    • windows
      • powershell
      • choco
      • wsl
      • wt
      • shortcut
      • clsid
      • env
      • shell:folder
  • vim
    • nvim
    • install
    • color
    • plugins
      • usage
      • other plugins
      • deprecated
    • tricky
    • viml
    • windows
    • troubleshooting
  • devops
    • admin tools
    • ssh
    • git
      • config
      • alias
      • submodule
      • eol
      • example
      • gerrit
        • gerrit API
      • github
      • troubleshooting
      • tricky
      • statistics
    • pre-commit
    • release-tools
    • tmux
      • cheatsheet
    • ansible
    • vault
    • artifactory
      • api
      • cli
      • aql
      • nginx cert
    • klocwork
      • kwadmin
      • kwserver
      • api
      • q&a
    • elk
    • mongodb
    • android
    • mobile
  • jenkins
    • config
      • windows
    • appearance
    • troubleshooting
    • jenkinsfile
      • utility
      • parallel
      • build
      • envvar
      • properties
      • trigger
      • node
    • script
      • job
      • build
      • stage
      • agent
      • security & authorization
      • exception
      • monitor
      • tricky
    • api
      • blueocean
    • cli
    • plugins
      • kubernetes
      • docker
      • shared-libs
      • lockable-resource
      • ansicolor
      • badge
      • groovy-postbuild
      • simple-theme
      • customizable-header
      • artifactory
      • jira-steps
      • job-dsl
      • build-timeline
      • crumbIssuer
      • coverage
      • uno-choice
      • tricky
  • virtualization
    • kubernetes
      • init
        • kubespray
        • kubeadm
          • environment
          • crio v1.30.4
          • docker v1.15.3
          • HA
        • addons
        • etcd
      • kubectl
        • pod
        • deploy
        • replicasets
        • namespace
        • secrets
      • node
      • certificates
      • events
      • kubeconfig
      • kubelet
      • troubleshooting
      • cheatsheet
      • auth
      • api
      • tools
        • monitor
        • helm
        • network
        • minikube
    • docker
      • run & exec
      • voume
      • remove
      • show info
      • dockerfile
      • dockerd
      • tricky
      • troubleshooting
      • windows
    • crio
    • podman
  • ai
    • prompt
  • osx
    • apps
      • init
      • brew
    • defaults
    • system
    • network
    • script
    • tricky
  • linux
    • devenv
    • util
      • time & date
      • output formatting
      • params
      • tricky
    • nutshell
    • disk
    • network
    • troubleshooting
    • system
      • apt/yum/snap
      • authorization
      • apps
      • x11
    • ubuntu
      • systemctl
      • x
    • rpi
  • programming
    • groovy
    • python
      • config
      • basic
      • list
      • pip
      • q&a
    • others
    • archive
      • angular
      • maven
      • mysql
        • installation
        • logs
      • ruby
        • rubyInstallationQ&A
  • tools
    • fonts
    • html & css
    • Jira & Confluence
    • node & npm
      • gitbook
      • hexo
      • github.page
      • code themes
    • app
      • microsoft office
      • vscode
      • virtualbox
      • iterm2
      • browser
      • skype
      • teamviewer
      • others
  • quotes
  • english
Powered by GitBook
On this page
  • troubleshooting
  • other tools

Was this helpful?

  1. jenkins

troubleshooting

PreviousappearanceNextjenkinsfile

Last updated 7 months ago

Was this helpful?

[!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

  • 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

      • i.e.: visualvm.exe --jdkhome "C:\Software\Java\jdk1.6.0" --userdir "C:\Temp\visualvm_userdir"

other tools

nfsiostat
nfsstat
vmstat - understanding Thread DumpUnderstanding Thread Dumpss
top
top -H
netstat
jstack
stap
List All the Classes Loaded in the JVM
fastthread.io
MAT: Eclipse Memory Analyzer
VisualVM
Decimal to Hexadecimal Converter
GC Log Analyzer
Prepare Jenkins for Support
CloudBees Jenkins JVM troubleshooting
* Supported Java 8 arguments
* Supported Java 11 arguments
* collectPerformanceData Script
Diagnosing Errors
Tuning Jenkins GC For Responsiveness and Stability with Large Instances
** Java Heap settings Best Practice
Minimum and maximum heap sizes
How to Troubleshoot and Address Jenkins Startup Performances
How to Troubleshoot and Address Jenkins Startup Performances
Required Data: Jenkins Hang Issue On Linux
collectPerformanceData Script
collectPerformanceData.sh
Understanding Thread Dumps
fastthread.io
gceasy.io
What causes high CPU usage and how can I reduce it
troubleshooting
tools
thread dump
other tools
generate heap dump
Eclipse Memory Analyzer
VisualVM