Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker container processes frequently being zombied #13

Open
makeusabrew opened this issue Oct 25, 2013 · 2 comments
Open

Docker container processes frequently being zombied #13

makeusabrew opened this issue Oct 25, 2013 · 2 comments

Comments

@makeusabrew
Copy link
Owner

This is wholeheartedly related to #2 but worth splitting out into its own issue - we must get to the bottom of why the combination of child processes aren't naturally exiting. Forcefully calling various .exit() methods (on children and parents) is leaving some docker containers running, and/or (not sure if it's a 1:1 mapping) several zombie node processes which seem to just chew up load.

See moby/moby#1320 for something which sounds vaguely similar.

Just need to step through layer step by step and hunt this down once and for all.

@anandkumarpatel
Copy link

script that will help you repro the issue:

#!/bin/bash
CNT=0
while true
do 
  echo $CNT
  DOCK=$(sudo docker run -d -t anandkumarpatel/zombie_bug ./node index.js)
  sleep 60 && sudo docker stop $DOCK > out.log &
  sleep 1
  CNT=$(($CNT+1))
  if [[ "$CNT" == "50" ]]; then
    exit
  fi
done

@anandkumarpatel
Copy link

I think this can be closed based on issue #1340

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants