Saturday, 15 September 2012

Scanner program OutOfMemoryError & Java Heap dump analysis using Memory analyzer (MAT -



Scanner program OutOfMemoryError & Java Heap dump analysis using Memory analyzer (MAT -

i trying analyze heap dump of java applet runs out of heapspace if increment heap size shown in post. applet: java heap space

now took heap dumps today morning (yes..its possible take digital dumps) , im trying analyze them mat , visual vm 1.3.5. after running leak test, key suspects org.eclipse.jdt.internal.core.javamodelmanager , org.eclipse.jst.jee.archive.internal.archiveimpl.. havent used of these in code.

visual vm shows highest space taken byte[], int[], char[], java.lang.string , short[] classes. not using many of these in program. how should understand dump , should next steps? can post re-create of dump if needed.

update: mat improve visual vm in case here. have been taking dumps (again.. digital dumps) , analyzing them both tools since morning. while vvm shows org.eclipse.jdt.internal.core.javamodelmanager , org.eclipse.jst.jee.archive.internal.archiveimpl suspects in leak suspect reports, eclipse memory analuzer (mat) shows swing application making thumbnails of images in folder (each image 100kb) , showing them jtogglebutton. 1 time thumbnails added, jtogglebutton size 6mb.. hence if there 100 images in folder, thumbnails of images 600mb atleast. , besides that, need other stuff program.. mat helped in case identify exact objects took heap space.

thanks dj.

1)i created heap dump using jconsole @ different points of running program, 2)imported them memory analyzer 3)ran leak suspect study 4)observed sizes of biggest instances , number of them. showed me problem , im trying solve , dont know how .. yet. atleast glad found out mat , more helpful visual vm in case. hope helps else. below link next question.

swing applet.. jtogglebutton size 6mb. how can cut down size

java out-of-memory heap heap-dump

No comments:

Post a Comment