Solved

Tomcat getting out-of-memory errors

Posted on 2004-09-20
1
136 Views
Last Modified: 2010-08-05
Hi,

I am getting intermittent out-of-memory errors on Tomcat.  The server is Windows 2003 with 2 Gig of memory.  We do share the server with an MS-SQL Server but there are only 16 or so people using it, hardly concurrently either.  We check all our database connections are getting closed.  I am not sure what to look for or where to look.  If it is a matter of expanding the Tomcat memory, can you please advise on how to do that?

Thanks
0
Comment
Question by:techhound
1 Comment
 
LVL 23

Accepted Solution

by:
rama_krishna580 earned 500 total points
ID: 12108390
Hi,

1) I suspected this to be the JSP compiler, however, it turns out to be part of the Hotspot engine. This component running out of memory is only a symptom, not the cause of the problem. It probably is your code causing the problem.

ad 2) Sorry, I misinterpreted this to be the JSP compiler. It is the hotspot engine. Go to http://forums.itrc.hp.com/cm/1,,,00.html and select "search". Type in "CompileThread0" and you will get pointers to two articles hinting at a possible bug in the JVM/Hotspot engine and/or missing patches. As one of the messages is dated February, you may actually find a patch correcting this if it is a JVM bug.

ad 3) That's a random effect.

ad 4) As I mentioned, we have also found funny effects with Tomcat 3. Try to upgrade to Tomcat 4 and see if the problem persists. Chances are, the more recent Xerces and Tomcat libraries work more reliable.

ad 5) You can quickly define a LoggingStream which basically forwards all method calls to an underlying Stream object, but also logs data being sent back and forth. This is a rather trivial exercise, so I am not including code here.

If you have a chance to try your code on a Solaris or Linux system, try it. My suspicion is that your code will run just fine under these operating systems with Tomcat 4.

I am afraid, this is all I can offer to help... good luck!!!

R.K
0

Featured Post

New! My Passport Wireless Pro Wi-Fi Mobile Storage

Portable wireless storage to offload, edit, and stream anywhere.

High-capacity, wireless mobile storage designed to accompany professional photographers and videographers in the field to easily offload, edit and stream captured photos and high-definition videos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now