Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#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 .

You can increace permgen space with the undocumented JAVA_OPTS="-XX:PermSize=128m -XX:MaxPermSize=256m"

Change History (2)

comment:1 Changed 13 years ago by root

Resolution: fixed
Status: newclosed

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

  • fixes #25
  • fixes ticket #15
  • addresses ticket #5

comment:2 Changed 11 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.