tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Memory leaks?
Date Thu, 04 Sep 2003 12:52:41 GMT

I completely agree with Senor Einfeldt's comments, having found exactly
the same results in my experience with -server.  Waiting for Tiger's
-server fixes.

To the original poster: any objects with dangling references may not be
recycled when your app is restarted.  These can have bad consequences,
such as excessive memory use or stale data, or even tomcat-killing
errors such as the dreaded CL: Lifecycle Stopped one ;)

You should very carefully inspect your app to close all resources that
you can: basically, if it has a public
close()/shutdown()/terminate()/whatever function, use it ;)  This
applies to DB objects, such as the connection/statement/result
set/connection pool, but also to others like JMS connections/sessions,
mail sessions, transactions, etc.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Ralph Einfeldt []
>Sent: Thursday, September 04, 2003 2:00 AM
>To: Tomcat Users List
>Subject: RE: Memory leaks?
>In my experience this is not a good recommendation:
>- -server is less stable than -client in all JDK's that I tried,
>  and this has been confirmed by several list members.
>- -server won't help much on out of memory errors. The gc is
>  behaving differently, but it can't free more objects, they
>  are just freed at different times. If you get a out of memory
>  error, there rn't any object that can be freed.
>> -----Original Message-----
>> From: Richard Hill []
>> Sent: Wednesday, September 03, 2003 7:40 PM
>> To: 'Tomcat Users List'
>> Subject: RE: Memory leaks?
>> Try passing the jvm the -server option
>> -----Original Message-----
>> From: Jim Lynch []
>> Sent: Wednesday, September 03, 2003 9:57 AM
>> To: tomcat
>> Subject: Memory leaks?
>> I seemed to have read that java/tomcat isn't supposed to have memory
>> leaks, but something seems to be running me out of memory and I don't
>> know what.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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.

View raw message