Zombies on Ubuntu 12.04
mwf opened this issue · 2 comments
mwf commented
Hi!
At last, I'm reporting this bug =) I've promissed it since Yandex GoLang Meetup...
Cocaine leaves zombie processes after stopping application.
OS Ubuntu 12.04, Cocaine 0.11.1.0 or 0.11.2.0 (reproduced on both)
How to reproduce:
- Start cocaine application (for example, Echo-application).
- Make a call to start a worker.
checkps aux | grep python
and findout it has been started... - If worker is closed automatically (after 10 minutes timeout of inactivity), everything is fine!
But if makecocaine-tool app stop -n <name>
than checkps aux | grep python
- it will return something like this:
ps aux | grep python
cocaine 4280 0.9 0.0 0 0 ? Z 20:16 0:00 [python] <defunct>
ikorolev 4318 0.0 0.0 8112 928 pts/1 S+ 20:16 0:00 grep python
After that, every shutdown worker (doesn't matter, was it closed manually or automatically) stays in system as zombie.
This is reproduced not only if having Python workers, but also Native.
noxiouz commented
This problem could be solved by using a new version of libev
(4.15), but it's not an ideal solution.
mwf commented
This problem could be solved by using a new version of libev (4.15), but it's not an ideal solution.
Thanks!
Anyway, I'll wait for Ubuntu 14.04 release, and the problem will become deprecated =)