javacore (Acquiring the core file and thread dump/in UNIX)
Format
javacore [-i|-f] [-force] -p process-ID
Function
This command collects a core file and a thread dump simultaneously during execution. This command is for UNIX only.
Arguments
Return values
Input example
javacore -p 8326
send SIGQUIT to 8326:?(y/n)
send SIGQUIT to 8326:?(y/n)y
Now generating core file (javacore8662.030806215140.core)... done (thread-dump-output) Writing Java core to javacore8662.030806215140.txt... OK |
Output messages
If any of the error messages described below or a warning message is issued, the core file and thread dump have not been collected.
Table 10-6 Error messages output by the javacore command
No. | Error message | Explanation |
---|---|---|
1 | usage: javacore [-f|-i] [-force] -p process-id | A command argument is invalid. |
2 | javacore: can't create work file at /tmp, this request canceled | The user does not have permission to reference or write data into /tmp. |
3 | javacore: illegal option --option | The indicated option specified in the command arguments is invalid. |
4 | javacore: unexpected error occurred: error-cause | An unexpected error occurred during command execution. |
5 | javacore: please delete name-of-undeleted-file in full-path-of- undeleted-file | When the command terminated, a file created by the internal process of the javacore command could not be deleted. Delete the non-deleted file in the full-path-of-the-non-deleted-file. |
6 | process-id: No such process | No process is found that matches the process indicated by process-id specified in the argument of the javacore command or the process indicated by process-id specified in the javacore command is not the java process. |
7 | process-id: Not owner | The executing user is not the owner of the process indicated by process-id specified in the command. |
8 | process-id: Now processing previous request, this request canceled | The process indicated by process-id specified in the command is currently generating a core. |
9 | process-id: Timeout occurred. Java process not responding. | The process indicated by process-id specified in the argument of the command does not return a response indicating that the core output processing terminated within the fixed time. In HP-UX, this message might be output and the javacore command might terminate, even in the following cases. If core.process-ID is created in the current directory of the target Java process and the size increases gradually, you can consider that the process is normally executed. Do not stop the Java process.
|
Notes