Skip to content

Bug: Leaking zombie threads (of git processes) (SRV-4) #8

@kumekay

Description

@kumekay

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions