Commit 35eb6972 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix memory leak because of persistent browser history.

Clear the Browser history (storing (request, response)) after each
suite. Moreover, it does make sense to keep it as suites are independent of
each other.
parent f875679f
......@@ -124,6 +124,12 @@ class BenchmarkProcess(multiprocessing.Process):
raise RuntimeError("Stopping as mean is greater than maximum "
"global average")
finally:
# Clear the Browser history (which keeps (request, response))
# otherwise it will consume a lot of memory after some time. Also it
# does make sense to keep it as suites are independent of each other
self._browser.mech_browser.clear_history()
result.exitSuite(with_error)
result.iterationFinished()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment