Solved

Tomcat getting out-of-memory errors

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
php.ini on ipage hosting 12 42
Website's Backend -- software used ? 2 85
Problem to Eclipse 16 105
whm high memory usage in processes 7 40
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…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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

10 Experts available now in Live!

Get 1:1 Help Now