Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat out of memory error

Status
Not open for further replies.

aisne

Programmer
Sep 19, 2005
5
ZA
Hi,
I have just started at a company where I've been asked to solve the following problem. We are running a web app on Tomcat 4.1.12 (Stanalone, ie no apache server), on Linux 7.3.2, and every few days tomcat reports an out of memory error. -Xmx (ie heap size) is defined and is 430 MB. Can anyone propose an approach I can take to start this investigation?
Rgds
Aisne
 
There should be a stack trace in the logs that tells you where the OutOfMemoryError was - you will then have to analyze the code surrounding the stack trace to see what the heck is using so much memory.

BTW, are you sure that you do have 430 MB assigned to Tomcat ?

I would also write a quick JSP to monitor the memory, so that you can call it at times through the day to see how much RAM you are using, or even better implement a filter that prints out memory stats on each request.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
BTW, what is "Linux 7.3.2" ? Which distro are you actually using ? There is no such OS as "Linux 7.3.2" ...

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top