Taking heap dumps

I sometimes see IntelliJ hanging. The problem is that I can't pin down the sequence of operations that causes it to happen. Is it possible for me to trigger a heap dump when IntelliJ enters into that state so that it can be analyzed for possible performance problems?

0
3 comments

Hello Omair-Inam Abdul-Matin,

I sometimes see IntelliJ hanging. The problem is that I can't pin down
the sequence of operations that causes it to happen. Is it possible
for me to trigger a heap dump when IntelliJ enters into that state so
that it can be analyzed for possible performance problems?


For a hung process, a thread dump is likely more interesting.
You can obtain one by one of the following:
-Ctrl-Break on console
-"jps" tool
-http://tmitevski.users.mcs2.netarray.com/stacktrace/app/launch.jnlp

For heap dumps you can use:
-the built-in memory snapshot button (if possible)
-external YourKit client (get eval version from yourkit.com)
-"jmap" tool

Taras


0
Avatar
Permanently deleted user

1. By console... do you mean the command-line console? ... I run IntelliJ using the shortcut so I don't get a console.. do I press ctrl+break in the IntelliJ window...
2. By default where does the threaddumps go (which directory)?

0
Avatar
Permanently deleted user

Never mind .. I can use stacktrace to hook into the IDEA process and get the stack trace...

0

Please sign in to leave a comment.