Icinga / docker-icinga2

Official Icinga 2 Docker images
GNU General Public License v2.0
67 stars 30 forks source link

Zombie processes #34

Closed Quantum-Sicarius closed 3 years ago

Quantum-Sicarius commented 4 years ago

Running the container for a while will produce thousands of zombie process until all check start failing

icinga   2411824 3668603  0 04:34 ?        00:00:00 [ping] <defunct>
icinga   2411826 3668603  0 04:34 ?        00:00:00 [ping] <defunct>
icinga   2412155 3668603  0 04:35 ?        00:00:00 [ping] <defunct>
icinga   2412162 3668603  0 04:35 ?        00:00:00 [ping] <defunct>
icinga   2412164 3668603  0 04:35 ?        00:00:00 [ping] <defunct>
icinga   2412560 3668603  0 04:36 ?        00:00:00 [ping] <defunct>
icinga   2412572 3668603  0 04:36 ?        00:00:00 [ping] <defunct>
icinga   2412574 3668603  0 04:36 ?        00:00:00 [ping] <defunct>
icinga   2412948 3668603  0 04:37 ?        00:00:00 [ping] <defunct>
icinga   2412952 3668603  0 04:37 ?        00:00:00 [ping] <defunct>
icinga   2412954 3668603  0 04:37 ?        00:00:00 [ping] <defunct>
icinga   2413246 3668603  0 04:38 ?        00:00:00 [ping] <defunct>
icinga   2413285 3668603  0 04:38 ?        00:00:00 [ping] <defunct>
icinga   2413287 3668603  0 04:38 ?        00:00:00 [ping] <defunct>
icinga   2413646 3668603  0 04:39 ?        00:00:00 [ping] <defunct>
icinga   2413691 3668603  0 04:39 ?        00:00:00 [ping] <defunct>
icinga   2413693 3668603  0 04:39 ?        00:00:00 [ping] <defunct>
icinga   2414028 3668603  0 04:40 ?        00:00:00 [ping] <defunct>
icinga   2414037 3668603  0 04:40 ?        00:00:00 [ping] <defunct>
icinga   2414039 3668603  0 04:40 ?        00:00:00 [ping] <defunct>
icinga   2414369 3668603  0 04:41 ?        00:00:00 [ping] <defunct>
icinga   2414375 3668603  0 04:41 ?        00:00:00 [ping] <defunct>
icinga   2414377 3668603  0 04:41 ?        00:00:00 [ping] <defunct>
icinga   2414775 3668603  0 04:42 ?        00:00:00 [ping] <defunct>
icinga   2414786 3668603  0 04:42 ?        00:00:00 [ping] <defunct>
icinga   2414788 3668603  0 04:42 ?        00:00:00 [ping] <defunct>
icinga   2415147 3668603  0 04:43 ?        00:00:00 [ping] <defunct>
icinga   2415155 3668603  0 04:43 ?        00:00:00 [ping] <defunct>
icinga   2415157 3668603  0 04:43 ?        00:00:00 [ping] <defunct>
icinga   2415449 3668603  0 04:44 ?        00:00:00 [ping] <defunct>
icinga   2415492 3668603  0 04:44 ?        00:00:00 [ping] <defunct>
icinga   2415494 3668603  0 04:44 ?        00:00:00 [ping] <defunct>
icinga   2415910 3668603  0 04:45 ?        00:00:00 [ping] <defunct>
icinga   2415968 3668603  0 04:45 ?        00:00:00 [ping] <defunct>
icinga   2415970 3668603  0 04:45 ?        00:00:00 [ping] <defunct>
icinga   2416339 3668603  0 04:46 ?        00:00:00 [ping] <defunct>
icinga   2416353 3668603  0 04:46 ?        00:00:00 [ping] <defunct>
icinga   2416355 3668603  0 04:46 ?        00:00:00 [ping] <defunct>
icinga   2416707 3668603  0 04:47 ?        00:00:00 [ping] <defunct>
icinga   2416715 3668603  0 04:47 ?        00:00:00 [ping] <defunct>
icinga   2416719 3668603  0 04:47 ?        00:00:00 [ping] <defunct>
icinga   2417270 3668603  0 04:48 ?        00:00:00 [ping] <defunct>
icinga   2417284 3668603  0 04:48 ?        00:00:00 [ping] <defunct>
icinga   2417286 3668603  0 04:48 ?        00:00:00 [ping] <defunct>
icinga   2418026 3668603  0 04:49 ?        00:00:00 [ping] <defunct>
icinga   2418897 3668603  0 04:50 ?        00:00:00 [ping] <defunct>
icinga   2418939 3668603  0 04:50 ?        00:00:00 [ping] <defunct>
icinga   2420034 3668603  0 04:51 ?        00:00:00 [ping] <defunct>
icinga   2420044 3668603  0 04:51 ?        00:00:00 [ping] <defunct>
icinga   2422232 3668603  0 04:54 ?        00:00:00 [ping] <defunct>
icinga   2423345 3668603  0 04:57 ?        00:00:00 [ping] <defunct>
Quantum-Sicarius commented 4 years ago

I am testing with dumb-init to see if that helps

Quantum-Sicarius commented 4 years ago

So far running over the weekend with no issues.

I will see if I can create a pull request for you.

Al2Klimov commented 4 years ago

Hello @Quantum-Sicarius and thank you for reporting!

What's your Icinga 2 version?

Best, AK

Quantum-Sicarius commented 4 years ago

FROM icinga/icinga2:2.12.1

Using this image and it occurred in multiple instances.

The dumb-init solution has been working great so far. I don't see any zombie processes.

Al2Klimov commented 4 years ago

Strange... I thought https://github.com/Icinga/icinga2/pull/8376 would do it...

Is that dumb-init transparent enough to the actual main process? (signals, TTY colors, etc.)