Tag archive for linux

How to take thread dumps

How to take thread dumps

tail -f /var/log/escenic/engine1-catalina.out > /tmp/threaddumps.log & for i in $(seq 1 10); do kill -QUIT `cat /var/run/escenic/engine1.pid`; sleep 1; done fg Starts logging Tomcat output to /tmp/threaddumps.log. Triggers 10 JVM thread dumps, spaced 1 second apart. Brings the logging process back to the foreground so you can…

Continue reading →

Update the timezone

Update the timezone

dpkg-reconfigure tzdata sudo ntpdate ntp.ubuntu.com

Continue reading →