Ticket #15 (closed defect: fixed)
SaxonWebService and other webapps use perm gen space
| Reported by: | joshuadf | Owned by: | joshuadf |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | systems | Version: | |
| Keywords: | Cc: |
Description
When redeploying webapps, in some (many?) cases the ClassLoader created for the old deployment still references some objects and so will never be garbage collected. This eventually makes Tomcat throw java.lang.OutOfMemoryError: PermGen space .
- Tomcat FAQ: Deployment
- Memory leaks where the classloader cannot be garbage collected
- Explaining and Fixing java.lang.OutOfMemoryError: PermGen
You can increace permgen space with the undocumented JAVA_OPTS="-XX:PermSize=128m -XX:MaxPermSize=256m"
Change History
comment:2 Changed 5 years ago by joshuadf
This may be an option for the old PermGen? space problem:
http://www.odi.ch/prog/design/newbies.php#18
ClassLoader cl = Thread.currentThread().getContextClassLoader(); if (cl == null) cl = getClass().getClassLoader(); // fallback Class clazz = cl.loadClass(name);
Note: See
TracTickets for help on using
tickets.

(In [168]) Trivial change to test SubVersion hook edit.