#!/bin/sh -x


ret=`ps -ef f|grep java | grep tomcat | awk '{print $2}'`


jstack $ret >> thread_$(date +%Y%m%d_%H%M%S).tmp


http://helloworld.naver.com/helloworld/10963