DockStudios / jmon

YAML-based automated endpoint/website canary/synthetics checking
https://gitlab.dockstudios.co.uk/pub/jmon/jmon
0 stars 1 forks source link

Zombie processes grow forever on agent #49

Closed mrmattyboy1 closed 8 months ago

mrmattyboy1 commented 8 months ago

After a week or so, there are 5K zombie processes on the agent. Checks are using firefox.

mrmattyboy1 commented 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

mrmattyboy1 commented 8 months ago

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>
mrmattyboy1 commented 8 months ago

Possibly see: https://stackoverflow.com/questions/38518998/selenium-leaves-behind-running-processes

MatthewJohn commented 8 months ago

See https://gitlab.dockstudios.co.uk/pub/jmon/jmon/-/merge_requests/97

MatthewJohn commented 8 months ago

Fixed in release 4.14.1