The memory issues related to Weld/CDI reported in
GLASSFISH-14419 seem to be gone with 3.1-b33. This is good news.
However, repeating my tests I noticed a new issue. Deploying the same WAR (which does not use CDI at all) to different Glassfish versions and taking heap dumps with the Eclipse Memory Analyzer, I measured the following total heap sizes:
GF 3.0.1 44.4 MB
GF 3.1-b33 138.3 MB
In 3.1b33, there are two instances of org.glassfish.hk2.classmodel.reflect.impl.TypesCtr with about 80 MB of retained heap. In 3.0.1, all of org.jvnet.hk2 only has a retained heap of 6.5 MB.