JDK-6204527 : Need mechanism to run user-defined script/command when OutOfMemoryError is thrown
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-12-06
  • Updated: 2017-05-19
  • Resolved: 2005-04-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b34Fixed
Related Reports
Relates :  
Relates :  
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
06-12-2004