Forum Discussion
iRule for tmm utilization
Can someone help with iRule which will increase tmm memory gradually. I tried with iRule which create loop, but that doesn't help. Intention is to test adaptive reaper feature in lab as had issue in prod. below iRule used only caused tmm to restart but adaptive reaping didn't get on.
when CLIENT_ACCEPTED {
array set ipAddress {}
set y 1000
for {set i 0} {$i < 1000000} {incr i} {
set static::ipAddress("[IP::client_addr]*[TCP::client_port]_$i") "The memory command gives the Tcl developer control of Tcl's memory debugging capabilities. The memory command has several suboptions, which are described below. It is only available"
if {$i == $y} {
after 2 set y [expr {$y + 100}]
} }
1 Reply
- hoolio
Cirrostratus
Can you try adding entries to the session table using the table command, instead of a static array?
https://devcentral.f5.com/wiki/iRules.table.ashx
Also, you might try lowering the loop count and increase the client connections over time to increase the memory utilization more gradually.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com