RE: tomcat hang when start with service tomcat start
hi Thanks for so many useful inputs. i totally agree with the following and had tried to get root user's environments by added . /etc/profile . /root/.bash_profile in /etc/init.d/tomcat (we do not want to change /sbin/service) but it did not work From: chuck.caldar...@unisys.com To: users@tomcat.apache.org Date: Tue, 30 Jun 2009 15:19:30 -0500 Subject: RE: tomcat hang when start with service tomcat start From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: tomcat hang when start with service tomcat start the problem must be in something that /sbin/service is doing. Correct; the script that should be undergoing scrutiny is /sbin/service, but the OP seems to be avoiding that for some reason. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Get the best of MSN on your mobile http://clk.atdmt.com/UKM/go/147991039/direct/01/
Re: tomcat hang when start with service tomcat start
zhicheng wang wrote: hi Thanks for so many useful inputs. i totally agree with the following and had tried to get root user's environments by added . /etc/profile . /root/.bash_profile in /etc/init.d/tomcat (we do not want to change /sbin/service) but it did not work Hi again. It has already been established, in part by yourself, that the problem is not with Tomcat, but in all likelihood with the /sbin/service command or script, which is not a part of Tomcat, but either a part of RHEL or something you wrote yourself. Or with the application which you are trying to run, and which is not compatible with what this /sbin/service script/command is doing. This being a Tomcat-oriented list, and not a RHEL- or Grails-oriented list, most people here probably don't have any idea what it inside of that script/command nor that application. But you do not seem to want to either tell what is inside that script, nor to change it. In this case, it seems a bit difficult to help you further. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat hang when start with service tomcat start
zhicheng wang wrote: ... i have a very weird problem with starting tomcat I think it is not so weird.. OS: Red Hat Enterprise Linux AS release 4 (Nahant Update 8) java: jdk1.6.0_14 tomcat:apache-tomcat-6.0.20 if i try to start tomcat using service tomcat start it hangs Where did you get this Tomcat ? is it the RedHat package, or a real Tomcat that you downloaded from tomcat.apache.org and installed yourself ? If it is a real Tomcat (as Chuck would say), then probably your problems come from mixing up a RedHat startup script, with a non-RedHat Tomcat package. The RedHat startup command service probably makes a number of assumptions about where files are, how to set up the environment, etc.., which your real Tomcat does not like. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat hang when start with service tomcat start
hi thanks for the reply. we downloaded tomcat from apache so it is real tomcat. the start upscript was also downloaded from internet (not the redhat one), with some modifications and has been running fine for a few years. the problem began when we started running a Grails app (as ROOT.war) as the hang point indicated INFO: Initializing Spring root WebApplicationContext regards zcw Date: Tue, 30 Jun 2009 16:51:55 +0200 From: a...@ice-sa.com To: users@tomcat.apache.org Subject: Re: tomcat hang when start with service tomcat start zhicheng wang wrote: ... i have a very weird problem with starting tomcat I think it is not so weird.. OS: Red Hat Enterprise Linux AS release 4 (Nahant Update 8) java: jdk1.6.0_14 tomcat:apache-tomcat-6.0.20 if i try to start tomcat using service tomcat start it hangs Where did you get this Tomcat ? is it the RedHat package, or a real Tomcat that you downloaded from tomcat.apache.org and installed yourself ? If it is a real Tomcat (as Chuck would say), then probably your problems come from mixing up a RedHat startup script, with a non-RedHat Tomcat package. The RedHat startup command service probably makes a number of assumptions about where files are, how to set up the environment, etc.., which your real Tomcat does not like. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ MSN straight to your mobile - news, entertainment, videos and more. http://clk.atdmt.com/UKM/go/147991039/direct/01/
Re: tomcat hang when start with service tomcat start
zhicheng wang wrote: hi thanks for the reply. we downloaded tomcat from apache so it is real tomcat. the start upscript was also downloaded from internet (not the redhat one), with some modifications and has been running fine for a few years. the problem began when we started running a Grails app (as ROOT.war) as the hang point indicated INFO: Initializing Spring root WebApplicationContext Ha, that may be another matter altogether. I have an old system like that, with an old CPU and not too much RAM, and this one webapp which takes 15 minutes to initialize whenever I restart Tomcat. During that time, Tomcat is using 99% of the system's CPU time. Are you sure that this is not simply the case here ? You could check with top what really happens. You could also make this webapp into a non-ROOT webapp, and not start it right away. I believe there is a load-on-startup parameter for that in the web.xml of the application, which you can set to 0. Then the app will only initialise when you first call it. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat hang when start with service tomcat start
From: zhicheng wang [mailto:zcwli...@hotmail.co.uk] Subject: RE: tomcat hang when start with service tomcat start the problem began when we started running a Grails app (as ROOT.war) as the hang point indicated INFO: Initializing Spring root WebApplicationContext What does a thread dump show? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat hang when start with service tomcat start
hi but we can start tomcat with other methods such as /etc/init.d/tomcat start /etc/rc5.d/S80tomcat start $CATALINA_HOME/bin/startup.sh the above methods all work fine. and those are called by /sbin/service. Date: Tue, 30 Jun 2009 17:26:14 +0200 From: a...@ice-sa.com To: users@tomcat.apache.org Subject: Re: tomcat hang when start with service tomcat start zhicheng wang wrote: hi thanks for the reply. we downloaded tomcat from apache so it is real tomcat. the start upscript was also downloaded from internet (not the redhat one), with some modifications and has been running fine for a few years. the problem began when we started running a Grails app (as ROOT.war) as the hang point indicated INFO: Initializing Spring root WebApplicationContext Ha, that may be another matter altogether. I have an old system like that, with an old CPU and not too much RAM, and this one webapp which takes 15 minutes to initialize whenever I restart Tomcat. During that time, Tomcat is using 99% of the system's CPU time. Are you sure that this is not simply the case here ? You could check with top what really happens. You could also make this webapp into a non-ROOT webapp, and not start it right away. I believe there is a load-on-startup parameter for that in the web.xml of the application, which you can set to 0. Then the app will only initialise when you first call it. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ MSN straight to your mobile - news, entertainment, videos and more. http://clk.atdmt.com/UKM/go/147991039/direct/01/
RE: tomcat hang when start with service tomcat start
hi do you mean kill -3 pid it printed nothing (while tomcat was hanging) From: chuck.caldar...@unisys.com To: users@tomcat.apache.org Date: Tue, 30 Jun 2009 10:29:57 -0500 Subject: RE: tomcat hang when start with service tomcat start From: zhicheng wang [mailto:zcwli...@hotmail.co.uk] Subject: RE: tomcat hang when start with service tomcat start the problem began when we started running a Grails app (as ROOT.war) as the hang point indicated INFO: Initializing Spring root WebApplicationContext What does a thread dump show? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Get the best of MSN on your mobile http://clk.atdmt.com/UKM/go/147991039/direct/01/
RE: tomcat hang when start with service tomcat start
, 0xb2ed, 0xb432) eden space 23616K, 20% used [0xb0a4,0xb0ee3420,0xb215) from space 5952K, 64% used [0xb215,0xb2514000,0xb272) to space 6528K, 0% used [0xb287,0xb287,0xb2ed) PSOldGentotal 159424K, used 105493K [0x9432, 0x9ded, 0xb0a4) object space 159424K, 66% used [0x9432,0x9aa255b8,0x9ded) PSPermGen total 32768K, used 31030K [0x9032, 0x9232, 0x9432) object space 32768K, 94% used [0x9032,0x9216d9a8,0x9232) From: chuck.caldar...@unisys.com To: users@tomcat.apache.org Date: Tue, 30 Jun 2009 10:29:57 -0500 Subject: RE: tomcat hang when start with service tomcat start From: zhicheng wang [mailto:zcwli...@hotmail.co.uk] Subject: RE: tomcat hang when start with service tomcat start the problem began when we started running a Grails app (as ROOT.war) as the hang point indicated INFO: Initializing Spring root WebApplicationContext What does a thread dump show? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Share your photos with Windows Live Photos – Free. http://clk.atdmt.com/UKM/go/134665338/direct/01/
RE: tomcat hang when start with service tomcat start
Send reply to: Tomcat Users List users@tomcat.apache.org From: zhicheng wang zcwli...@hotmail.co.uk To: users@tomcat.apache.org Subject:RE: tomcat hang when start with service tomcat start Date sent: Tue, 30 Jun 2009 16:53:08 +0100 hi do you mean kill -3 pid it printed nothing (while tomcat was hanging) Look in the catalina.out logfile. From: chuck.caldar...@unisys.com To: users@tomcat.apache.org Date: Tue, 30 Jun 2009 10:29:57 -0500 Subject: RE: tomcat hang when start with service tomcat start From: zhicheng wang [mailto:zcwli...@hotmail.co.uk] Subject: RE: tomcat hang when start with service tomcat start the problem began when we started running a Grails app (as ROOT.war) as the hang point indicated INFO: Initializing Spring root WebApplicationContext What does a thread dump show? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Get the best of MSN on your mobile http://clk.atdmt.com/UKM/go/147991039/direct/01/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat hang when start with service tomcat start
From: zhicheng wang [mailto:zcwli...@hotmail.co.uk] Subject: RE: tomcat hang when start with service tomcat start main prio=10 tid=0x08059000 nid=0x1b5c runnable [0xb749e000] java.lang.Thread.State: RUNNABLE at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228) at java.io.File.isDirectory(File.java:754) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:596) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) many recursive calls snipped That's an awful lot of nested calls. I wonder if your startup script has created an infinite symlink loop? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat hang when start with service tomcat start
hi Chuck many thanks for the reply here is the /etc/init.d/tomcat, it only hangs when run by /sbin/service tomcat start #!/bin/bash # # Startup script for Tomcat, the Apache Servlet Engine # #zcw modified to report status so that it and can be used by service check script 20040114 #zcw modifed to accommdate different versions of tomcat # # chkconfig: 345 80 20 # description: Tomcat is the Apache Servlet Engine RI for Servlet # processname: tomcat # pidfile: /var/run/tomcat.pid # config: /etc/tomcat/conf # # Gomez Henri hgo...@users.sourceforge.net # Keith Irwin keith_ir...@non.hp.com # Nicolas Mailhot nicolas.mail...@one2team.com # # Source function library. . /etc/rc.d/init.d/functions JAVA_HOME=/opt/java/jdk export JAVA_HOME RETVAL=0 CATALINA_HOME=/var/tomcat TOMCAT_PROG=Tomcat # See how we were called. start() { # Start Tomcat in debug mode SHUTDOWN_PORT=`netstat -vatn|grep LISTEN|grep 8005|wc -l` if [ $SHUTDOWN_PORT -ne 0 ]; then echo Tomcat already started else echo -n Starting $TOMCAT_PROG ... #set ${CATALINA_HOME}/bin/startup.sh fi } stop() { SHUTDOWN_PORT=`netstat -vatn|grep LISTEN|grep 8005|wc -l` if [ $SHUTDOWN_PORT -eq 0 ]; then echo Tomcat already stopped else echo -n Stopping $TOMCAT_PROG: ${CATALINA_HOME}/bin/shutdown.sh fi } status() { status ${TOMCAT_PROG} } # See how we were called. case $1 in start) start ;; stop) stop ;; restart) stop sleep 2 start ;; status) tompid=`/bin/ps -ef | /bin/grep tomcat |/bin/grep -v check | /bin/grep -v grep | /bin/grep -v status | /bin/sed -e 's/^ *//' -e 's/ .*//'` if [ ${tompid} != ] then echo ${TOMCAT_PROG} pid ${tompid} is running ... else echo ${TOMCAT_PROG} is dead ... fi ;; *) echo Usage: $TOMCAT_PROG {start|stop|restart|status} exit 1 esac exit $RETVAL ZCW From: chuck.caldar...@unisys.com To: users@tomcat.apache.org Date: Tue, 30 Jun 2009 12:12:39 -0500 Subject: RE: tomcat hang when start with service tomcat start From: zhicheng wang [mailto:zcwli...@hotmail.co.uk] Subject: RE: tomcat hang when start with service tomcat start main prio=10 tid=0x08059000 nid=0x1b5c runnable [0xb749e000] java.lang.Thread.State: RUNNABLE at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228) at java.io.File.isDirectory(File.java:754) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:596) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) many recursive calls snipped That's an awful lot of nested calls. I wonder if your startup script has created an infinite symlink loop? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ MSN straight to your mobile - news, entertainment, videos and more. http://clk.atdmt.com/UKM/go/147991039/direct/01/
Re: tomcat hang when start with service tomcat start
zhicheng wang wrote: hi IF but we can start tomcat with other methods such as $CATALINA_HOME/bin/startup.sh (which is the basic script that starts Tomcat) AND /etc/init.d/tomcat start (which basically calls $CATALINA_HOME/bin/startup.sh) AND /etc/rc5.d/S80tomcat start (which is simply a link to /etc/init.d/tomcat) AND NOT WITH /sbin/service THEN the problem must be in something that /sbin/service is doing. OR am I missing something ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: tomcat hang when start with service tomcat start
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: tomcat hang when start with service tomcat start the problem must be in something that /sbin/service is doing. Correct; the script that should be undergoing scrutiny is /sbin/service, but the OP seems to be avoiding that for some reason. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat hang when start with service tomcat start
2009/6/30 zhicheng wang zcwli...@hotmail.co.uk: if i try to start tomcat using service tomcat start it hangs at INFO: Initializing Spring root WebApplicationContext or reboot also hangs here BUT, if i run the following commands, it starts up fine: /etc/init.d/tomcat start /etc/rc5.d/S80tomcat start $CATALINA_HOME/bin/startup.sh AFAIK, one of essentials about /sbin/service is that starts the script using empty environment. Maybe that causes the difference. 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 hang when start with service tomcat start
are you using a mounted network drive? Filip Caldarale, Charles R wrote: From: zhicheng wang [mailto:zcwli...@hotmail.co.uk] Subject: RE: tomcat hang when start with service tomcat start main prio=10 tid=0x08059000 nid=0x1b5c runnable [0xb749e000] java.lang.Thread.State: RUNNABLE at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228) at java.io.File.isDirectory(File.java:754) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:596) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) at org.springframework.core.io.support.PathMatchingResourcePatternResolver .doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:597) many recursive calls snipped That's an awful lot of nested calls. I wonder if your startup script has created an infinite symlink loop? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org