You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Giampaolo Capelli <gi...@libero.it> on 2007/10/04 09:45:36 UTC

mod_jk balancer and failure detection

hi there everyone,
I'm new to the list.

I would like mod_jk to detect when the Tomcat JVM got into an 
OutOfMemoryException
so that mod_jk avoid to forward request to that Tomcat.

If I'm not wrong, it could happen that the mod_jk balancer forward a 
request to a JVM in such a state,
since the mod_jk isn't able to recognize as crashed a Tomcat in 
OutOfMemory.

I would like to write a patch for the mod_jk to add such feature,
but I don't know the code at all,
could someone get me introduced to it?

Any suggestions? Mini how-to? Support?
I would appreciate them so much and I promise to try any attempt to add 
this feature,
if I can figure out how things work in the mod_jk core and in its 
load_balancer.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: mod_jk balancer and failure detection

Posted by Peter Rossbach <pr...@objektpark.de>.
Hi,

Look at Java Service Wrapper project.  I think you can extend there  
logging trigger filter API.

http://wrapper.tanukisoftware.org/doc/english/prop-filter-x-n.html

As you detect the OME then you can use the jkstatus mod_jk interface  
to deactivate the worker from list.

http://tomcat.apache.org/connectors-doc/reference/status.html

I don't see that a real jvm hook exists for OME's.

Please, use the user list for those questions first.

Thanks
Peter



Am 04.10.2007 um 09:45 schrieb Giampaolo Capelli:

> hi there everyone,
> I'm new to the list.
>
> I would like mod_jk to detect when the Tomcat JVM got into an  
> OutOfMemoryException
> so that mod_jk avoid to forward request to that Tomcat.
>
> If I'm not wrong, it could happen that the mod_jk balancer forward  
> a request to a JVM in such a state,
> since the mod_jk isn't able to recognize as crashed a Tomcat in  
> OutOfMemory.
>
> I would like to write a patch for the mod_jk to add such feature,
> but I don't know the code at all,
> could someone get me introduced to it?
>
> Any suggestions? Mini how-to? Support?
> I would appreciate them so much and I promise to try any attempt to  
> add this feature,
> if I can figure out how things work in the mod_jk core and in its  
> load_balancer.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>