Solved

Tomcat getting out-of-memory errors

Posted on 2004-09-20
1
138 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Internal DNS Zone Issue 13 88
AWS New EC2 Instance and EBS Storage 2 93
SSL sertificate 5 74
How can i point a subdomain to directory? 5 38
This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

713 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