Forum Discussion

Swedeski_89366's avatar
Swedeski_89366
Icon for Nimbostratus rankNimbostratus
Nov 03, 2010

Java/Tomcat session count from iControl API.

Hello -

 

 

I'm working on a deployment process that uses BigIP to drain sessions before stopping processes, etc... We've been able to test that BigIP respects a Java/Tomcat session routing and drains appropriately. What we're looking for is a way to get a count of sessions so that we can use that to know when all sessions have been drained off of a VIP, thus allowing us to safely stop the applications.

 

 

Therefore, my question is, is there a way through iControl to get a count of active or current sessions?

 

 

We're using iControl jar, from the manifest:

 

Created-By: 1.6.0_20 (Sun Microsystems Inc.)

 

2 Replies

  • You'll want to call the get_statistics() method on the virtual server in question. You will want to look at the STATISTIC_SERVER_SIDE_CURRENT_CONNECTIONS statistic. An example of how to do this can be found in my "Graceful Server Shutdown" tech tip

     

     

    http://devcentral.f5.com/Tutorials/...tdown.aspx

     

     

    In that example, I'm working on a PoolMember, but the logic would be the same for the virtual server. Keep in mind that a virtual server could possibly host multiple applications, so you may really want to target the Pool instead of the VIP...

     

     

    Hope this helps...

     

     

    -Joe

     

  • Excellent. Thanks for the help. Our VIPs are dedicated to an application at this point.