AOPClassProxy exhausts PermGen
Environment
- JBoss Enterprise Application Platform (EAP)
- 5.0.0
- JBoss AOP
- 2.1.6 CP01
Issue
- org.jboss.aop.generatedproxies.AOPClassProxy is loaded continuously and never unloaded, exhausting the PermGen
- OutOfMemoryError: PermGen space
Resolution
- Content from issues.jboss.org is not included.https://issues.jboss.org/browse/JBAOP-804
- Content from issues.jboss.org is not included.https://issues.jboss.org/browse/JBAOP-757
Root Cause
This is caused by a bug in JBoss AOP. It is supposed to cache the proxy classes it is creating and only create one per unique class. However, due to this bug, it creates a new proxy class every time something is put in the cache.
Diagnostic Steps
- Check the heap dump for an unusually large amount of generated proxies.
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.