-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Carlos,

On 6/30/2011 12:47 PM, Carlos Juarez wrote:
>>> In addition I found a webpage that tells how to check when tomcat falls, 
>>> (checking PID or Service status)
>>> the problem is that when my tomcat hangs it still "working", Can't use that 
>>> methods 
>>
>> Instead of trying to work around the problem, why not try to understand
>> why Tomcat (or more likely your application) is 'hanging'?
> 
> I understand that my app have a problem, I can change nothing on the
>  code, because I don't even have the source code but only the compiled 
> classes.
> 
>>
>> What do the logs say when this happens?
>> Is the JVM really still running?
> 
> that was my question. how can i know if my JVM is really still working, when 
> I make ps axf | grep java or ps ax | grep tomcat, appear the tomcat process, 
> when i check service tomcat1 (or tomcat2) status. it responds "running",  but 
> nothing is serving requests.

Whatever checks the service status is likely to be very basic -- just
checking to see if the pid is actually still alive or something like that.

Better to find out what the server is really doing.

Pid asked about the logs. Can you check the logs for errors or other
suspicious messages?

Also, you can take a thread dump of the JVM to find out what's going on:
http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4M3EIACgkQ9CaO5/Lv0PDnVACgr7Z091Ef2SuGWLP2sOSeSiP2
tCEAn1BVw6AXH7FxmMB5NVKcjXtkBc0t
=pHZR
-----END PGP SIGNATURE-----

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

Reply via email to