memory leak in tomcat?
Hi, Tomcat 6.0.26 on a solaris. After I unloaded a webapp and asked tomcat to 'find leaks', it reported a webapp leaked memory. However, when I ran a profiler on the heapdump, there are only 2 references to the webappclassloader. Both are weak and are tomcat classes. The reference chain look like this: 1. webappclassloader <- weakhashmap <- ClassLoaderLogManager <- java.util.logging.Logging 2. webappclassloader <- weakhashmap <- StandardHost <- hashmap <- StandardEngine <- ContainerBackgroundProcessor I suspect that, although the webappclassloader is held as keys in weakhashmaps, the values are indirectly and strongly referring to the keys. Any thoughts? Thanks, -m - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: memory leak in tomcat?
oh and here is a screenshot (not sure if attachments are allowed) -m On Thu, Feb 3, 2011 at 9:28 AM, maxxe...@gmail.com wrote: > Hi, > > Tomcat 6.0.26 on a solaris. > > After I unloaded a webapp and asked tomcat to 'find leaks', it > reported a webapp leaked memory. However, when I ran a profiler on the > heapdump, there are only 2 references to the webappclassloader. Both > are weak and are tomcat classes. > > The reference chain look like this: > 1. webappclassloader <- weakhashmap <- ClassLoaderLogManager <- > java.util.logging.Logging > 2. webappclassloader <- weakhashmap <- StandardHost <- hashmap <- > StandardEngine <- ContainerBackgroundProcessor > > I suspect that, although the webappclassloader is held as keys in > weakhashmaps, the values are indirectly and strongly referring to the > keys. Any thoughts? > > Thanks, > -m > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: memory leak in tomcat?
uploaded the screenshot here: http://i.imgur.com/OqCBv.png On Thu, Feb 3, 2011 at 9:29 AM, maxxe...@gmail.com wrote: > oh and here is a screenshot (not sure if attachments are allowed) > > -m > > On Thu, Feb 3, 2011 at 9:28 AM, maxxe...@gmail.com wrote: >> Hi, >> >> Tomcat 6.0.26 on a solaris. >> >> After I unloaded a webapp and asked tomcat to 'find leaks', it >> reported a webapp leaked memory. However, when I ran a profiler on the >> heapdump, there are only 2 references to the webappclassloader. Both >> are weak and are tomcat classes. >> >> The reference chain look like this: >> 1. webappclassloader <- weakhashmap <- ClassLoaderLogManager <- >> java.util.logging.Logging >> 2. webappclassloader <- weakhashmap <- StandardHost <- hashmap <- >> StandardEngine <- ContainerBackgroundProcessor >> >> I suspect that, although the webappclassloader is held as keys in >> weakhashmaps, the values are indirectly and strongly referring to the >> keys. Any thoughts? >> >> Thanks, >> -m >> > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org