tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Anecito <adanec...@yahoo.com>
Subject Re: Latest Tomcat release question...
Date Tue, 18 Sep 2012 20:55:14 GMT
Thanks Christopher,

I have not started using 7.0.30 yet and I do have connection pools setup on startup I believe
5 or 6 of them which may account for the 20 seconds.

What I was interested in is after startup using 7.0.30 has anyone noticed a performance improvement
for their apps?

Thanks,
-Tony

--- On Tue, 9/18/12, Christopher Schultz <chris@christopherschultz.net> wrote:

From: Christopher Schultz <chris@christopherschultz.net>
Subject: Re: Latest Tomcat release question...
To: "Tomcat Users List" <users@tomcat.apache.org>
Date: Tuesday, September 18, 2012, 1:27 PM

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tony,

On 9/18/12 1:58 PM, Tony Anecito wrote:
> Has anyone tried the newest Tomcat release and noticed any 
> performance differences? My startup is 20 seconds but it is not 
> often I restart my Tomcat server due to it being so stable but I am
> interested in any performance gain when it is executing and a 
> request is going through the tomcat code before it reaches my code 
> or after and the response is going back through the Tomcat layers.

As for startup, I just restarted my local dev instance (running 1
webapp with a reasonable amount of db-loading in a
ServletContextListener):

Sep 18, 2012 3:04:29 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: /usr/local/apache-tomcat-7.0.30/lib

....

Sep 18, 2012 3:04:34 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-127.0.0.1-8217"]
Sep 18, 2012 3:04:34 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4115 ms

So it's 4 seconds for me. My system config:
Mac OS X 10.8.1
Oracle JDK 1.7.0_07
Tomcat 7.0.30
Intel Core i7 2.5GHz 2x4 (8 logical cores)
8GiB RAM

There are 3 things I can think of that could make your Tomcat start
slowly:

1. Insufficient entropy in /dev/random
2. DNS timeouts
3. Your webapp does a lot of stuff on startup

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBYyyUACgkQ9CaO5/Lv0PAb8ACffNZc584OIXwKQZkaUXOT6MAj
bewAnRBCcBqgm/L0n86PouPUC4WeFc41
=HGEj
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message