Solved

generating heap dump file in java

Posted on 2010-11-11
3
737 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
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

685 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