tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 55511] Reduce contention on WebappClassLoader
Date Sun, 08 Sep 2013 03:41:32 GMT

--- Comment #5 from Jason Koch <> ---
Having a little trouble building an isolated minimal case benchmark.

Background - my app, when profiled, shows ~30% of response time under load is
due to the classloader locking. App under profile is Java 6, Tomcat 6, on SPARC
but code has not changed since that time. My attempt to repro the issue with a
simple servlet that calls loadClass as the only item in the servlet does not
show contention. 

Possible causes - falsely showing this issue in my app, is not an issue under
Tomcat 8 for other reasons, attempting to repro on x86, can't drive enough work
onto the x86 server that I have (bandwidth saturated), issue may not really be
with WebappClassLoader but some parent item.

When I have applied a full CachingWebappClassLoader by subclassing it showed
significant benefits but I was unable at the time to hook up a JHM benchmark in
WebappClassLoader, seems to have a lot of dependencies with the container.

Here some additional results for a full subclass of WebappClassLoader - I made
a possibly flawed assumption that the reason WebappClassLoader with CHM did not
show issues was because I was not loading classes from JARs registered with
that loader (but instead loading classes via WebappCL to the system loader)

Will continue investigating.

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message