top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

When or how thrashing or physical dump memory error occurs in java programming?

0 votes
79 views
When or how thrashing or physical dump memory error occurs in java programming?
posted Sep 23, 2014 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

You can use the jmap tool provided with java installation to acquire the memory dump.

Command is something similar to,

jmap -dump:live,format=b,file=heap.bin

Here I have passed some parameter to the jmap command.

live – Only get dump for live objects.
format=b – Format of the output file should be binary.
file=heap.bin – Name of the dump file.

Read more: http://docs.oracle.com/javase/7/docs/technotes/tools/share/jmap.html.

answer Sep 24, 2014 by Pushkar K Mishra
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...