You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Shadow <sh...@hotmail.com> on 2005/05/31 19:02:16 UTC
Slow shutdown in tomcat
Hi,
I've been experiencing very long shutdown times with tomcat (about 3
minutes). I was googling for this and found mention that a firewall can
affect tomcat. I disabled shorewall on my serve and indeed tomcat shutdown
within 30 seconds.
However, I have not found any information on how to configure my firewall
to allow tomcat to operate correctly. What ports do tomcat use on the host
system? Any ideas as to how a firewall should be configured for tomcat to
function properly? Thanks in advance.
~Shadow
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Slow shutdown in tomcat
Posted by Parsons Technical Services <pa...@earthlink.net>.
Look at your server.xml You will find the references to the used ports
there.
I think the one you are looking for is the shutdown port at either 8005 or
8009.
Have your firewall allow connections to this port from the IP defined as
localhost as well as the IP of the machine if not the same. I believe it
uses localhost or 127.0.0.1 to make this connection. Some firewalls break
all connections to ports and some only challenge the connections from other
machines. Yours seems to control all connections.
There is also the possibility that I am way off base.
Doug
----- Original Message -----
From: "Shadow" <sh...@hotmail.com>
To: <to...@jakarta.apache.org>
Sent: Tuesday, May 31, 2005 1:02 PM
Subject: Slow shutdown in tomcat
> Hi,
>
> I've been experiencing very long shutdown times with tomcat (about 3
> minutes). I was googling for this and found mention that a firewall can
> affect tomcat. I disabled shorewall on my serve and indeed tomcat shutdown
> within 30 seconds.
>
> However, I have not found any information on how to configure my firewall
> to allow tomcat to operate correctly. What ports do tomcat use on the host
> system? Any ideas as to how a firewall should be configured for tomcat to
> function properly? Thanks in advance.
>
> ~Shadow
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
TC5.5.9 Linux - shutdown port 8005 not bound BUG?
Posted by "Darryl L. Miles" <da...@netbauds.net>.
I've never had TC bind itself to 127.0.0.1:8005 to allow correct
shutdown to occur. I've always had to kill the TC JVM.
I use JSVC to be able to get a non-root userid. Does this affect how
the shutdown port works ?
My startup command line:
./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -classpath
:/opt/jakarta-tomcat-5.5.9/bin/bootstrap.jar:/opt/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar
-Dcatalina.base=/opt/jakarta-tomcat-5.5.9
-Dcatalina.home=/opt/jakarta-tomcat-5.5.9
-Djava.io.tmpdir=/opt/jakarta-tomcat-5.5.9/temp -outfile
./logs/catalina.out -errfile ./logs/catalina.err -user jakarta -Xmx2048M
-Xms512M
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
org.apache.catalina.startup.Bootstrap start
$ netstat -tanp | grep 80
tcp 0 0 ::ffff:127.0.0.1:8009
:::* LISTEN 4621/jsvc.exec
tcp 0 0 ::ffff:127.0.0.1:8080
:::* LISTEN 4621/jsvc.exec
Should I file this as a bug ?
--
Darryl L. Miles
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org