Reputation: 13413
How do we track memory allocation in a Java application that makes use of JNI layer. More specifically if the underlying C code does some memory allocation, can we track those allocations using some profiler [Eclipse/Netbeans].
Upvotes: 7
Views: 1455
Reputation: 8552
It should be possible to track those allocations using a native framework like Valgrind.
Running a JNI application in the Sun VM under Valgrind
Upvotes: 2