uCosminexus Application Server, Expansion Guide

[Contents][Index][Back][Next]

8.9 Releasing Explicit memory blocks by using the javagc command

This section describes the releasing of the Explicit management heap by using the javagc command.

You can execute releasing of Explicit memory blocks by using the javagc command at any time. As a result, you can explicitly release the Explicit memory blocks, which were not released by release processing when the automatic release functionality is enabled.

Organization of this section
(1) Execution timing
(2) Executed details

(1) Execution timing

Release processing is executed when you specify -ehgc option and execute javagc command.

Note
With release processing of Explicit memory blocks by using the javagc command, a full garbage collection is executed. Hence, it is not appropriate for the processing related to running applications. We recommend that you execute release processing when the application is not running, such as at the time of undeploying and at night time.

(2) Executed details

When you execute the javagc command, JavaVM executes a full garbage collection and outputs the EMJavaGC command as the cause of the garbage collection in extended the verbosegc information. After that, the following Explicit memory blocks are released:

For details on the causes of a garbage collection, see -XX:[+|-]HitachiVerboseGCPrintCause (garbage collection cause content output option) in the uCosminexus Application Server Definition Reference Guide.

The release processing is not executed in the following cases:

In this case, although the constructor is successfully executed, memory blocks are handled as invalid Explicit memory blocks (ExplicitMemory instances).