-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Balazs,

Balazs Michnay wrote:
> I have just downloaded NetBeans Profiler to see how my web-app
> performs and realized that it produces serious memory leaks...

[snip]

> 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.

Are you sure they cannot be garbage-collected? How do you know?

> This class deals with
> reading jar files.

Usually, JAR files are read to load class files. When class files are
read, their code needs to be read into memory (in byte arrays). It also
need to stay in memory in order to be executed. It's true, class loading
uses memory ;)

> After browsing through about 80-100 pages I get an OutOfMemory
> error...

Are you sure these facts are related? Class loading almost never causes
a problem unless you are loading millions of classes.

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

iD8DBQFGUuwf9CaO5/Lv0PARAvHKAKDDPuJNP4WIl7xFaLTK/jGES62YcQCffXx9
NGZ9AClOPKuN7KUo1F/Is+U=
=oTIF
-----END PGP SIGNATURE-----

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

Reply via email to