users@glassfish.java.net

[gf-users] Re: Glassfish 4 Memory Leaks

From: <forums_at_java.net>
Date: Thu, 17 Jul 2014 01:16:57 -0500 (CDT)

I've discussed two separate memory leaks in GlassFish 4 in this thread. The
first one is solved by replacing the Weld jar with version 2.0.5.Final. Make
sure you do this. The second memory leak I discuss is due to using tag files
with parameters with CDI enabled. This is a bug that still hasn't been fixed
so you must either (1) don't use CDI or (2) don't use tag files. To disable
CDI you need to disable the implicit CDI feature and also be sure there is no
beans.xml file in your project. If you are seeing a lot of memory taken up by
the jcdiManagedBeanInstanceMap then I suspect you are still using CDI in your
project (maybe accidentally). If you think you are seeing yet another memory
leak (not one of the two I discuss here) then I recommend creating a JIRA and
creating a tiny test case demonstrating how it is different. Side Note:
Oddly, some attachments in this forum don't show up until you log in. Weird.

--
[Message sent by forum member 'slominskir']
View Post: http://forums.java.net/node/903479