40 likes | 381 Views
JConsole (Java monitoring and Management Console). Application for real-time monitoring of Java apps Located at <JDK>binJConsole(.exe) Bundled with the JDK since 6.0 (not with the JRE) JConsole User Guide: http://download.oracle.com/javase/6/docs/technotes/guides/management/jconsole.html.
E N D
JConsole(Java monitoring and Management Console) • Application for real-time monitoring of Java apps • Located at <JDK>\bin\JConsole(.exe) • Bundled with the JDK since 6.0 (not with the JRE) • JConsole User Guide: http://download.oracle.com/javase/6/docs/technotes/guides/management/jconsole.html
Java Dump • Easiest way to see what’s going on in a running application (or one that has exited abnormally) • Usually named like this: javacore.20110604.072156.336.0002.txt (date.time, time, and serial number) • By default, it’s created on fatal native exceptions or out of memory • Can be triggered inside the application using com.ibm.jvm.Dump.JavaDump() • Manually induced by sending a break signal to the JRE: • Hitting Ctrl+Break on an interactive Java console • kill -3 <pid> (UNIX) • SendSignal.exe <pid> (Win32) • http://www.latenighthacking.com/projects/2003/sendSignal/SendSignal.exe • SendSignal64.exe <pid> (Win7/64bit) • Send me a note if SendSignal doesn’t work on your Win platform
Final slide No title