Keep tuning the respective memory sizes while measuring the memory usage by actually running the application. In the Application Server, you can output the detailed memory size of each area when garbage collection is executed in the form of extended verbosegc information by specifying the XX:+HitachiVerboseGC option in the usrconf.cfg file and invoking the J2EE server. Tune on the basis of this output.
The main contents that can be output in the form of extended verbosegc information are as follows:
For details about the output examples of extended verbosegc information and how to analyze the factors responsible for full garbage collection, see 7.9 How to analyze the factors of a full garbage collection using the extended verbosegc information. For details about the options, see -XX:[+|-]HitachiVerboseGC (extended verbosegc information output option) in the uCosminexus Application Server Definition Reference Guide.
Note that with Application Server, you can initiate a full garbage collection at any time by using the javagc command. In this case, you can output the same contents as the extended verbosegc information, by specifying the -v option. For details about the javagc command, see javagc (forced occurrence of garbage collection) in the uCosminexus Application Server Command Reference Guide.