Skip to content

Instantly share code, notes, and snippets.

@carloscasalar
Last active September 16, 2015 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carloscasalar/b0b71c91d36929d82252 to your computer and use it in GitHub Desktop.
Save carloscasalar/b0b71c91d36929d82252 to your computer and use it in GitHub Desktop.
Analyze PermGen java error

Java memory leaks

Generate dump in tomcat

> ps -fu <user>

UID        PID  PPID  C STIME TTY          TIME CMD
42377     5012 21158  0 17:22 pts/0    00:00:00 ps -fu <user>
42377    12788     1  1 09:44 ?        00:04:35 /opt/java/bin/java <....> org.apache.catalina.startup.Bootstrap start
42377    21153 21123  0 16:21 ?        00:00:00 sshd: <user>@pts/0
42377    21158 21153  0 16:21 pts/0    00:00:00 -bash

> jmap -heap:format=b 12788
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment