On Jan 26, 2006, at 4:28 AM, Davide Romanini wrote:

Il giorno mer, 25/01/2006 alle 11.12 -0800, Wade Chandler ha scritto:

Don't use shared libraries and you shouldn't have this
problem.  If all of the statics are in your WEB-INF
directory then you won't have an issue with unloading
classes and class loaders.


It would be great if could be so simple. But it is not, trust me, my
shared folder is empty, and the common/lib folder contains only jdbc
drivers and javamail implementation (needed by Tomcat if you want to use JNDI mail sessions). All the libraries of the webapp are in WEB-INF/ lib
folder. As I said in previous mail, I tried to reload the distribution
version of Axis (just as is, without other libs) and it causes the
problem. It seems that something occuring during AxisServlet startup (it
looks for his configuration using a complex discovery process) causes
some class of a parent classloader to hold a reference to
WebappClassloader so it cannot be GC'ed when it's reloaded.


Davide,
If you're using Axis, you might be interested in two Axis issues that I uncovered. They both caused ClassLoader memory leaks within Geronimo. The problems are described here:
http://issues.apache.org/jira/browse/AXIS-2232
http://issues.apache.org/jira/browse/AXIS-2278

The changes are committed in SVN. However, there hasn't been an official Axis release, since then. The following binary contains the updates and is the version delivered by Geronimo:

http://cvs.apache.org/repository/axis/jars/axis-1.4-356167.jar

--kevan


Surely it's not a Tomcat problem anyway...

Bye,
Davide Romanini


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to