tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: OutOfMemory Exception initializing page context
Date Tue, 02 Dec 2003 17:43:04 GMT

Howdy,
How was 512MB determined to be the correct heap size for the
application?  Could it be that 512MB is too little for your application
when faced with a high load?

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Rob Wichterman [mailto:rwichterman@nuventive.com]
>Sent: Tuesday, December 02, 2003 12:40 PM
>To: 'Tomcat Users List'
>Subject: RE: OutOfMemory Exception initializing page context
>
>I consulted with the developers and they said we don't use or do
>anything that you suggested except we do use tomcat's connection
pooling
>for oracle.  We are running Sun j2sdk1.4.2_02 with the Concurrent Mark
>Sweep GC with -Xmx512m. I currently use the verbose logging for GC
>times.  The odd thing is that it does not seem to progressively go up
>but rather spike up with high GC times and the full GC will not clean
>anything out.
>
>Thanks,
>
>Rob
>
>____________________________
>Rob Wichterman
>
>Systems Analyst
>
>Nuventive
>3996 Mount Royal Blvd.
>Allison Park, PA 15101
>Tel: 412-487-7424
>Fax: 412-487-3355
>Email: rwichterman@nuventive.com
>Website: www.nuventive.com
>
>
>-----Original Message-----
>From: Christopher Schultz [mailto:christopher.d.schultz@comcast.net]
>Sent: Tuesday, December 02, 2003 11:00 AM
>To: Tomcat Users List
>Subject: Re: OutOfMemory Exception initializing page context
>
>Rob,
>
>> Well I have had my -Xmx set to as high as 1gb and I still receive
>these
>> errors.  The site will stay running for at best 1 day without
>crashing.
>> I was just hoping one of these could point me in a direction while I
>> work on looking at memory leaks.
>
>Sorry for the levity. Try this:
>
>Turn on verbose GCs, and make sure you're sending stdout to a log file
>(Tomcat does this by default, I think). Empty the stdout log file,
>restart Tomcat and then let it run out of memory.
>
>Take a look at the GC output (they are prettty obvious) and see what's
>happening to memory. I've done this in the past, and I even wrote a
>(long lost) Perl script to parse the log file and generate X-Y
>coordinates that I could plot using Excel. We could plainly see that
>there was a memory leak of some kind because the graph kept going up
and
>up.
>
>It does take a long time to find memory leaks but there are a couple of
>things you can check.
>
>First of all, what JSK are you using?
>
>Check some of the following:
>- Are you starting any of your own threads? If so, are they dying when
>the context reloads?
>- Are you reloading the context a lot?
>- Do any of your container objects like hashtables or whatever keep
>references to things like the ServletContext, etc.?
>- Do you regularly remove old objects from users' sessions?
>- Are you doing any XSLT?
>- Are you using a database connection pool or are you creating new
>connections for each user?
>- Do you keep any persistent connections like sockets or anything open?
>
>-chris
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message