Can jconsole be used to identify memory leaks in J

2019-08-11 00:02发布

Is it possible to identify the C++ allocations that are unfreed? The C++ calls are made using JNI from my Java application to which I'm planning to attach jconsole. If that is possible please tell how (whether in an exported dump file or otherwise) you have been able to see the heap objects that were left unfreed.

标签: c++ jconsole
1条回答
做个烂人
2楼-- · 2019-08-11 00:51

No. C++ code doesn't allocate memory from anywhere that the JVM can see. (Unless you're talking about Java objects allocated from C++.)

查看更多
登录 后发表回答