2007/5/22, Balazs Michnay <[EMAIL PROTECTED]>:
Hi,

I have just downloaded NetBeans Profiler to see how my web-app performs and 
realized that it produces serious memory leaks... The interesting part is that 
I have nothing on my JSP but static struts tags (no dynamic content at all) and 
it turned out that the leaks are not made by my application, but made by either 
struts (???) or Tomcat (???) or Java itself, I don't know what...
What I discovered was that a simple page reload leads to eating up my memory 
and - according to the profiler - the memory leak is produced by the 
constructor of java.util.zip.InflaterInputStream allocating more and more 
byte[] objects that cannot be garbage-collected. This class deals with reading 
jar files. If I take a look at the source code I can clearly see that it really 
allocates memory for byte[]:

do you have a stack strace? to see what objects call InflaterInputStream
--
Guillaume Carré

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to