On 06/08/2014 00:54, Peter Rifel wrote: > Hello, > > I am in the process of upgrading from Tomcat 7.0.54 to Tomcat 8.0.9 and am > seeing some performance degradation in my webapp. > > Configuration info: > > Ubuntu 14.04.1 LTS > java version "1.8.0_11" > Java(TM) SE Runtime Environment (build 1.8.0_11-b12) > Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode) > > Both versions of tomcat use the APR Connector with TC Native 1.1.31 > statically linked against APR 1.5.1 and OpenSSL 1.0.1h > > > I'm running identical requests to identical web apps between these tomcats > and in Tomcat 8 I'm seeing an ~20% response time increase and as such a > similar reqs / sec decrease. After using VisualVM to profile the > application I've narrowed it down to the JRE's JAXP library taking > significantly longer to create its xml validation "SchemaFactory" which > doesn't make sense to me because I'm using the same JRE in both tests. I > know that the Resources implementation was overhauled in Tomcat 8 so is > there any possibility that this could be a side effect?
I've taken a look and there is certainly part of the code that is making repeated calls to the resources implementation where the result isn't cached. For class loader resources it is currently the class loader that is responsible for caching. It might make sense to change that. I'll take a closer look. There is no guarantee that this will fix the issue you are seeing. Are you able to build 8.0.x from svn to test any changes that are made? Cheers, Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org