Open Aron3d opened 5 years ago
@Aron3d I've noticed this too recently. Setting autoClose in launch_args to False seems to help with some of the memory leaks.
@Edwardx89 thank you so much for the suggestion!! Setting autoClose to False indeed solved my issue. The memory consumption seems to stay within bounds and I don't run out of open file handles anymore.
Since this is a workaround and not an actual fix for the issue, I don't think it should be closed just yet? Anyways, lots of thanks!
@Aron3d No problem!
@miyakogi Any idea why the memory leak is happening with autoClose set to True? I think it has to do with atexit not closing the process?
Same here... and it even leaks on autoclose = False
Hey everyone! First of all, thanks for creating this wonderful library!
I'm noticing a memory leak when opening/closing the browser many times in a python application. Am I using the library incorrectly, is there some connection that I should close manually?
Ive investigated whether the chrome processes are cleaned up correctly, but that does not seem to be the problem.
tested platforms:
OSX 10.13.5 Ubuntu 16.04
versions:
python 3.6.6 pyppeteer 0.0.25
I see the used memory climb ~300 kb every time the browser is opened and closed, apparently without bounds. Tracemalloc seems to be pointing to something in websockets.
output on OSX:
Any help would be greatly appreciated!