Re: Latest Tomcat release question...

2012-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tony,

On 9/18/12 7:10 PM, Tony Anecito wrote:
 Thanks for the heads up about the memory issue. I looked over the 
 release notes before I posted here and did not remember reading
 that.

http://tomcat.apache.org/tomcat-7.0-doc/changelog.html

It's bug 53535:
http://issues.apache.org/bugzilla/show_bug.cgi?id=53535

 I do not use spring either and glad for that but I do use JAX-WS
 and am working on swithing to JAX-RS and there are quite a few
 libraries for JAX-RS. This weekend I will look at using 7.0.30.

It really comes down to the number of classes that get scanned. Lots
od deps = lots of classes (usually).

- -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/

iEYEARECAAYFAlBZyu8ACgkQ9CaO5/Lv0PC9TwCgw2qRGo/B0HjjQJycPsK1G9hZ
v9IAnjKhBC+gZL3iUoHIY5MTR1Ph9v/v
=C59w
-END PGP SIGNATURE-

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



Re: Latest Tomcat release question...

2012-09-19 Thread Tony Anecito
Ok does scanning scan the classes inside the library jars the app uses? What 
would be the point of that?
 
Thanks,
-Tony

--- On Wed, 9/19/12, Christopher Schultz ch...@christopherschultz.net wrote:


From: Christopher Schultz ch...@christopherschultz.net
Subject: Re: Latest Tomcat release question...
To: Tomcat Users List users@tomcat.apache.org
Date: Wednesday, September 19, 2012, 7:38 AM


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tony,

On 9/18/12 7:10 PM, Tony Anecito wrote:
 Thanks for the heads up about the memory issue. I looked over the 
 release notes before I posted here and did not remember reading
 that.

http://tomcat.apache.org/tomcat-7.0-doc/changelog.html

It's bug 53535:
http://issues.apache.org/bugzilla/show_bug.cgi?id=53535

 I do not use spring either and glad for that but I do use JAX-WS
 and am working on swithing to JAX-RS and there are quite a few
 libraries for JAX-RS. This weekend I will look at using 7.0.30.

It really comes down to the number of classes that get scanned. Lots
od deps = lots of classes (usually).

- -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/

iEYEARECAAYFAlBZyu8ACgkQ9CaO5/Lv0PC9TwCgw2qRGo/B0HjjQJycPsK1G9hZ
v9IAnjKhBC+gZL3iUoHIY5MTR1Ph9v/v
=C59w
-END PGP SIGNATURE-

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



Re: Latest Tomcat release question...

2012-09-19 Thread Pid *
On 19 Sep 2012, at 16:45, Tony Anecito adanec...@yahoo.com wrote:

 Ok does scanning scan the classes inside the library jars the app uses? What 
 would be the point of that?

How does Tomcat know which is a special library jar and which is not?
(Unless you provide it with a list of jars to ignore.)


p





 Thanks,
 -Tony

 --- On Wed, 9/19/12, Christopher Schultz ch...@christopherschultz.net wrote:


 From: Christopher Schultz ch...@christopherschultz.net
 Subject: Re: Latest Tomcat release question...
 To: Tomcat Users List users@tomcat.apache.org
 Date: Wednesday, September 19, 2012, 7:38 AM


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Tony,

 On 9/18/12 7:10 PM, Tony Anecito wrote:
 Thanks for the heads up about the memory issue. I looked over the
 release notes before I posted here and did not remember reading
 that.

 http://tomcat.apache.org/tomcat-7.0-doc/changelog.html

 It's bug 53535:
 http://issues.apache.org/bugzilla/show_bug.cgi?id=53535

 I do not use spring either and glad for that but I do use JAX-WS
 and am working on swithing to JAX-RS and there are quite a few
 libraries for JAX-RS. This weekend I will look at using 7.0.30.

 It really comes down to the number of classes that get scanned. Lots
 od deps = lots of classes (usually).

 - -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/

 iEYEARECAAYFAlBZyu8ACgkQ9CaO5/Lv0PC9TwCgw2qRGo/B0HjjQJycPsK1G9hZ
 v9IAnjKhBC+gZL3iUoHIY5MTR1Ph9v/v
 =C59w
 -END PGP SIGNATURE-

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


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



Re: Latest Tomcat release question...

2012-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tony,

On 9/19/12 11:44 AM, Tony Anecito wrote:
 Ok does scanning scan the classes inside the library jars the app 
 uses? What would be the point of that?

As previously discussed, this is a (somewhat foolish) requirement of
the servlet specification.

- -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/

iEYEARECAAYFAlBaHv4ACgkQ9CaO5/Lv0PAbDgCeOoanoPX6mJEtJSiAKMaUux0F
32oAoJxtrevVlx4g0fdUpBL5AgSq1QJn
=bziI
-END PGP SIGNATURE-

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



Re: Latest Tomcat release question...

2012-09-18 Thread Christopher Schultz
-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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Latest Tomcat release question...

2012-09-18 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 18/09/2012 20:27, Christopher Schultz wrote:

 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

One of which is likely to be JAR scanning thanks to the default
mandatory scanning required by Servlet 3.0. There are ways stop this
completely if this is the issue.

Mark
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBAgAGBQJQWMu6AAoJEBDAHFovYFnnApgP/RsLfy6mZ9EzPbINTmqs4AQ+
5eVMhooWG6IBztV0ePECRHuYXc4ERGGIW2f6PeZIp9Hv7FpredVHYoCJe3isGEap
5dbjTdwW8dL9f2vxPJu/NU0V0osnLsm5glyOa8gf4/yl6zvreYoSe6lrGiRJCfAX
qHAorWB0+Nd8amcDlf+Nr7Ky/XwR75Tn24vf9AqJyWnFX0W83JchdyQPaOlsKpy+
viVCghlbF0hG9qD/IxyoGrfCGJonpVQ+whHwcLiA3u0FxNgSsm0eTKjDaG/eidXc
f88/btU9fANtPH6X31DCISSy9sqpNXS1GbSyU3Cl/GE98us2JfWJn3piHjbW6FDI
IkXETQSSh2iQNtq4QkJ5JbWhT3uL/ycANr8aU5zePJZxymHQhYk0e7QZgBFXS3vi
zLywFj/JHeLmVisRVG24f3wWHRwtJvVHHZWIWgziMcMK46AI+uPGPRFChtXXpumS
5hRUAfERmeMxovDTnBCRvmMbDMrZYIz4n6nUw3CMNegk0ExxjlQYOB/iUww7kvtU
OSd2TaEwcY9oUKsYpWScC5tvyONR66f2PwTwejjjvu9qjvLw82L7n6ealruvxb5r
4H1HdueKUTqkH+hNHqPMuJIFKltL0Yg931/jAjv/LcqNi377zPpnlDQAsagIL4yV
Az0UdhjBM8/hobQWAh7d
=v7rB
-END PGP SIGNATURE-

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



Re: Latest Tomcat release question...

2012-09-18 Thread Tony Anecito
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 ch...@christopherschultz.net wrote:

From: Christopher Schultz ch...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Latest Tomcat release question...

2012-09-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tony,

On 9/18/12 4:55 PM, Tony Anecito wrote:
 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?

No, I haven't, but there was a fairly gaping performance/memory
problem fixed in 7.0.30 and I would highly recommend the upgrade. I
didn't notice because I have very little in the way of support
libraries, etc. in my webapps. Basically, I don't use Spring, so I
don't have to wait 20 minutes to deploy my webapp ;)

- -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/

iEYEARECAAYFAlBY564ACgkQ9CaO5/Lv0PDDWQCdEclcddNFo+zRP3fu3oekUhPe
eQ4An0g5OX5M49Uo4lwMZjJoz5v88PKF
=psrC
-END PGP SIGNATURE-

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



Re: Latest Tomcat release question...

2012-09-18 Thread Tony Anecito
Hi Christopher,
 
Thanks for the heads up about the memory issue. I looked over the release notes 
before I posted here and did not remember reading that.  I do not use spring 
either and glad for that but I do use JAX-WS and am working on swithing to 
JAX-RS and there are quite a few libraries for JAX-RS. This weekend I will look 
at using 7.0.30.
 
Best Regards,
-Tony

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


From: Christopher Schultz ch...@christopherschultz.net
Subject: Re: Latest Tomcat release question...
To: Tomcat Users List users@tomcat.apache.org
Date: Tuesday, September 18, 2012, 3:29 PM


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tony,

On 9/18/12 4:55 PM, Tony Anecito wrote:
 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?

No, I haven't, but there was a fairly gaping performance/memory
problem fixed in 7.0.30 and I would highly recommend the upgrade. I
didn't notice because I have very little in the way of support
libraries, etc. in my webapps. Basically, I don't use Spring, so I
don't have to wait 20 minutes to deploy my webapp ;)

- -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/

iEYEARECAAYFAlBY564ACgkQ9CaO5/Lv0PDDWQCdEclcddNFo+zRP3fu3oekUhPe
eQ4An0g5OX5M49Uo4lwMZjJoz5v88PKF
=psrC
-END PGP SIGNATURE-

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