Hitachi

uCosminexus Application Server Definition Reference Guide


-XX:[+|-]HitachiVerboseGCPrintDeleteOnExit (Heap size output option used by java.io.File.deleteOnExit())

Organization of this page

Format

-XX:+HitachiVerboseGCPrintDeleteOnExit

This option outputs the cumulative heap size allocated by invoking the java.io.File.deleteOnExit() method and the method invocation count.

-XX:-HitachiVerboseGCPrintDeleteOnExit

This option does not output the cumulative heap size allocated by invoking the java.io.File.deleteOnExit() method and the method invocation count.

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.

Default value
  • -XX:+HitachiVerboseGCPrintDeleteOnExit

Prerequisite options
  • -XX:+HitachiVerboseGC

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] [Metaspace: metaspace_info][class space: class_space_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).

doe_alloc_size

Specifies the cumulative heap size allocated by invoking the java.io.File.deleteOnExit()method.

called_count

Specifies the invocation count of the java.io.File.deleteOnExit() method.

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)
[DOE]java.io.File.deleteOnExit's heap size output function stopped.

The following is the contents of the error message:

DOE

Specifies an identifier indicating that an error occurred in the heap size output function of the java.io.File.deleteOnExit().

date

Specifies the date when the error occurred.

Examples of output

Precautions