Hi guys,
I use Karaf 3.0.2 with java 8_u40 and investigate on a memory leak in one of 
our bundles we developed. I created a heap dump using the karaf command 
dump-create which is very useful. It created a dump.zip file containing all the 
information I need. However, I tried to open the heapdump.txt with jvisualvm to 
analyze the memory of our application but jvisualvm cannot open the dump file. 
I used a second memory analysis tool, eclipse memory analyzer and this tool was 
able to open the dump file and get the information of the dump ... Have you 
ever tried opening a memory dump with visualvm, it is the tool I prefer for 
finding leaks?

Secondly, I like to " live" monitor memory using jvisualvm  and use its Heap 
Dump button to create memory dumps when I want to, but when I try to use this 
command it doesn't work and I get the error "cannot take heap dump for 
org.apache.main.Main" ? Is there a way to configure karaf so that I can dump 
memory through jvisualvm ?

Which tool do you usually use to find memory leaks  ?

Thank you.

Regards

Seb



[@@ OPEN @@]

Reply via email to