Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

generating heap dump file in java

Posted on 2010-11-11
3
Medium Priority
?
753 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

705 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