Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java performance tuning, JNI memory leak

I have a Java application. It is a Linux platform. and we are using Java 6. It is normal sdk java plus some JNI.

We using visualvm to monitor the memory leak. We notice from visualvm application does not consume heap continuously. But the whole process memory increases all the time up to linux killing the process.

Then we are suspecting the JNI part. Since JNI part memory leak could not be seen by visualvm. Could someone drop some hints on how to check JNI memory leak when do Java Performance testing?

like image 799
user84592 Avatar asked Jan 24 '26 10:01

user84592


1 Answers

Oracle has some documentation on how you can create your own leak tracker in such a case. The dbx command is mentioned as one alternative available on Linux.

like image 65
Amir Afghani Avatar answered Jan 26 '26 00:01

Amir Afghani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!