Tools for native memory leak analysis

Viewed 13798

I am suspecting a native memory leak in my java code. Are there any tools which do native memory profiling? Also, does any tool support native memory analysis of a running java process?

Thanks!!

Edit: I have already tried Memory Validator and Purify but it seems they support only 32-bit processes. Is there some tool similar to the above ones which can simply attach to a running windows process and give us native memory analysis for that particular process?

6 Answers

These are tools you can use for debugging

  1. libtcmalloc HPROF: For heap profiling
  2. The jcmd Utility, PSS for the process: Can help in confirming a native leak.
  3. Native Memory Tracking: Tracking native memory leak in JVM (only works for allocation inside JVM)
  4. Core dump analysis, pmap and gdb checking for anon blocks and process memory overtime
  5. -Xcheck:jni

Further details can be found out here https://www.bro-code.in/blog/java-debugging-native-memory-leak http://www.oracle.com/technetwork/java/javase/memleaks-137499.html#gbyvk

Related