users@glassfish.java.net

Horrible, nasty memory leak in GFv2 when serving large PDFs

From: <glassfish_at_javadesktop.org>
Date: Sat, 27 Oct 2007 22:04:50 PDT

Here is the issue:

https://glassfish.dev.java.net/issues/show_bug.cgi?id=3814

As a simple rehash:

Trivial web app, static 139MB PDF file in the web app. Stock GFv2 install. Mac OS 10.4 (though I've seen this on Solaris as well).

Deploy webapp, try and download PDF, observe (through JConsole, or gc:verbose) memory surge up 150MB and stay there, and never GC. Also note the OutOfMemory exception in the GF log. This is using the 512MB stock GF heap.

This is a real show stopper for us as this effectively renders the server unusable.
[Message sent by forum member 'whartung' (whartung)]

http://forums.java.net/jive/thread.jspa?messageID=242518