StringWriter sw = new StringWriter();
      e.printStackTrace(new PrintWriter(sw));
      String stacktrace = sw.toString();
      System.out.println("stacktrace = " + stacktrace.split("\n")[0]);

'java core' 카테고리의 다른 글

-XX:+AggressiveOpts -XX:+DoEscapeAnalysis 테스트  (0) 2010.03.02
JVM crash..  (0) 2010.02.25
/tmp/hsperfdata_계정(hsperfdata_www)/asdfjasdfd 파일  (0) 2010.02.22
Java Dns Cache관련  (0) 2010.01.11
JMX Test Code  (0) 2009.12.31
Posted by '김용환'
,