jhat is a great tool for analyzing Java heap dumps, but for large heaps its easy to waste a lot of time. Give jhat a runtime heap too small, and it may take 15 minutes to fail and run out of memory.
We got a memory error in o开发者_StackOverflow社区ur EA and we used -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/path/to/some/dir to dump the heap at the time of OOM.
开发者_开发问答How much should be the initial size of the young generation? How much should be -XX:+NewRatio?
I ran the jhat on the heap dump, it has generated the reports. H开发者_StackOverflowow do i use the report to analyze the heap.I couldn\'t understand completely other than the instance count. Is there
Does anyone know the OQL syntax for finding new objects only in a heap output? I can\'t find good documentation on OQL options, sun even has an example of new-only output without sample syntax of the