Trace object allocation flag proposal
tomas.hurka at googlemail.com
Fri Dec 17 01:51:50 PST 2010
On 16 Dec 2010, at 20:26, Xiaobin Lu wrote:
> Taking snapshot is ok, but analysing the heap is pain of neck. So far, I had no luck to get jhat to work with 2G heap dump even with -Xmx12g specified (maybe I should fix that problem instead, John Rose suggested me a while ago to file a bug, maybe I should work on that problem instead. Sorry for taking so long.).
Instead of jhat you can use Java VisualVM. It does not load the heap dump into memory (it uses memory-mapped files), so it does not need a gigabyte java heap to open 2G heap dump. Try the one from the latest JDK 6u23 and run it on 64bit VM.
Tomas Hurka <mailto:tomas.hurka at oracle.com>
NetBeans Profiler http://profiler.netbeans.org
Oracle, Praha Czech Republic
More information about the hotspot-runtime-dev