Saturday, January 20, 2018

JVM thread dump heap dump process count thread count

Thread Dumps:

$JAVA_HOME/bin/jstack -l <pid>  > /tmp/threaddump_pd_runtime1_$(date).txt

Heap Dumps:
$JAVA_HOME/bin/jmap -dump:live,file=/tmp/file_name <PID>

JMAP:
$JAVA_HOME/bin/jmap -heap <pid> > /tmp/heapdump_pd_runtime1_$(date).txt

Getting the open file count:

/usr/sbin/lsof -u oracle | wc –l


Getting process count:
ps -eLf | grep oracle | wc -l


No comments:

Post a Comment