United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6280629 : Need ability to dump the heap at OutOfMemoryError

Details
Type:
Enhancement
Submit Date:
2005-06-05
Status:
Resolved
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2005-09-08
Component:
core-svc
OS:
generic
Sub-Component:
tools
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
When java.lang.OutOfMemoryError is thrown because the heap or perm space is full it would be desirable to dump the java heap to a file. For example, if the VM were to dump the heap in HPROF binary format then we could browse the heap using jmap.
###@###.### 2005-06-05 19:46:31 GMT

                                    

Comments
EVALUATION

This would be very useful.
###@###.### 2005-06-05 19:47:16 GMT
                                     
2005-06-05
EVALUATION

This was added in b43. If an application runs with -XX:+HeapDumpOnOutOfMemoryError then the heap will be dumped to a file when OutOfMemoryError is first thrown. Another option can be used to configure the name/location of the dump if required (default is java_pid<pid>.hprof in the working directory).
                                     
2005-09-08
EVALUATION

--

This feature was back-ported to 5.0 update 7.

It was also back-ported to 1.4.2_12 but is missing the some changes needed to work with the through-put collector (-XX:+UseParallelGC). These will included in a future update of 1.4.2.
                                     
2006-07-24



Hardware and Software, Engineered to Work Together