You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Henri Gomez <he...@gmail.com> on 2011/07/15 02:22:52 UTC
Tomcat 7 under Java 7
Hi guys,
I conducted some tests with Tomcat 7 (7.0.19) and I noticed a slower
startup time under Java 7 (OpenJDK) than under Java 1.6.
I also see a serious boost in startup between TC 6.0.32 and TC 7.0.19,
Jetty is not too far behind.
I blogged about here :
http://blog.hgomez.net/2011/07/15/servlet-containers-startup-time/
If you need help to investigate speed diff between JDK 6 and 7, I'm
willing to help.
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: Tomcat 7 under Java 7
Posted by Henri Gomez <he...@gmail.com>.
>> No relevant difference on Solaris Sparc between 1.6.0_24 and 1.7.0-b147:
>>
>> Java 6
>>
>> Initialization processed in 2482 ms
>> Server startup in 2622 ms
>>
>> Java 7
>>
>> Initialization processed in 2443 ms
>> Server startup in 2839 ms
>>
>> No significant differences in scan times, bt there might be not much to
>> scan for a blank Tomcat.
>>
>> JDK 7 loads 175 more classes (about 8%).
>
> Strange you get same time in Java 6 and OpenJDK 7. I'll triple check that
Triple check done :
Apple Java 6
* INFO: Initialization processed in 676 ms
* INFO: Server startup in 375 ms
OpenJDK 7
* Infos: Initialization processed in 582 ms
* Infos: Server startup in 559 ms
Note I should start/stop Tomcat multiple time under OpenJDK 7 to get
such results.
Strange.
I'll update my article
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: Tomcat 7 under Java 7
Posted by Henri Gomez <he...@gmail.com>.
> No relevant difference on Solaris Sparc between 1.6.0_24 and 1.7.0-b147:
>
> Java 6
>
> Initialization processed in 2482 ms
> Server startup in 2622 ms
>
> Java 7
>
> Initialization processed in 2443 ms
> Server startup in 2839 ms
>
> No significant differences in scan times, bt there might be not much to
> scan for a blank Tomcat.
>
> JDK 7 loads 175 more classes (about 8%).
Strange you get same time in Java 6 and OpenJDK 7. I'll triple check that
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: Tomcat 7 under Java 7
Posted by Rainer Jung <ra...@kippdata.de>.
On 15.07.2011 02:22, Henri Gomez wrote:
> Hi guys,
>
> I conducted some tests with Tomcat 7 (7.0.19) and I noticed a slower
> startup time under Java 7 (OpenJDK) than under Java 1.6.
> I also see a serious boost in startup between TC 6.0.32 and TC 7.0.19,
> Jetty is not too far behind.
>
> I blogged about here :
> http://blog.hgomez.net/2011/07/15/servlet-containers-startup-time/
>
> If you need help to investigate speed diff between JDK 6 and 7, I'm
> willing to help.
No relevant difference on Solaris Sparc between 1.6.0_24 and 1.7.0-b147:
Java 6
Initialization processed in 2482 ms
Server startup in 2622 ms
Java 7
Initialization processed in 2443 ms
Server startup in 2839 ms
No significant differences in scan times, bt there might be not much to
scan for a blank Tomcat.
JDK 7 loads 175 more classes (about 8%).
Regards,
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: Tomcat 7 under Java 7
Posted by Mark Thomas <ma...@apache.org>.
On 15/07/2011 01:22, Henri Gomez wrote:
> Hi guys,
>
> I conducted some tests with Tomcat 7 (7.0.19) and I noticed a slower
> startup time under Java 7 (OpenJDK) than under Java 1.6.
> I also see a serious boost in startup between TC 6.0.32 and TC 7.0.19,
> Jetty is not too far behind.
>
> I blogged about here :
> http://blog.hgomez.net/2011/07/15/servlet-containers-startup-time/
>
> If you need help to investigate speed diff between JDK 6 and 7, I'm
> willing to help.
At a guess, it will be the JAR scanning code but it would be nice to
have that confirmed.
We're currently scanning more than we have to (from a spec point of
view) by default. I'm beginning to wonder if we might want to review that.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org