question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

generate-dhparam becomes a zombie process

See original GitHub issue

When running a nginx proxy the generation of a dhparam file is executed in the background. However, this causes the process to become a zombie process.

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
xxxx     16431  0.0  0.0      0     0 ?        Z    13:07   0:00 [generate-dhpara] <defunct>

My bash knowledge is limited, but I guess this is caused in these lines. Maybe someone with bash knowledge knows how to prevent this.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:4
  • Comments:6

github_iconTop GitHub Comments

3reactions
gerrytsuicommented, Aug 30, 2018

@frederikbosch OK I tested the better workaround: we upgraded our docker environment to use docker-compose file version 3.7 and docker-engine 18.06 and are able to eliminate zombie processes by specifying init: true ( under nginx service in the yml), without modifying the CMD line.

If you don’t use docker-compose, you should be able to specify docker run --init to achieve the same result

pstree command shows that the forego is now a child of init instead of /bin/sh.

0reactions
saostadcommented, Feb 6, 2020

@frederikbosch OK I tested the better workaround: we upgraded our docker environment to use docker-compose file version 3.7 and docker-engine 18.06 and are able to eliminate zombie processes by specifying init: true ( under nginx service in the yml), without modifying the CMD line.

If you don’t use docker-compose, you should be able to specify docker run --init to achieve the same result

pstree command shows that the forego is now a child of init instead of /bin/sh.

it worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating & troubleshooting Zombie processes in Python
In Linux terms, a zombie process is a process that has finished its execution but is still waiting for its Parent Process to...
Read more >
Create zombie process - Stack Overflow
To see a zombie process, you need to make the child exit while the parent is still alive but hasn't waited on the...
Read more >
Zombie and Orphan Processes in C - GeeksforGeeks
A child process always first becomes a zombie before being removed from the process table. The parent process reads the exit status of...
Read more >
Angelic Crucibles Mechanics in Diablo 3 Season 27 - Icy Veins
Season 27 introduces a new type of consumable item called Angelic Crucibles. Once uncovered by the player, these heavenly artifacts can be ...
Read more >
costume ideas for girl best friends - Lampadis Media
Oct 01, 2022 · Check out some of these awesome costume ideas: -A Zombie: This ... Become the human version of the best...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found