Bug #551 (new)
Opened 17 years ago
Last modified 15 years ago
OutOfMemory: PermGen on hot re-deployment. — at Initial Version
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | minor | Cc: | cxallan |
Sprint: | n.a. | ||
Total Remaining Time: | n.a. |
Description
It's annoying that hot redeployment causes the server to choke with OOMs after one or two redeploys. Need to examine.
http://www.nabble.com/Newbie:-OutOfMemoryError:-PermGen-space-Question-t2713374.html
- Use 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)
- System.setProperty( Environment.BYTECODE_PROVIDER, "cglib" );
http://forum.hibernate.org/viewtopic.php?t=966401&sid=1da1e81146f411246fe8c6ef8489c8a5
- cglib also can do it