forked from antmak/git-mirror
    
        
        - 
                Notifications
    
You must be signed in to change notification settings  - Fork 2
 
Description
Checklist
- Checked the issue tracker for similar issues to ensure this is not a duplicate.
 - Provided a clear description of your suggestion.
 - Included any relevant context or examples.
 
Issue or Suggestion Description
Over time, server accumulates zombie processes of git.
It can lead to consumption of all PID pool:
error: cannot fork() for upload-pack: Resource temporarily unavailable
error: cannot fork() for upload-pack: Resource temporarily unavailable
error: cannot fork() for upload-pack: Resource temporarily unavailable
Example output:
ps -eo ppid=,stat=,pid=,comm= | awk '$2 ~ /Z/ {cnt[$1]++} END{for (p in cnt) printf "%-8s %7d\n", p, cnt[p] | "sort -nr -k2"}'
1469       19030
``
ld-musl-x86_64.,1469 --argv0 /git-mirror --preload /lib/libgcompat.so.0 -- /git-mirror /config/config.toml
$ ps -p "1469" -o pid,ppid,cmd,stat
PID    PPID CMD                         STAT
1469    1446 ld-linux-x86-64.so.2 --argv Ssl