Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regards how to check memory leak in my web application?

Hai i am developing a web application with spring, hibernate and mysql. I would like to know weather there is any memory leak in my project because when there is many users login to my portal java utilization is maximum when users logout java memory is not getting released. Please suggest me any tool to check or give me any suggestion to resolve this problem.

like image 397
vicky Avatar asked Dec 05 '25 09:12

vicky


1 Answers

Memory Leak can be identified by collecting verbose gc logs. By adding the jvm argument -verbose:gc this will collect GC occupancy information. usually the output of this will be written in the native_stderr.log file or file where stderr has been redirected. Once the usage is over. Load the file in http://www.ibm.com/developerworks/java/jdk/tools/gcmv/ This tool will help you in identification of leaks and GC behavior throughout the life span of the application. Hope this will be helpful for you.

like image 107
Mohan Raj Avatar answered Dec 07 '25 21:12

Mohan Raj



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!