I have to implement a scenario where i have to call the same request at max for 5 times if it fails and based on the response i am writing some thing in a file. Failure happens when a string is not found from cookie which i am capturing as regular exp.
To resolve this , i have added while loop with counter but the script works till 50000 iteration and then gives Out of memory error. If i dont put while loop to recall the same request for 5 times, then same script works for 1 million with same JVM without any issue.
Looks like While controller in Jmeter is somehow consuming more memory and throwing out of memory.
Is there any option to recall the same HTTP request through Beanshell Post processor?