Re: Tomcat server start up taking excessive time

2012-06-26 Thread André Warnier

Daniel Mikusa wrote:

- Original Message -

Hi

Can any one give a cue as to why tomcat is taking such a long time to
start up on windows-7 64 bit machine, while the same used to startup
in mere seconds on a 32 bit windows XP machine? I have pasted the
server startup console info below.


...





Jun 25, 2012 2:34:36 PM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deploying configuration descriptor ematrix.xml
INFO Default trace configuration file path available:
/D:/enoviaV6R2013x/server/distrib/ematrix/WEB-INF/classes/vplm/traces.txt
Notice: #450: Listening on MX_DEBUG_PORT 55877
log4j:WARN No appenders could be found for logger
(org.apache.axis.transport.http.AxisServlet).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
for more info.
Jun 25, 2012 2:39:13 PM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml


The deployment of your app "ematrix" is consuming the majority of the time 
(according to the time stamps).  Try starting up Tomcat without that application deployed 
and see how fast it goes.



+1.
Emphasis : *your app* "ematrix".
Forget Tomcat per se, and try to figure out why *your app* is taking so long to 
start.
- maybe it is writing megabytes of data to this "trace file" that is mentioned
- maybe it is doing a DNS lookup of some host address, and your DNS is not properly 
configured, so it times out after a (long) while

- maybe it is using HTTPS, and is waiting for enough entropy
- maybe it must parse some huge XML data file, and does not have enough memory, so it is 
swapping in and out, or doing plenty of GC's

- etc..

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



Re: Tomcat server start up taking excessive time

2012-06-26 Thread Daniel Mikusa
- Original Message -
> Hi
> 
> Can any one give a cue as to why tomcat is taking such a long time to
> start up on windows-7 64 bit machine, while the same used to startup
> in mere seconds on a 32 bit windows XP machine? I have pasted the
> server startup console info below.
> 
> -Original Message-
> From: THIND Mansukhdeep
> Sent: Monday, June 25, 2012 2:46 PM
> To: 'Tomcat Users List'; 'Tomcat Users List'
> Subject: RE: Tomcat server start up taking excessive time
> 
> Hi Andre
> 
> Following is the info I get when I run
> $catalina_home/bin/startupdebug.bat file:
> 
> Listening for transport dt_socket at address: 8000
> Jun 25, 2012 2:34:35 PM org.apache.catalina.core.AprLifecycleListener
> init
> INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
> Jun 25, 2012 2:34:35 PM org.apache.catalina.core.AprLifecycleListener
> init
> INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
> [false], random [true].
> Jun 25, 2012 2:34:36 PM org.apache.coyote.http11.Http11AprProtocol
> init
> INFO: Initializing Coyote HTTP/1.1 on http-8081
> Jun 25, 2012 2:34:36 PM org.apache.coyote.ajp.AjpAprProtocol init
> INFO: Initializing Coyote AJP/1.3 on ajp-8009
> Jun 25, 2012 2:34:36 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1517 ms
> Jun 25, 2012 2:34:36 PM org.apache.catalina.core.StandardService
> start
> INFO: Starting service Catalina
> Jun 25, 2012 2:34:36 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.32



> Jun 25, 2012 2:34:36 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> INFO: Deploying configuration descriptor ematrix.xml
> INFO Default trace configuration file path available:
> /D:/enoviaV6R2013x/server/distrib/ematrix/WEB-INF/classes/vplm/traces.txt
> Notice: #450: Listening on MX_DEBUG_PORT 55877
> log4j:WARN No appenders could be found for logger
> (org.apache.axis.transport.http.AxisServlet).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
> for more info.
> Jun 25, 2012 2:39:13 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> INFO: Deploying configuration descriptor host-manager.xml

The deployment of your app "ematrix" is consuming the majority of the time 
(according to the time stamps).  Try starting up Tomcat without that 
application deployed and see how fast it goes.

Dan




> Jun 25, 2012 2:39:13 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> INFO: Deploying configuration descriptor manager.xml
> Jun 25, 2012 2:39:13 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory docs
> Jun 25, 2012 2:39:13 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory examples
> Jun 25, 2012 2:39:13 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory ROOT
> Jun 25, 2012 2:39:13 PM org.apache.coyote.http11.Http11AprProtocol
> start
> INFO: Starting Coyote HTTP/1.1 on http-8081
> Jun 25, 2012 2:39:13 PM org.apache.coyote.ajp.AjpAprProtocol start
> INFO: Starting Coyote AJP/1.3 on ajp-8009
> Jun 25, 2012 2:39:13 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 276751 ms
> 
> The one thing that I noticed here is that Tomcat is taking excessive
> time to start listening to a debug port that we are using to debug
> our application in eclipse IDE. That is screwing the start up(that
> is what I personally believe, correct me if I am wrong) It takes the
> maximum time between the deployment of ematrix.xml and Listening to
> the MX_DEBUG_PORT.
> 
> -Original Message-
> From: André Warnier [mailto:a...@ice-sa.com]
> Sent: Monday, June 25, 2012 2:30 PM
> To: Tomcat Users List
> Subject: Re: Tomcat server start up taking excessive time
> 
> THIND Mansukhdeep wrote:
> > Dear Sir / Madam
> >
> > This is Mansukhdeep from Pune, India. I am working for Dassault
> > Systemes, France. Recently, our team has shifted from Windows XP
> > to new Windows 7 64 bit machines. I am using Tomcat version
> > 6.0.32. The issue here is that the server s taking unusually long
> > time to start. (4-5 minutes). The same server used to start up
> > within mere seconds on a Windows XP 64 bit machine. Please advise.
> >
> 
> Are you using SSL/HTTPS ?
> 
> What do the logs say ?
> Can you copy the startup part of the logs here ?
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsub

Re: Tomcat server start up taking excessive time

2012-06-25 Thread Konstantin Kolinko
2012/6/25 THIND Mansukhdeep :
> Jun 25, 2012 2:34:36 PM org.apache.catalina.startup.HostConfig 
> deployDescriptor
> INFO: Deploying configuration descriptor ematrix.xml
> INFO Default trace configuration file path available: 
> /D:/enoviaV6R2013x/server/distrib/ematrix/WEB-INF/classes/vplm/traces.txt
> Notice: #450: Listening on MX_DEBUG_PORT 55877
> log4j:WARN No appenders could be found for logger 
> (org.apache.axis.transport.http.AxisServlet).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more 
> info.
> Jun 25, 2012 2:39:13 PM org.apache.catalina.startup.HostConfig 
> deployDescriptor
> INFO: Deploying configuration descriptor host-manager.xml

Tomcat starts fast, but your application (ematrix) starts slow and
complains about misconfigured logging, as can be seen above.

Isn't it generating tons of logging output somewhere? Detailed logging
is usually slow.


Best regards,
Konstantin Kolinko

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



RE: Tomcat server start up taking excessive time

2012-06-25 Thread THIND Mansukhdeep
Hi Andre

Following is the info I get when I run $catalina_home/bin/startupdebug.bat file:

Listening for transport dt_socket at address: 8000
Jun 25, 2012 2:34:35 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Jun 25, 2012 2:34:35 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], 
random [true].
Jun 25, 2012 2:34:36 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8081
Jun 25, 2012 2:34:36 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Jun 25, 2012 2:34:36 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1517 ms
Jun 25, 2012 2:34:36 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 25, 2012 2:34:36 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
Jun 25, 2012 2:34:36 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ematrix.xml
INFO Default trace configuration file path available: 
/D:/enoviaV6R2013x/server/distrib/ematrix/WEB-INF/classes/vplm/traces.txt
Notice: #450: Listening on MX_DEBUG_PORT 55877
log4j:WARN No appenders could be found for logger 
(org.apache.axis.transport.http.AxisServlet).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more 
info.
Jun 25, 2012 2:39:13 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Jun 25, 2012 2:39:13 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Jun 25, 2012 2:39:13 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Jun 25, 2012 2:39:13 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Jun 25, 2012 2:39:13 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Jun 25, 2012 2:39:13 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8081
Jun 25, 2012 2:39:13 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Jun 25, 2012 2:39:13 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 276751 ms

The one thing that I noticed here is that Tomcat is taking excessive time to 
start listening to a debug port that we are using to debug our application in 
eclipse IDE. That is screwing the start up(that is what I personally believe, 
correct me if I am wrong) It takes the maximum time between the deployment of 
ematrix.xml and Listening to the MX_DEBUG_PORT.

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Sent: Monday, June 25, 2012 2:30 PM
To: Tomcat Users List
Subject: Re: Tomcat server start up taking excessive time

THIND Mansukhdeep wrote:
> Dear Sir / Madam
>
> This is Mansukhdeep from Pune, India. I am working for Dassault Systemes, 
> France. Recently, our team has shifted from Windows XP to new Windows 7 64 
> bit machines. I am using Tomcat version 6.0.32. The issue here is that the 
> server s taking unusually long time to start. (4-5 minutes). The same server 
> used to start up within mere seconds on a Windows XP 64 bit machine. Please 
> advise.
>

Are you using SSL/HTTPS ?

What do the logs say ?
Can you copy the startup part of the logs here ?



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

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systemes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.

For other languages, go to http://www.3ds.com/terms/email-disclaimer

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



Re: Tomcat server start up taking excessive time

2012-06-25 Thread André Warnier

THIND Mansukhdeep wrote:

Dear Sir / Madam

This is Mansukhdeep from Pune, India. I am working for Dassault Systemes, 
France. Recently, our team has shifted from Windows XP to new Windows 7 64 bit 
machines. I am using Tomcat version 6.0.32. The issue here is that the server s 
taking unusually long time to start. (4-5 minutes). The same server used to 
start up within mere seconds on a Windows XP 64 bit machine. Please advise.



Are you using SSL/HTTPS ?

What do the logs say ?
Can you copy the startup part of the logs here ?



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