Skip to content
\n

I guess emphasis on persistent right?
\nAre these processes meant to never die? What purpose do they serve?

\n

Gather, count, and look at the procs

\n
[ec2-user@ip-10-10-10-10 ~]$ ps -eaf | grep git > ~/git_procs\n[ec2-user@ip-10-10-10-10 ~]$ wc -l ~/git_procs \n6086 /home/ec2-user/git_procs\n[ec2-user@ip-10-10-10-10 ~]$ head ~/git_procs && tail ~/git_procs \nec2-user   306 21895  0 23:22 pts/1    00:00:00 git cat-file --batch-check\nec2-user   309 21895  0 21:50 pts/1    00:00:00 git cat-file --batch-check\nec2-user   310 21895  0 22:46 pts/1    00:00:00 git cat-file --batch-check\nec2-user   312 21895  0 21:50 pts/1    00:00:00 git cat-file --batch\nec2-user   321 21895  0 23:22 pts/1    00:00:00 git cat-file --batch-check\nec2-user   323 21895  0 21:50 pts/1    00:00:00 git cat-file --batch-check\nec2-user   325 21895  0 22:46 pts/1    00:00:00 git cat-file --batch-check\nec2-user   326 21895  0 23:22 pts/1    00:00:00 git cat-file --batch\nec2-user   333 21895  0 21:50 pts/1    00:00:00 git cat-file --batch-check\nec2-user   335 21895  0 23:22 pts/1    00:00:00 git cat-file --batch-check\nec2-user 32731 21895  0 22:46 pts/1    00:00:00 git cat-file --batch-check\nec2-user 32732 21895  0 21:50 pts/1    00:00:00 git cat-file --batch-check\nec2-user 32735 21895  0 21:50 pts/1    00:00:00 git cat-file --batch\nec2-user 32741 21895  0 23:22 pts/1    00:00:00 git cat-file --batch-check\nec2-user 32746 21895  0 22:46 pts/1    00:00:00 git cat-file --batch-check\nec2-user 32748 21895  0 21:50 pts/1    00:00:00 git cat-file --batch-check\nec2-user 32750 21895  0 21:50 pts/1    00:00:00 git cat-file --batch\nec2-user 32759 21895  0 23:22 pts/1    00:00:00 git cat-file --batch-check\nec2-user 32762 21895  0 21:50 pts/1    00:00:00 git cat-file --batch-check\nec2-user 32764 21895  0 22:46 pts/1    00:00:00 git cat-file --batch-check\n
","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

I think it's good to start off this discussion with a reference to known resource leakage and ways to fix it.

\n

Something worth investigating here is if somehow the same repository is creating multiple git commands, leaving 'zombies' of previous invocation as process children or worse, detached from its parent process (python).

\n

If you think that this is probably not the case then it's worth trying to explicitly calling the destructor on a Repo instance once you are done with it.

","upvoteCount":1,"url":"https://github.com/gitpython-developers/GitPython/discussions/1209#discussioncomment-550858"}}}

Launches git cat-file processes which never die #1209

Answered by Byron
ericfrederich asked this question in Q&A
Discussion options

You must be logged in to vote

I think it's good to start off this discussion with a reference to known resource leakage and ways to fix it.

Something worth investigating here is if somehow the same repository is creating multiple git commands, leaving 'zombies' of previous invocation as process children or worse, detached from its parent process (python).

If you think that this is probably not the case then it's worth trying to explicitly calling the destructor on a Repo instance once you are done with it.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@ericfrederich
Comment options

@Byron
Comment options

@ericfrederich
Comment options

Answer selected by Byron
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1208 on March 31, 2021 02:06.