You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Vladimir Sitnikov <si...@gmail.com> on 2013/09/05 00:42:59 UTC

Suboptimal memory usage in ResponseAssertion

Hi,

I've noticed that ResponseAssertion does not cleanup regex matcher memory,
thus it keeps the whole web page in memory.

RegexExtractor calls JMeterUtils.clearMatcherMemory(matcher, pattern); to
clean up the memory.

Does is make sense to add the same cleanup to ResponseAssertion?
Same for HTTPSamplerBase -> downloadPageResources -> localMatcher

-- 
Regards,
Vladimir Sitnikov

Re: Suboptimal memory usage in ResponseAssertion

Posted by sebb <se...@gmail.com>.
On 4 September 2013 23:42, Vladimir Sitnikov
<si...@gmail.com> wrote:
> Hi,
>
> I've noticed that ResponseAssertion does not cleanup regex matcher memory,
> thus it keeps the whole web page in memory.
>
> RegexExtractor calls JMeterUtils.clearMatcherMemory(matcher, pattern); to
> clean up the memory.
>
> Does is make sense to add the same cleanup to ResponseAssertion?
> Same for HTTPSamplerBase -> downloadPageResources -> localMatcher

Seems like it would be good to look at making such changes.

Bugs and enhancement requests are normally done through Bugzilla, as
it's much easier to track progress there.

Would you be able to create Bugzilla requests for your suggested fixes?
Patches welcome too, but not essential here as it should be obvious
what to change.

> --
> Regards,
> Vladimir Sitnikov