Jstack

From NovaOrdis Knowledge Base
Revision as of 15:13, 14 July 2017 by Ovidiu (talk | contribs) (Created page with "=External= * http://download.oracle.com/javase/6/docs/technotes/tools/share/jstack.html * Insufficient memory or insufficient privileges to attach http://stackoverflow.com/qu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

External

Internal

Overview

Dumps the thread stacks at stdout:

jstack <pid>

Insufficient memory or insufficient privileges to attach

When getting this, I made it work by using -F command line option:

jstack -F <pid>

Options

-F

Frce a thread dump. Use when jstack <pid> does not respond (process is hung).

-m

Print both java and native frames (mixed mode).

-l

Long listing. Prints additional information about locks.