Re: Tomcat hangs on Startup

2009-09-25 Thread RogerV



bluezman wrote:
 
 Path perhaps ?
 What's defined for java_home ?
 

JAVA_HOME is set. Mind you, if it was a path error, I would expect either
Tomcat to not start at all or a ClassNotFoundException to be thrown at the
very least.

Sorry about the duplicate message, I'd been having problems with Nabble
blocking messages and as things sorted themselves out, duplicates have been
arriving in other lists as well :( Apologies

Regards 
-- 
View this message in context: 
http://www.nabble.com/Tomcat-hangs-on-Startup-tp25530995p25607109.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Tomcat hangs on Startup

2009-09-23 Thread lists
Path perhaps ?
What's defined for java_home ?
Sent via BlackBerry from T-Mobile

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



Re: Tomcat hangs on Startup

2009-09-23 Thread Mark Thomas
RogerV wrote:
 I'm running Tomcat 6.0.18 on Debian Linux (Lenny). Tomcat is configured to
 start automatically through the init process, but it hangs using 95+% of the
 CPU and won't respond to /etc/init.d/tomcat stop. I have to kill the
 process. I've tried manually starting it as root with /etc/init.d/tomcat
 start and with /opt/tomcat/bin/startup.sh but the same thing happens. The
 last entry in catalina.date.log in all cases is INFO: Overriding property
 struts.configuration.xml.reload old value false new value:true
 
 However, if I cd to the directory /op/tomcat/bin and run ./startup.sh from
 there Tomcat starts normally. Has anyone got an idea as to what might be
 going on?

How about reading the responses you received when you sent the same
question yesterday?

Mark




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



Re: Tomcat hangs on startup

2009-09-22 Thread Mark Thomas
RogerV wrote:
 I'm running Tomcat 6.0.18 on Debian Linux (Lenny). Tomcat is configured to
 start automatically through the init process, but it hangs using 95+% of the
 CPU and won't respond to /etc/init.d/tomcat stop. I have to kill the
 process. I've tried manually starting it as root with /etc/init.d/tomcat
 start and with /opt/tomcat/bin/startup.sh but the same thing happens. The
 last entry in catalina.date.log in all cases is INFO: Overriding property
 struts.configuration.xml.reload old value false new value:true
 
 However, if I cd to the directory /op/tomcat/bin and run ./startup.sh from
 there Tomcat starts normally. Has anyone got an idea as to what might be
 going on?

Use kill -3 to take a couple of thread dumps ~15s apart when it hangs.
Compare the thread dumps to see which thread(s) is(are) stuck.

Mark




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



Re: Tomcat hangs on startup

2009-09-22 Thread Rainer Jung
On 22.09.2009 10:29, Mark Thomas wrote:
 RogerV wrote:
 I'm running Tomcat 6.0.18 on Debian Linux (Lenny). Tomcat is configured to
 start automatically through the init process, but it hangs using 95+% of the
 CPU and won't respond to /etc/init.d/tomcat stop. I have to kill the
 process. I've tried manually starting it as root with /etc/init.d/tomcat
 start and with /opt/tomcat/bin/startup.sh but the same thing happens. The
 last entry in catalina.date.log in all cases is INFO: Overriding property
 struts.configuration.xml.reload old value false new value:true

 However, if I cd to the directory /op/tomcat/bin and run ./startup.sh from
 there Tomcat starts normally. Has anyone got an idea as to what might be
 going on?
 
 Use kill -3 to take a couple of thread dumps ~15s apart when it hangs.
 Compare the thread dumps to see which thread(s) is(are) stuck.

And if you use something like ps -L you can identify the thread number
of the thread using the CPU time. That number on most OSes corresponds
either to the tid or the nid value shown in the header lines before each
thread stack of the dump. The tid and id are in hex though.

Regards,

Rainer

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