jmcarp / robobrowser

BSD 3-Clause "New" or "Revised" License
3.7k stars 337 forks source link

Appear to have memory leak in browser.open #74

Open washad opened 7 years ago

washad commented 7 years ago

(Really nice product, btw - thanks for your effort).

I have an operation in which I set a value via 'post' then wait for the web page to reflect the response. Inside a while loop I place a call to browser.open(url), check, then sleep for 5-seconds. I've profiled this with psutils, measuring memory use per call, each call increases my memory use by about 1Mb until eventually bringing down my application.

Cheers

Sarrablo commented 7 years ago

Same case here. Persistant call to open method gives a out of memory. I fixed it with gc.collect(), but is not elegant or eficient

heinrich5991 commented 7 years ago

Have you tried setting history=False in the constructor?

FlyingKawasaki74 commented 6 years ago

Tried using gc.collect which didn't help. But setting history to False fixed it!