United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6204527 Need mechanism to run user-defined script/command when OutOfMemoryError is thrown
JDK-6204527 : Need mechanism to run user-defined script/command when OutOfMemoryError is thrown

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

Related Reports
Relates:
Relates:

Sub Tasks

Description
When java.lang.OutOfMemoryError is thrown because the heap is full it would be very useful to temporarily suspend the VM and run a sequence of scripts/commands to get further information about the environment and the heap. For example we could run the jmap utility and get summary information about the heap, or generate a HPROF heap dump.

This RFE is submitted to track the need for option such as -XX:OnFirstOutOfMemoryJava. The option would be like the -XX:OnError option except that it would run with the first thread throws OOME due to the heap or perm space being full.
###@###.### 2004-12-06 16:39:21 GMT

                                    

Comments
EVALUATION

As per description.
###@###.### 2004-12-06 16:43:22 GMT
                                     
2004-12-06



Hardware and Software, Engineered to Work Together