Carbonio zombie pro...
 
Notifications
Clear all

Carbonio zombie processes

6 Posts
4 Users
0 Likes
329 Views
(@horizon)
Joined: 1 year ago
Posts: 30
Topic starter  

How to prevent zombie processes?

 

ps -elf --forest | grep -C5 '<[d]efunct>'

 

0 S carboni+ 2622 1 0 80 0 - 564437 ep_pol 13:43 ? 00:00:02 /usr/bin/envoy --config-path /tmp/envoy-171ed88b60e2a862-bootstrap.json --disable-hot-restart
0 Z carboni+ 2790 2622 0 80 0 - 0 - 13:43 ? 00:00:00 \_ [consul] <defunct>
0 S carboni+ 2623 1 0 80 0 - 564437 ep_pol 13:43 ? 00:00:02 /usr/bin/envoy --config-path /tmp/envoy-171ed88b71c9c8d9-bootstrap.json --disable-hot-restart
0 Z carboni+ 2868 2623 0 80 0 - 0 - 13:43 ? 00:00:00 \_ [consul] <defunct>
0 S carboni+ 2624 1 0 80 0 - 564437 ep_pol 13:43 ? 00:00:02 /usr/bin/envoy --config-path /tmp/envoy-171ed88b63bab7c1-bootstrap.json --disable-hot-restart
0 Z carboni+ 2812 2624 0 80 0 - 0 - 13:43 ? 00:00:00 \_ [consul] <defunct>
4 S carboni+ 2625 1 0 80 0 - 564437 ep_pol 13:43 ? 00:00:02 /usr/bin/envoy --config-path /tmp/envoy-171ed88b64a33c88-bootstrap.json --disable-hot-restart
0 Z carboni+ 2813 2625 0 80 0 - 0 - 13:43 ? 00:00:00 \_ [consul] <defunct>
0 S carboni+ 2641 1 0 80 0 - 564437 ep_pol 13:43 ? 00:00:02 /usr/bin/envoy --config-path /tmp/envoy-171ed88b7320c943-bootstrap.json --disable-hot-restart
0 Z carboni+ 2865 2641 0 80 0 - 0 - 13:43 ? 00:00:00 \_ [consul] <defunct>
0 S carboni+ 2642 1 0 80 0 - 564437 ep_pol 13:43 ? 00:00:02 /usr/bin/envoy --config-path /tmp/envoy-171ed88b611719ff-bootstrap.json --disable-hot-restart
0 Z carboni+ 2796 2642 0 80 0 - 0 - 13:43 ? 00:00:00 \_ [consul] <defunct>
0 S carboni+ 2643 1 0 80 0 - 564437 ep_pol 13:43 ? 00:00:02 /usr/bin/envoy --config-path /tmp/envoy-171ed88b729a1a35-bootstrap.json --disable-hot-restart
0 Z carboni+ 2867 2643 0 80 0 - 0 - 13:43 ? 00:00:00 \_ [consul] <defunct>
0 S carboni+ 2644 1 0 80 0 - 564437 ep_pol 13:43 ? 00:00:02 /usr/bin/envoy --config-path /tmp/envoy-171ed88b71962a87-bootstrap.json --disable-hot-restart
0 Z carboni+ 2878 2644 0 80 0 - 0 - 13:43 ? 00:00:00 \_ [consul] <defunct>
0 S carboni+ 2651 1 0 80 0 - 564437 ep_pol 13:43 ? 00:00:03 /usr/bin/envoy --config-path /tmp/envoy-171ed88b780d4935-bootstrap.json --disable-hot-restart
0 Z carboni+ 2888 2651 0 80 0 - 0 - 13:43 ? 00:00:00 \_ [consul] <defunct>
0 S carboni+ 2727 1 0 80 0 - 564437 ep_pol 13:43 ? 00:00:01 /usr/bin/envoy --config-path /tmp/envoy-171ed88b7bfb0a65-bootstrap.json --disable-hot-restart
0 Z carboni+ 2894 2727 0 80 0 - 0 - 13:43 ? 00:00:00 \_ [consul] <defunct>


   
Quote
(@stefanodavid)
Joined: 2 years ago
Posts: 120
 

These processes (defunct, or "Z" processes) do not impact the system. They are already completed but the parent process was unable to pickup its status and close it cleanly, so to say. Being completed processes, they also do not consume any resource anymore. The solution is usually to restart the parent process, you can do so during a maintenance window of your server, to avoid any impact on the server's availability.


   
ReplyQuote
(@horizon)
Joined: 1 year ago
Posts: 30
Topic starter  

Hello

I did not report this because it is a serious issue because indeed most of the time a zombie process does not affect the system resources.

However it would be better to avoid this from happening. So room for improvement here.


   
ReplyQuote
(@stefanodavid)
Joined: 2 years ago
Posts: 120
 

Hi @horizon

My answer was not only directly to you, but also to other who read your post and might be worried by the presence of these processes. Of course, zombie processes are not nice to see in a ps output and should not be there, because they indicate that something went wrong. I will inform the dev team responsible of this issue and let them tackle it.


   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 222
 
Posted by: @horizon

How to prevent zombie processes?

 

ps -elf --forest | grep -C5 '<[d]efunct>'

@horizon

Hi,

We have forwarded this issue to our Dev team. We will get back to you as soon as we have any news.

We hope you could understand the process, hence we appreciate your patience.

Thank you for being with us.

Thanks and regards,
Sharif


   
ReplyQuote
(@drcyberg)
Joined: 3 months ago
Posts: 5
 

Hi Masters!

I have the same situation:

ps aux | egrep "Z|defunct"
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
carboni+    5572  0.0  0.0      0     0 ?        Z    Sep22   0:00 [consul] <defunct>
carboni+    5576  0.0  0.0      0     0 ?        Z    Sep22   0:00 [consul] <defunct>
carboni+    5586  0.0  0.0      0     0 ?        Z    Sep22   0:00 [consul] <defunct>
carboni+    6209  0.0  0.0      0     0 ?        Z    Sep22   0:00 [consul] <defunct>
carboni+    6221  0.0  0.0      0     0 ?        Z    Sep22   0:00 [consul] <defunct>
carboni+    6233  0.0  0.0      0     0 ?        Z    Sep22   0:00 [consul] <defunct>
carboni+    6238  0.0  0.0      0     0 ?        Z    Sep22   0:00 [consul] <defunct>
carboni+    6244  0.0  0.0      0     0 ?        Z    Sep22   0:00 [consul] <defunct>
carboni+    6254  0.0  0.0      0     0 ?        Z    Sep22   0:00 [consul] <defunct>
carboni+    6255  0.0  0.0      0     0 ?        Z    Sep22   0:00 [consul] <defunct>
carboni+    6264  0.0  0.0      0     0 ?        Z    Sep22   0:00 [consul] <defunct>
carboni+    6278  0.0  0.0      0     0 ?        Z    Sep22   0:00 [consul] <defunct>
root     3004720  0.0  0.0  10756  2376 pts/0    S+   13:57   0:00 grep -E --color=auto Z|defunct

Add the following command line to crontab to periodically clean up zombie processes:

kill $(ps -A -ostat,ppid | awk '/[zZ]/ && !a[$2]++ {print $2}')

Should such errors be reported to someone later?

 

Thank you!

 

Regards: DrCyberg


   
ReplyQuote