tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Very Long Full GC after Inactivity
Date Mon, 08 Oct 2007 21:40:09 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bill,

Bill Clarke-Fields wrote:
> Or, is there a way to schedule (or force) full garbage collections?

Not really. You can issue a call to Runtime.gc(), but it's not
guaranteed to do anything at all. My experience has been that the JVM
does respect your request for a GC, even if it does take a few seconds
to kick-in.

Do you know what causes these 1-minute-long GCs to kick-off in the first
place?

I'm asking because you might be able to his a URL that would kick-start
the full GC at, say, 5 in the morning just before your real customers
got there. It' not perfect, but it might help.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHCqO59CaO5/Lv0PARAitPAJ9TkSr3a5s/ow70OkBVgodXtFyIFgCgi62l
TsGjhWTkqGT/JNWPuFqUQoU=
=9tx7
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message