Any progress on this...? Maybe reassign to Jerome Dochez?
I've had a closer look at the fixes for
GLASSFISH-15266 (in r44037 and r44074), and I believe the solution is only partial.
The huge Types instance is no longer stored in ApplicationInfo, it is now stored in DeploymentContextImpl.transientAppMetadata, but lots of other objects hold references to the deployment context (e.g. EjbApplication and BeanDeploymentArchiveImpl), even after the given application has been deployed successfully.
I can't say I understand all the details, but I'm a bit confused by this "transientAppMetadata" map which does not appear transient at all, items are added to it, but they never seem to be deleted.
Would it be possible to simply delete this map entry (and may some others no longer needed) once the application has been deployed?
Anyway, the memory usage is still a blocker for me for using Glassfish in production - I would love to see this fixed in 3.1.1.