Forum Discussion

Ecesureshkumar's avatar
Ecesureshkumar
Icon for Nimbostratus rankNimbostratus
Oct 23, 2013

Irule for jsession ID weblogic support

hi all, i am very new to this irules, hence i need you help on the below query.

We have deployed application in two manager servers respectively (Server A and Server B running weblogic)

irule used for Jsession persistance is

when HTTP_REQUEST { set log_prefix "[IP::client_addr]:[TCP::client_port]" log local0. "$log_prefix: Request to [HTTP::uri] with cookie: [HTTP::cookie value JSESSIONID]"

if { [HTTP::cookie "JSESSIONID"] ne "" }{ persist uie [string tolower [HTTP::cookie "JSESSIONID"]] 360

  log local0. "$log_prefix: Used persistence record from cookie. Existing key? [persist lookup uie [string tolower [HTTP::cookie "JSESSIONID"]]]"

} else { set jsess [findstr [string tolower [HTTP::path]] "jsessionid=" 11]

  if { $jsess != "" } {
     persist uie $jsess 360

     log local0. "$log_prefix: Used persistence record from path: [persist lookup uie $jsess]"
  }

} } when HTTP_RESPONSE { if { [HTTP::cookie "JSESSIONID"] ne "" }{ persist add uie [string tolower [HTTP::cookie "JSESSIONID"]] 360

  log local0. "$log_prefix: Added persistence record from cookie: [persist lookup uie [string tolower [HTTP::cookie "JSESSIONID"]]]"

} }

  1. If Server A is Up and Server B is down then we are processing 2000 transactions in 5 minutes.
  2. If Server B is Up and Server A is down then we are processing 2000 transactions in 5 minutes.
  3. If both Server A and Server B servers are Up then we are processing only 100 transactions in 5 minutes and more than 65 transactions getting time out.

We need to understand why this successful transactions is low when both servers are up and troubleshooting commands to analysis this.

20 Replies