top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

0 votes
299 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
...