ThreadDump Automatici
Da wiki.gienne.cloud.
Versione del 11 ott 2018 alle 13:22 di Admin (Discussione | contributi)
#!/bin/bash export JAVA_HOME=/u01/oracle/Java/jdk1.8.0 export PATH=$PATH:$JAVA_HOME/bin DATE=$(date +"%H-%M-%S") PID=`ps -ef | grep apps_server | grep -v grep | awk '{print $2};'` HOSTNAMESRV=`hostname` while true; do sleep 10s DATE=$(date +"%H-%M-%S") jstack $PID > /misc/oracle/monitor/$HOSTNAMESRV/thread/threaddump-$DATE done