Closed mrmattyboy1 closed 8 months ago
Does selenium clear up the browser and geckodriver without the Pid termination (https://github.com/DockStudios/jmon/blob/main/jmon/runner.py#L100)?
Investigate: https://psutil.readthedocs.io/en/latest/#kill-process-tree
Example:
> ps aux | grep defu
root 13665 0.0 0.0 0 0 ? Z 08:04 0:00 [Socket Process] <defunct>
root 13715 0.0 0.0 0 0 ? Z 08:04 0:00 [dbus-launch] <defunct>
root 13717 0.0 0.0 0 0 ? Zs 08:04 0:00 [dbus-daemon] <defunct>
root 13769 0.0 0.0 0 0 ? Z 08:04 0:00 [Utility Process] <defunct>
Fixed in release 4.14.1
After a week or so, there are 5K zombie processes on the agent. Checks are using firefox.