문서의 이전 판입니다!
import com.sun.btrace.annotations.*; import static com.sun.btrace.BTraceUtils.*; import static com.sun.btrace.BTraceUtils.Sys.*; @BTrace public class SessionCheck { @OnMethod( clazz="org.apache.catalina.connector.Request", method="getSession" ) public static void showSessionRequest() { println("######################################################"); jstack(); println("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$"); } }
JVM의 PID를 확인한 뒤에
btrace 4288 SessionCheck.java