Thursday, 1 March 2018

Identifying the bottleneck threads using Thread Dump

top - to list CPU and memory utilization by pid

top -H -p PID (e.g top -H -p 12100) - to list the CPU utilization by mulithreaded

Generate the thread dump using jstack:

jstack -l pid > filename

e.g jstack -l 12100 > ThreadDump_01032018.txt

Conversion of Decimal to HexaDecimal :

printf "%x \n" PID

e.g  printf "%x \n" 12100

No comments:

Post a Comment