tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dilshad Shahid <dilshad.sha...@gmail.com>
Subject Re: How do I get Tomcat 7 to start up faster in Linux CentOS kernel version 2.6.18?
Date Mon, 05 Nov 2012 15:28:19 GMT
Thank you for all your responses and apologies for my late reply. I
got pulled off of this project last week and was assigned back to java
coding (my preferred state in any case). I have forwarded your replies
to the manager in charge of the project and someone in his team has
been looking into it so I don't have any feedback just yet.

I appreciate all the suggestions from this list and am hopeful they
will help us pinpoint the cause of the slow start up times. We are
using Tomcat 7 to load up our application written in struts. On
production sites, the startup time can be as slow as 20 minutes. When
I was testing on our QA environments, I saw much faster times, around
9 to 40 seconds, so there is a disconnect there. Our QA environment is
not an exact duplicate of our production site so there could be
variables in there to investigate as well.

Regards,
Dilshad


On Wed, Oct 31, 2012 at 12:19 PM, Mark Thomas <markt@apache.org> wrote:
> On 30/10/2012 21:55, Dilshad Shahid wrote:
>> I am experiencing a problem with slow start up times for Tomcat 7. I
>> have done some testing by tweaking configuration parameters both on
>> Linux CentOS kernel version 2.6.18 and on Windows 7 using this link as
>> my primary guide: http://wiki.apache.org/tomcat/HowTo/FasterStartUp
>> and managed only a modest improvement.
>>
>> The improvements seemed to result when I added
>> metadata-complete="true" attribute to the element of my
>> WEB-INF/web.xml file and when I added the names of almost all the jars
>> we use for our application to the
>> tomcat.util.scan.DefaultJarScanner.jarsToSkip property in
>> conf/catalina.properties file.
>
> Use a servlet 3.0 web.xml, set metadata-complete="true" and include an
> empty absolute ordering section and that will disable all of the Servlet
> 3.0 Jar scanning.
>
> Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>



-- 
dilshad.shahid@gmail.com

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


Mime
View raw message