> -----Original Message-----
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Sent: Thursday, September 16, 2010 9:16 AM
> To: Tomcat Users List
> Subject: Re: [OT] Tomcat on Linux
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> George,
> 
> On 9/15/2010 7:26 PM, George Sexton wrote:
> > My servers stay up for months at a time. Most of my production
> > servers have been up for more than six months. I do have to re-start
> > tomcat every couple of weeks or so.
> 
> Why do you have to restart Tomcat? Do you have a leaky webapp?

I don't think my webapp is leaky. Things like file handles, db connections, all 
stay pretty constant.

I do have undeploy/re-deploy's of virtual hosts periodically. Maybe around 30 
per week. Perhaps that's where the issue is. I did dumps using JMap after 
undeploying my webapp and can see that there are no objects remaining allocated 
after the undeploy.

I'm running 300+ virtual hosts per machine, and around 300,000 hits per day per 
host.

It looks to me like the memory just gets fragmented and eventually things fail. 
I can run around 3 weeks before a machine crashes, so around 6-7 million hits.

Another problem (at least w/ JDK 1.6.0.20) was that on one machine, with 4GB 
allocated, the garbage collection of the OldGen space would start to take a 
REALLY long time. Say 3-8 minutes. That's on a dual 2-core XEON 2.66Ghz CPU's. 
JDK 1.6.0.21 seems to have improved that.

> 
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAkySNLEACgkQ9CaO5/Lv0PC13QCfT+vrwmmuba5lm37Eu6gDknco
> 8kQAn1/E9+ozi4EF/fDpoRGoMUJEyq79
> =AzUE
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org


George Sexton
MH Software, Inc.
303 438-9585
www.mhsoftware.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to