Solved

generating heap dump file in java

Posted on 2010-11-11
3
717 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
  • 2
3 Comments
 
LVL 5

Expert Comment

by:jcott28
Comment Utility
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
Comment Utility
>>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
Comment Utility
found an answer myself
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
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 about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
The viewer will learn how to implement Singleton Design Pattern in Java.

772 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now