Forum Discussion

Venkat_Raj_2350's avatar
Venkat_Raj_2350
Icon for Nimbostratus rankNimbostratus
Jul 19, 2016

Monitor to check the JVM instance and Disable pool member if exceeds a set count

We have 4 servers with each running JVM instances. The admins have set up a script so that All 4 instances are publishing actual Tomcat Thread counts every 10 seconds into a simple html page at URLs in the servers. eg. ( http://Server1/TomcatThreadCount/ )

 

The requirement is to setup and irule so that, If thread count is > 400, then disable the pool member If thread count is < 250, then enable it back UP.

 

Or can it be done using a monitor?

 

Please help

 

1 Reply

  • Health monitor:

    GET /TomcatThreadCount HTTP/1.1\r\nHost: host.domain.com\r\nConnection: Close\r\n

    See this for regex in health monitors: SOL5917

    For 400+, you may want to use something like this: [4-9][0-9][0-9]