| Summary: | When doing remote EJB calls, the marshalling code creates a very large number of sun.reflect.GeneratedSerializedConstructor objects, taking the vast majority of the heap space, causing memory consumption issues. | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Andrig T Miller <anmiller> |
| Component: | Remoting | Assignee: | David M. Lloyd <david.lloyd> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jitka Kozana <jkudrnac> |
| Severity: | urgent | Docs Contact: | Russell Dickenson <rdickens> |
| Priority: | unspecified | ||
| Version: | 6.2.0 | CC: | bmaxwell, jdoyle, jmartisk, lthon, myarboro |
| Target Milestone: | ER1 | ||
| Target Release: | EAP 6.2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-12-15 16:20:43 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 1003990, 1010377, 1012664, 1120777 | ||
|
Description
Andrig T Miller
2013-09-03 16:26:31 UTC
Also, I forgot to add that this issue is in JIRA as: https://issues.jboss.org/browse/JBMAR-153 Changed the component to remoting, since JBoss Marshalling is a part of Remoting. Initialized flags. Please be sure to also ack https://bugzilla.redhat.com/show_bug.cgi?id=1003990 if you ack this issue. Verified with EAP 6.2.0.ER1. Brad Maxwell <bmaxwell> made a comment on jira JBMAR-153 Background info: Originally JBoss Marshalling used a weak map so that it would not leak memory when a deployment was undeployed. This had a side effect, if a weak reference was cleared, JBoss Marshalling would generate a new constructor, except the JDK still kept the reference to the old one. So they would pile up over time, especially if you GC a lot in between invocations for whatever reason. The fix is to never regenerate them, by replacing the weak map with a strong map. Since a strong map is used the API had to be changed so that on undeploy the map could be released and avoid a memory leak, which the JBoss EAP code calls when an application is undeployed. |