if you have reloadable="true" (and maybe even if it is not set, not sure) Tomcat adds files to a list for monitoring the timestamp of them changing. Hence many classes will add to more stuff to add to the list and monitor

but that doesn't seem like it should take 80sec anyway

Filip

Dan Beaulieu wrote:
Sorry to reply to my own post, but I have sort of figured it out. There were
about 2000 classes in /WEB-INF/classes, only one servlet though. Instead of
making the war from here, we only have the servlet class in WEB-INF/classes
and jar up the rest of the packages and place that jar into WEB-INF/lib.

Not ideal, but I guess it will have to do, but I don't see why it would
matter how many classes are in WEB-INF/classes. Start up time is now around
5s instead of 80s.
-----Original Message-----
From: Dan Beaulieu [mailto:[EMAIL PROTECTED] Sent: Thursday, August 23, 2007 10:32 AM
To: 'Tomcat Users List'
Subject: Tomcat6, apache2, mod_jk, non-APR, windows 2000, slow server
startup with unpacked WAR


Hello, we are having problems with slow server startup with Tomcat6. It is a
basic webapp and the server starts up fairly quickly when WEB-INF exists,
but if we are trying to deploy from a WAR, it takes 10 times as long. I've
downloaded the tomcat source to try to dig in and see what is going on, but
thought I'd try here first. We are getting different behavior on 3 different
systems. On one windows xp machine, it takes about 7-8 seconds to complete
the server startup, on another about 15s, and on the windows 2000 machine it
takes over a minute. I only mention the OS because that is the only
difference software wise. This is all using the same WAR, built and packed
on one machine.
I've tried APR and it is actually slower starting up. Here is a sample out
of the Catalina log:

Aug 23, 2007 10:13:42 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path: {Path
removed for brevity}
Aug 23, 2007 10:13:42 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 23, 2007 10:13:42 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 953 ms
Aug 23, 2007 10:13:42 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 23, 2007 10:13:42 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
Aug 23, 2007 10:15:00 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 23, 2007 10:15:00 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Aug 23, 2007 10:15:00 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/63  config=null
Aug 23, 2007 10:15:00 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 78567 ms


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to