tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard W. Smith, Jr." <smithh032...@gmail.com>
Subject Re: Re : Memory leak in Tomcat 6.0.35 ( 64 bit)
Date Wed, 03 Apr 2013 20:15:00 GMT
Chris,

On Tue, Apr 2, 2013 at 5:12 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
>
> > I understand its not a premanent solution but as a stopgap for now
> > ? If so , we can put it as part of daily cycle to bounce tomcat6.
>
> If you don't re-deploy your webapp, then daily rolling Tomcat restarts
> are not necessary. I wonder why you are re-deploying your web
> application so many times?
>
>
As a new tomcat user and still somewhat junior java/jsf developer, I
restart tomcat whenever I have new software changes to
deploy-and-want-to-run-on the production server. sometimes, I
deploy-and-restart multiple times per day, but sometimes, I'm able to let
tomcat/tomee run for days without restart.


> We run several Tomcats in parallel with modest heaps (less than 512MiB
> each) and they can run for months before we stop them for upgrades. It
> *is* possible to run JVMs without running out of memory...
>

I too, have not experienced any OOME, and recently, per what I have
seen-and-read of other (more senior java developers than myself), I have
decreased memory settings in my java options on tomcat7w.exe (see below).

-Xmx1024m
-XX:MaxPermSize=384m
-XX:+UseTLAB
-XX:+UseConcMarkSweepGC
-XX:+CMSClassUnloadingEnabled

On Java tab of tomcat7w.exe, have the following specified:

Initial memory pool = 256
Maximum memory pool =
Thread stack size   =


My Windows 2008 R2 Server (64bit 32GB RAM) never seems to get higher than
1% CPU, and I think I do have memory leaks somewhere in the app, but FWIW
(in heap dump in java visual vm), the memory leaks seem to be tomee leaks.
In Java Visual VM, I do see the memory grow over time, as the app is used
(without a tomcat restart or re-deploy of app and then restart tomcat), but
I still have not seen OOME...'yet'.

I should leave the server up and running without restarting tomcat, but
when I need to deploy new software changes, i can't wait to deploy. :)

My apologies, not trying to hijack the thread. just sharing my response to
your comments.

Howard



>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJRW0m2AAoJEBzwKT+lPKRYt38QAJkMt1+S+h48OdnVU8GVNY+x
> nhBJMX2THAN9d6LIo7k/8bEUPlbBIbjZVHZeR7tPbt3HgcPaPXLZ+/eiPU7x3tEe
> ubn/Vp7WVNhrZ3+ZcHQz6AEBz5JfFoHNpwfPvopTxsClhdlbNkQVLoNQX2DHvao6
> ARFG3pZWX8HlC/MYMoIsJLD6DxXj9zT0E1ZJzBImHt8r2zE9YPWo35k6RhnEjLut
> Ol74NejK8kD8orgGfJfz5bM6XXiWaxLm3tBXkukefcEC9Sq5/PMDP61npTBygFgK
> GhPCoKHfvxtm/oXIFHJrwfibpyoKa5gxdRPRey9PqqKc9zABw8t7oMHb/QxwC6qi
> qNe9xy5/iSK3NKqQLawXMsFmGfmTA2Rx13I0uP7TnP/2X0bjdjNa/uHx+VKPYY/U
> RfdqosN02x8BwXkXbDRzeQURiTAPwSKdH8PBL9itnYSLGi6byYynfsvsPeycbpuK
> zV0qdyvBOeHbz/j5dai7Z451PMxm5ccEZ1B8cPtQiRVXxx5+5lF3q9RFwtkenLbI
> IpfIrpj4D+96KP66Rn0yfVNEeHosljAOJaYLHuexObna2jjkqwgttzQW4KVajeZm
> I1BPQOSHCQVg+Qo2ewVpd6YrnygpTRF6XsKhA/gwuHS+Jy5xJVsXMPNO/kl0y/6f
> k9TjfhdTRUpMqn5siO68
> =DjF0
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message