Solved

Tomcat getting out-of-memory errors

Posted on 2004-09-20
1
139 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

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

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

752 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