Forum Discussion

Ken_Wong_48678's avatar
Ken_Wong_48678
Historic F5 Account
Sep 11, 2006

tcl memory keep growing and LTM no response

Hi,

 

 

One of our customer uses the following iRules to perform persistent and finds the tcl memory in statistics keep growing and caused the LTM no response.

 

 

Has anyone seen the symptoms? I think the iRule is quite common. Thanks in advance!

 

 

rule us_web_iRule {

 

when CLIENT_ACCEPTED {

 

set add_persist 1

 

}

 

when HTTP_RESPONSE {

 

if { [HTTP::cookie exists "JSESSIONID"] and $add_persist } {

 

persist add uie [HTTP::cookie "JSESSIONID"]

 

set add_persist 0

 

}

 

}

 

when HTTP_REQUEST {

 

if { [HTTP::cookie exists "JSESSIONID"] } {

 

persist uie [HTTP::cookie "JSESSIONID"]

 

} else {

 

set jsess [findstr [HTTP::uri] "jsessionid" 11 ";"]

 

if { $jsess != "" } {

 

persist uie $jsess

 

}

 

}

 

}

 

}

 

 

 

Regards,

 

Ken (k.wong@f5.com)

 

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    I don't see anything in that rule that would cause the memory consumption to continue increasing.

     

     

    I'd probably fix the logic around the first if statement to be sure you're checking to see what the value of $add_persist is, not just that it exists...but I wouldn't think that would cause the behavior you're describing.

     

     

    Have you tried adding some logging statements to ensure that things are firing the way you expect them to?

     

     

    Colin