Hi probably this won't solve your problem but I notice that the random seems slow : Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [9,870] milliseconds.
Maybe should you then start by fixing this, it has been discussed many times on the mailing list ( securerandom.source=file:/dev/./urandom ) Maybe are there some tests to do to understand if your Tomcat 6 seems fast because it uses some caching somewhere, or on the contrary if your Tomcat 8 is slow because there is a bottleneck. I would try one scenario with one small HTML page requested thousands of times, and one very big file requested just 2 or 3 times, and compare results. One thing which could help in understanding, have a look at the status servlet which gives statistics ( http://tomcat.apache.org/tomcat-7.0-doc/apr.html ) best regards 2015-12-23 21:29 GMT+01:00 Christopher Schultz <ch...@christopherschultz.net >: > Rafael, > > On 12/23/15 2:12 PM, Rafael Oliveira de Mattos wrote: > > Christopher, > > > > Tomcat 6: boot.log > > INFORMA합ES: Loaded APR based Apache Tomcat Native library 1.1.33 using > APR version 1.5.2. > > dez 14, 2015 5:32:14 PM org.apache.catalina.core.AprLifecycleListener > init > > INFORMA합ES: APR capabilities: IPv6 [true], sendfile [true], accept > filters [false], random [true]. > > dez 14, 2015 5:32:15 PM org.apache.coyote.http11.Http11AprProtocol init > > INFORMA합ES: Initializing Coyote HTTP/1.1 on http-8180 > > dez 14, 2015 5:32:15 PM org.apache.coyote.ajp.AjpAprProtocol init > > INFORMA합ES: Initializing Coyote AJP/1.3 on ajp-8109 > > dez 14, 2015 5:32:15 PM org.apache.catalina.startup.Catalina load > > INFORMA합ES: Initialization processed in 1155 ms > > dez 14, 2015 5:32:15 PM org.apache.catalina.core.StandardService start > > INFORMA합ES: Starting service Catalina > > dez 14, 2015 5:32:15 PM org.apache.catalina.core.StandardEngine start > > INFORMA합ES: Starting Servlet Engine: Apache Tomcat/6.0.36 > > dez 14, 2015 5:32:18 PM org.apache.catalina.core.ApplicationContext log > > INFORMA합ES: Initializing Spring root WebApplicationContext > > dez 14, 2015 5:32:25 PM org.apache.catalina.startup.HostConfig > deployDescriptor > > INFORMA합ES: Deploying configuration descriptor manager.xml > > dez 14, 2015 5:32:26 PM org.apache.catalina.startup.HostConfig > deployDescriptor > > INFORMA합ES: Deploying configuration descriptor host-manager.xml > > dez 14, 2015 5:32:26 PM org.apache.catalina.startup.HostConfig > deployDirectory > > INFORMA합ES: Deploying web application directory ROOT > > dez 14, 2015 5:32:27 PM org.apache.coyote.http11.Http11AprProtocol start > > INFORMA합ES: Starting Coyote HTTP/1.1 on http-8180 > > dez 14, 2015 5:32:27 PM org.apache.coyote.ajp.AjpAprProtocol start > > INFORMA합ES: Starting Coyote AJP/1.3 on ajp-8109 > > dez 14, 2015 5:32:27 PM org.apache.catalina.startup.Catalina start > > INFORMA합ES: Server startup in 11791 ms > > > > > > tomcat 8: boot_tomcat8.log > > Dez 23, 2015 7:48:16 AM org.apache.catalina.core.AprLifecycleListener > lifecycleEvent > > INFORMAÇÕES: Loaded APR based Apache Tomcat Native library 1.1.33 using > APR version 1.5.2. > > Dez 23, 2015 7:48:16 AM org.apache.catalina.core.AprLifecycleListener > lifecycleEvent > > INFORMAÇÕES: APR capabilities: IPv6 [true], sendfile [true], accept > filters [false], random [true]. > > Dez 23, 2015 7:48:16 AM org.apache.coyote.AbstractProtocol init > > INFORMAÇÕES: Initializing ProtocolHandler ["http-apr-8180"] > > Dez 23, 2015 7:48:16 AM org.apache.coyote.AbstractProtocol init > > INFORMAÇÕES: Initializing ProtocolHandler ["ajp-apr-8109"] > > Dez 23, 2015 7:48:16 AM org.apache.catalina.startup.Catalina load > > INFORMAÇÕES: Initialization processed in 2341 ms > > Dez 23, 2015 7:48:23 AM org.apache.jasper.servlet.TldScanner scanJars > > INFORMAÇÕES: At least one JAR was scanned for TLDs yet contained no > TLDs. Enable debug logging for this logger for a complete list of JARs that > were scanned but no TLDs were found in them. Skipping unneeded JARs during > scanning can improve startup time and JSP compilation time. > > Dez 23, 2015 7:48:43 AM org.apache.catalina.util.SessionIdGeneratorBase > createSecureRandom > > INFORMAÇÕES: Creation of SecureRandom instance for session ID generation > using [SHA1PRNG] took [9,870] milliseconds. > > > > > > The apr loader configuration in both setup > > <!--APR library loader. Documentation at /docs/apr.html --> > > <Listener SSLEngine="off" > className="org.apache.catalina.core.AprLifecycleListener"/> > > Thanks for confirming that: often, we have people with two radically > different setups wanting to know why things are behaving differently. > > There have been many changes to the connector code between Tomcat 6 and > Tomcat 8, mostly to make sure that as many code paths are shared between > connectors (BIO, NIO, APR) as possible. I wouldn't have been surprised > to see a measurable performance difference, but I figured it would be on > the order of 10%-25%. Instead, you are seeing a 100%-150% difference. > > Someone with more knowledge of the connector code would have to comment > on what may be happening, here. > > -chris > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >