Bug #551 (closed)
Opened 17 years ago
Closed 15 years ago
OutOfMemory: PermGen on hot re-deployment.
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | minor | Cc: | cxallan |
Sprint: | n.a. | ||
Total Remaining Time: | n.a. |
Description (last modified by jmoore)
It's annoying that hot redeployment causes the server to choke with OOMs after one or two redeploys. Need to examine.
overview:
http://www.jroller.com/page/agileanswers/20060623
http://www.nabble.com/Newbie:-OutOfMemoryError:-PermGen-space-Question-t2713374.html
- Use jrockit http://dev2dev.bea.com/jrockit/
- Find held on to objects
- Due to Hibernate > 3.0.5 ?
http://forum.hibernate.org/viewtopic.php?t=966721&highlight=outofmemory+permgen
- Switch to cglib (i.e. javassist is holding on to objects) same suggestion from spring forum)
- System.setProperty( Environment.BYTECODE_PROVIDER, "cglib" );
http://forum.hibernate.org/viewtopic.php?t=966401&sid=1da1e81146f411246fe8c6ef8489c8a5
- cglib also can do it
Change History (4)
comment:1 Changed 17 years ago by jmoore
- Description modified (diff)
comment:2 Changed 17 years ago by jmoore
- Cc callan added
- Keywords changed from jboss, hibernate to jboss, hibernate, iteration4
comment:3 Changed 17 years ago by jmoore
- Keywords changed from jboss, hibernate, iteration4 to jboss, hibernate
- Milestone changed from 3.0-Beta2 to Future
Pushing to "Future". See #673
comment:4 Changed 15 years ago by jmoore
- Milestone changed from Future to OMERO-Beta4
- Resolution set to fixed
- Status changed from new to closed
No more hot redeployment without JBoss : #1106 (OmeroBlitz migration)
So it appears someone has tracked down this bug. There's also a work around that we may want to implement: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2481