uCosminexus Application Server, Maintenance and Migration Guide

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

4.9.2 Acquiring J2EE Server Memory Dump

This section describes how to acquire a J2EE server memory dump for each OS.

Organization of this subsection
(1) In Windows
(2) In UNIX

(1) In Windows

When a J2EE server is running (when the cjstartsv process exists), acquire the cjstartsv process ID from the task manager. Execute the userdump.exe process-ID and extract the memory dump (user.dump).

(2) In UNIX

When the cjstartsv process is down, acquire a core dump output in the working-directory/ejb/server-name.

When restarting the cjstartsv process, the names of the core dump files are renamed in core.output-date-time# (in AIX, HP-UX, and Solaris) or core.process-ID.output-date-and-time# (in Linux). The core dumps are not saved by overwriting when re-starting the cjstartsv process, therefore, you can save the core dumps generated when errors occur.

#
The output date and time is output in the YYMMDDhhmmss format.
YY: Western calendar year (Last 2 digits) MM: Month (2 digits) DD: Day (2 digits)
hh: Hour (2 digits in 24 hour notation) mm: Minute (2 digits) ss: Seconds (2 digits)

Note that you can set the upper limit value for the core dumps to be saved. In Windows, when restarting the cjstartsv process and executing the javacore command, starting from the oldest, the core dump is deleted in the order of output date and time. In UNIX, when the total size of the core dump files output to the working-directory/ejb/server-name exceeds the upper limit value, the core dump files are deleted in the order of output date and time starting from the oldest. The upper limit value is specified in ejb.server.corefilenum of the J2EE server extension parameter in the <configuration> tag of the logical J2EE server (j2ee-server) in the Easy Setup definition file. Note that the files are deleted during restart of the cjstartsv process. For details about setting the upper limit value for number of core files, see 3.3.18 Settings for Acquiring a Core Dump.

After acquiring a core dump, execute the javatrace command to acquire only the stack trace information from the core dump. The stack trace information is the information required for investigating the cause of abnormal termination of JavaVM. For details about how to acquire the stack trace information, see the section 4.18 JavaVM stack trace information.

You can acquire a core dump in the following cases. How to acquire a core dump for each case is described below: