United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6608975 HeapDumpPath option is ignored for dumps written by HeapDumpOnCtrlBreak functionality
JDK-6608975 : HeapDumpPath option is ignored for dumps written by HeapDumpOnCtrlBreak functionality

Details
Type:
Enhancement
Submit Date:
2007-09-25
Status:
Resolved
Updated Date:
2011-03-01
Project Name:
JDK
Resolved Date:
2009-03-24
Component:
core-svc
OS:
generic
Sub-Component:
tools
CPU:
other
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0u14
Fixed Versions:
5.0u19 (b01)

Related Reports
Backport:

Sub Tasks

Description
FULL JDK VERSION(S):

java version "1.4.2_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_15-b02)
Java HotSpot(TM) Client VM (build 1.4.2_15-b02, mixed mode)

java version "1.5.0_13-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-ea-b01)
Java HotSpot(TM) Server VM (build 1.5.0_13-ea-b01, mixed mode)


DESCRIPTION:

(This only applies to 5.0 and 1.4.2, since the HeapDumpOnCtrlBreak code does not exist in Java 6.)

The -XX:HeapDumpPath=[path/filename] option only works for heapdumps produced by the -XX:+HeapDumpOnOutOfMemoryError functionality. It has no effect on dumps produced by HeapDumpOnCtrlBreak.

This is because the HeapDumpPath option is only used in the code that handles OutOfMemoryErrors (report_java_out_of_memory())- it is not queried by the SIGQUIT/SIGBREAK handling code (signal_thread_entry()).

The SIGQUIT/SIGBREAK handling code should be modified such that it picks up the path specified in the -XX:HeapDumpPath=[path/filename] option.

                                    

Comments
WORK AROUND

Start the VM from the directory in which you want your heapdumps to be written.
                                     
2007-09-25
EVALUATION

The "specification" for the +HeapDumpOnCtrlBreak is that the heap dump is generated in the VM working directory. It would be desirable to
                                     
2007-09-25



Hardware and Software, Engineered to Work Together