soham roy
|
Posted: March 15, 2009 09:01 by soham roy
|
|
Java "Out of Memory" Exceptions are often encountered by developers in their daily tryst with codes and varied production servers.Well once we have the "Heap Dump" file generated from a crashing JVM,the standards tools supplied by Sun (see: Your_JDK / bin) such as "JConsole" or tools by IBM such as "ha34.jar" can come real handy. 1. JConsole: Java Monitoring and Management Console (JConsole) tool. It uses the extensive instrumentation of the Java virtual machine to provide information on performance and resource consumption of applications running on the Java platform using Java Management Extension (JMX) technology. It not only defines the management interfaces for the Java virtual machine, but also provides out-of-the-box remote monitoring and management on the Java platform and of applications that run on it. - Install JDK 1.6. -Set "path","JAVA_HOME" amd "JRE_HOME". -Start Tomcat 5.5 from cmd.(Or any other application that uses the above set JDK configurations) -Find the process ID (PID) from the Task Manager.(say 2468) for the "java.exe" or "javaw.exe". -Traverse to C:\Program Files\Java\jdk1.6.0\bin. -C:\Program Files\Java\jdk1.6.0\bin>jconsole 2468 2. ha34.jar : The IBM JVM 1.4 onwards spits out a PHD format (Portable Heap Dump) file instead of just HeapDump files. IBM HeapAnalyzer allows the finding of a possible Java heap leak area through its heuristic search engine and analysis of the Java heap dump in Java applications -Download the "ha34.jar" from either of the two sources. a. DOWNLOAD (From IBM AlphaWorks) b. DOWNLOAD DIRECTLY FROM MY DOWNLOADS -Set classpath to the JAR file kept under "C:\Program Files\Java\jdk1.6.0\bin". -From cmd C:\Program Files\Java\jdk1.6.0\bin>java -jar ha34.jar or, C:\Program Files\Java\jdk1.6.0\bin>java -Xms10m -Xmx12m -jar ha34.jar -Import the PHD files. -Just import the PHD file into the application and start your analysis. Get further deatiled help with screen shots and confguration steps at my personal blog site Click here |
JVM Memory Usage Analysis...
Replies: 0 - Last Post: March 15, 2009 09:01
by: soham roy
by: soham roy
« Older Topic
» Newer Topic
showing 1 - 1 of 1
Replies: 0 - Last Post: March 15, 2009 09:01
by: soham roy
by: soham roy
« Older Topic
» Newer Topic






