Solved

generating heap dump file in java

Posted on 2010-11-11
3
749 Views
Last Modified: 2012-05-10
hi guys

I am using IBM RAD ide with websphere test environment on windows xp
I want to intentionally create a heap dump file so that i can analyze it.

Any idea what java code needs to be written so that i can get the heapdump file generated and analyze it?

any help appreciated

thanks
0
Comment
Question by:royjayd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Expert Comment

by:jcott28
ID: 34114605
What are you trying to get a heapdump from?  A specific process?

You can use the jmap tool to get a heapdump of a proecss

jmap -dump:format=b,file=cheap.bin <process id>
0
 

Accepted Solution

by:
royjayd earned 0 total points
ID: 34114710
>>A specific process?

yes, sometihng like an outofmemory process

where do i put this?
jmap -dump:format=b,file=cheap.bin <process id>
0
 

Author Closing Comment

by:royjayd
ID: 34143563
found an answer myself
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to implement Singleton Design Pattern in Java.

634 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question