tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Does anyone have an approach to checking if Tomcat instance is UP?
Date Tue, 21 Aug 2007 13:27:37 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kim,

Kim Albee wrote:
> The JSP does a call to a method in our app -- which if it runs, that means
> the app is up and available -- the method does a simple query against the DB
> and then returns a status of OK if the method runs through just fine.
> 
> In our example from this weekend -- the health.jsp (which is the one that
> does this check) ran and returned a good result, but the main
> index.jspreturned the 500 error with the OutOfMemory exception.  So
> that is what is confusing here.

Two things are wrong:

1. Your "health check" is flawed ; otherwise, it would catch the fact
that you have a "dead" server.

2. index.jsp is causing its own OOME, not reporting an existing condition.

What does index.jsp do that health.jsp does not?

- -chris

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

iD8DBQFGyuhJ9CaO5/Lv0PARAoq1AJ45SG2Qa1qF/4BEJAoFoWG7yv4mrACdERCp
6CJVZUI8DlpWojvHP0+HgBM=
=sPT9
-----END PGP SIGNATURE-----

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


Mime
View raw message