-XX:[+|-]HitachiVerboseGCPrintDeleteOnExit (Heap size output option used by java.io.File.deleteOnExit())
Format
Description
Specifies whether to output the cumulative heap size that JavaVM allocates by invoking the java.io.File.deleteOnExit() method and the method invocation count, to the JavaVM log file.
The path information for a specified file is allocated to a heap each time the java.io.File.deleteOnExit()method is invoked; however, the allocated area is not released until the process ends; and therefore, might lead to compression of memory. If you specify the -XX:+HitachiVerboseGCPrintDeleteOnExit option, JavaVM can invoke the java.io.File.deleteOnExit() method, output the allocated heap size to a log, and monitor the size. The method invocation count can also be output concurrently as the supplementary information to understand the invocation status of java.io.File.deleteOnExit().
The information that is output helps to understand the heap size allocated by invoking the java.io.File.deleteOnExit() and to investigate the cause of memory shortage when an error occurs. You can also use this information to check the changes in the increase of the heap size allocated by invoking the java.io.File.deleteOnExit() and to check for any signs of memory compression during operations, in the development and testing phase before the start of operations.
Note that an error message is displayed when an error occurs.
Output format
The output format of the JavaVM log file is as follows:
[id] <date> (Skip Full:full_count, Copy:copy_count, Inc:inc_count) [gc_kind gc_info, gc_time secs][Eden: eden_info][Survivor: survivor_info][Tenured: tenured_info][Perm: perm_info][cause:cause_info] [User: user_cpu secs][Sys: system_cpu secs][IM: jvm_alloc_size, mmap_total_size, malloc_total_size][TC: thread_count][DOE: doe_alloc_size, called_count] |
The output contents are explained below. Note that the following explains the items output by this option. For items other than explained below, see the output format described in -XX:[+|-]HitachiVerboseGC (Option for extended verbosegc information output).
The output format of the error message displayed when an error occurs is as follows:
[DOE] date Error occurred during processing of java.io.File.deleteOnExit's heap size output function. (maintenance-information) |
The following is the contents of the error message:
Examples of output
[VGC]<Wed Jan 27 13:03:36 2010>(Skip Full:0,Copy:0)[GC 489K->152K(3520K), 0.0156080 secs][DefNew::Eden: 489K->0K(2048K)][DefNew::Survivor: 0K->63K(64K)][Tenured: 0K->88K(1408K)][Perm: 1867K->1867K(8192K)][cause:ObjAllocFail][IM: 729K, 928K, 0K] [TC: 509][DOE: 16K, 170] |
[DOE]<Wed Jan 27 13:03:36 2010> Error occurred during processing of java.io.File.deleteOnExit's heap size output function. (FindClass:java.lang.String) |
Precautions