On 1 September 2017 at 11:10, Mark Thomas <ma...@apache.org> wrote: > On 01/09/17 10:03, Johan Compagner wrote: > > Hi, > > > > i got reports that running jasper reports is suddenly a lot slower when > > deployed.. > > (compared what he uses in developer) > > Running a report was 0-2 seconds in its developer but at least 10 seconds > > when running deployed. > > > > We tracked it down, in developer the listener: > > > > <Listener className="org.apache.catalina.core. > JreMemoryLeakPreventionListener" > > /> > > > > > > > > > > was not in the server.xml and at deploy it is a standard latest tomcat > > install which enables that by default > > > > If i look at this, i wonder which part makes it much slower > > https://tomcat.apache.org/tomcat-8.0-doc/config/ > listeners.html#JRE_Memory_Leak_Prevention_Listener_-_ > org.apache.catalina.core.JreMemoryLeakPreventionListener > > You can disable each protection individually so you should be able to > answer that question yourself. (And the answer would be very interesting.) >
We tested it and the winner is: <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" urlCacheProtection="false" /> i had my bets on the xmlParsingProtection but that wasn't it...