Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Browsermob - Python - Windows Java process stay running after proxy.close and server.stop

I have a python - selenium - browsermob script which is waiting and listening a server for a task on standby inside a while loop until termination. When task is assigned, it calls a function which at each call creates new browsermob proxy server object and a selenium webdriver objects. After it does the work, I close the proxy with proxy.close() function, stop server by server.stop() function and quit web driver by driver.quit() function. But each time function is called, new process of java.exe starts to run and never stops, so after each function call my memory consumption increases significantly. Is there any way to terminate that already used java processes?

like image 548
Sinan Sari Avatar asked Dec 28 '25 11:12

Sinan Sari


1 Answers

If you work under Windows, this is still an open issue: Server.stop() does not kill the java process in Windows.

like image 141
Michele Benolli Avatar answered Dec 31 '25 03:12

Michele Benolli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!