Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suggestions for finding a memory leak in a web application running in Apache Tomcat

I've got an Axis2 web service that just fell over on a client site it's throwing the following exception: java.lang.OutOfMemoryError: unable to create new native thread

I'm just pulling the logs off the site but in the interim I was wondering if anyone knew of any monitoring tools I could use to find a memory leak in a web application running in Tomcat.

like image 435
Omar Kooheji Avatar asked Dec 17 '22 13:12

Omar Kooheji


2 Answers

Make a heap dump, and analyse it with Eclipse Memory Analyzer.

like image 166
Daniel Avatar answered Dec 19 '22 04:12

Daniel


Try VisualVM.

like image 33
johnstok Avatar answered Dec 19 '22 03:12

johnstok