3

Hi all!

I have a Native Java application in linux and i want detect memory weak. I try used Valgrind but seem that don't work fine. Then I tried to also install dbx (Oracle Studio) but it seems that is not available for Ubuntu 14.04. Is there another solution that can be used to detect these leaks ?

Alex
  • 149
  • 2
  • 9
  • Possible duplicate of [Recommendations for a heap analysis tool for Java?](http://stackoverflow.com/questions/2064427/recommendations-for-a-heap-analysis-tool-for-java) – shazinltc Oct 02 '15 at 11:32
  • Are you trying to fix a Java heap memory link (objects not being garbage collected) or a native-code memory leak (`malloc`-ed memory not being `free`-ed)? – Raedwald Oct 02 '15 at 11:43
  • native-code memory leak – Alex Oct 02 '15 at 11:51
  • See http://stackoverflow.com/questions/5541309/installing-solaris-studio-12-2-in-ubuntu for running Solaris Studio on Ubuntu – Andrew Henle Oct 02 '15 at 13:36
  • This question is related: http://stackoverflow.com/questions/26041117/growing-resident-memory-usage-rss-of-java-process – Lari Hotari Feb 25 '16 at 19:14

2 Answers2

2

In my opinion, the best tool you can use to detect memory leaks and performance problems is JProfiler

You can easily detect both of them and it has integrations with a lot of IDEs (Eclipse, STS, Netbeans, IntelliJ, etc...).

It's not free, but you can request an evaluation key to test the tool for about 10 days.

jfcorugedo
  • 9,793
  • 8
  • 39
  • 47
0

Eclipse MAT is a good tool to analyze memory for Java applications. They have good documentation for common use cases.

A similar question was asked here

Community
  • 1
  • 1
shazinltc
  • 3,616
  • 7
  • 34
  • 49