codeaprendiz.github.io

DevOps Essentials

View on GitHub

jstack

NAME

jstack - stack trace

SYNOPSIS

jstack [ option ] pid

jstack [ option ] executable core

jstack [ option ] [server-id@]remote-hostname-or-IP

DESCRIPTION

jstack prints Java stack traces of Java threads for a given Java process or core file or a remote debug server. For each Java frame, the full class name, method name, ‘bci’ (byte code index) and line number, if available, are printed.

PARAMETERS

OPTIONS

$ pid=1345
$ jstack $pid >jstack.PID.$pid.TIMESTAMP.$(date +%H%M%S.%N)