|
Quick Lists
|
|
Bug ID:
|
6204527
|
|
Votes
|
0
|
|
Synopsis
|
Need mechanism to run user-defined script/command when OutOfMemoryError is thrown
|
|
Category
|
java:serviceability
|
|
Reported Against
|
|
|
Release Fixed
|
mustang(b34)
|
|
State
|
10-Fix Delivered,
request for enhancement
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
6243251
,
6201872
|
|
Submit Date
|
06-DEC-2004
|
|
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.
xxxxx@xxxxx 2004-12-06 16:39:21 GMT
|
|
Work Around
|
N/A
|
|
Evaluation
|
As per description.
xxxxx@xxxxx 2004-12-06 16:43:22 GMT
|
|
Comments
|
Submitted On 07-JAN-2005
KGroves
A solution such as that proposed in 6201872 ( http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6201872 ) would be far more generic.
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |