JDK-6608975 : HeapDumpPath option is ignored for dumps written by HeapDumpOnCtrlBreak functionality
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 5.0u14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: other
  • Submitted: 2007-09-25
  • Updated: 2017-05-16
  • Resolved: 2009-03-24
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.
Other
1.4.2_21Fixed
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
EVALUATION The "specification" for the +HeapDumpOnCtrlBreak is that the heap dump is generated in the VM working directory. It would be desirable to
25-09-2007

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