Link to home
Start Free TrialLog in
Avatar of Jay Roy
Jay RoyFlag for United States of America

asked on

generating heap dump file in java

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
Avatar of jcott28
jcott28

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>
ASKER CERTIFIED SOLUTION
Avatar of Jay Roy
Jay Roy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jay Roy

ASKER

found an answer myself