tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lucio Capuani <louis.capu...@gmail.com>
Subject Same (virtual) machines, very different behaviour
Date Fri, 12 Jun 2009 13:01:01 GMT
Hello everybody and thanks for caring.

 I have an instance of Tomcat running into two Xen virtual machines.
 I have cloned one of the two virtual machines and I changed the IP
 address of the original. Now, the clone (the copy) still works fine.
 The original no more. Tomcat still start and works, but the startup
 time is endless (776637 ms, that's 12 minutes!).

 The big wait comes between these log lines:
 Jun 10, 2009 2:44:34 PM org.apache.catalina.core.StandardHost start

 and these ones (please notice the time stamp):

 Jun 10, 2009 2:57:30 PM org.apache.jk.common.ChannelSocket init
 INFO: JK: ajp13 listening on /127.0.0.1:8009

 ...so it happens when it's about to opening the socket.

 On the cloned machine, this is the output:

 Jun 10, 2009 2:44:53 PM org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 Jun 10, 2009 2:45:09 PM org.apache.jk.common.ChannelSocket init
 INFO: JK: ajp13 listening on /127.0.0.1:8009

 there's a gap of one second among the two operations, which is of course fine.

 Please notice that all the differences between the hosts are in the IP
 address and in the fact that one's behind a firewall (the
 slow-to-start one) and the other is not. But I can't see how being
 behind a firewall can slow down opening a port on 127.0.0.1.

 That's the output I got with
 /usr/share/tomcat5.5/bin/catalina.sh debug

 Thanks so much!

 Louis Capuani

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


Mime
View raw message