tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Delbecq <>
Subject Re: Very Long Full GC after Inactivity
Date Mon, 08 Oct 2007 17:02:31 GMT

check the jvm runs in "server" mode (check there is a '-server'
parameter given to jvm startup). Server and client mode have different
GC mecanisms.
Bill Clarke-Fields a écrit :
> Hi,
> We are running an application on Tomcat 5.0.28 with Java 1.4.2.  The usage
> of the application is very cyclical.  It is used heavily during the day, and
> lightly at night.  During peak daytime hours, a full garbage collection
> takes less than 2 seconds, which is fine.  However, after a long period of
> inactivity in the evening, a full garbage collection will be triggered and
> take a very long time.  Sometimes over a minute!
> Is there any way to avoid this long garbage collection?  Why does it take so
> long?  (Maybe because it is filling up with many small objects over time
> rather than a few larger objects?)
> Thanks for your help.
> -Bill
> p.s. Upgrading to a newer version of Tomcat or Java is unfortunately not an
> option at this point.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message