Lots of zombie Git processes #6521

Closed
opened 2025-11-02 06:58:27 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @Trumeet on GitHub (Dec 14, 2020).

Description

It's still not clear what is happening, but after I started the website days ago, I found there's a bunch of (currently 263) zombie git processes under gitea (Look at the htop result), and the memory usage is high (not sure if this is intended).

I have some repos in this install, and one of them is a mirror of youtube-dl. I spotted some errors pulling this repo (just found this repo is disabled). I have another install but has lesser visits and does not have mirrors, and there's no such problem.

Screenshots

image

Originally created by @Trumeet on GitHub (Dec 14, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.13.0 - Git version: 2.29.2 - Operating system: Arch Linux (Running inside a Podman container), but I run gitea directly without using systemd. <!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package --> <!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. ---> <!-- If you are using a package or systemd tell us what distribution you are using --> - Database (use `[x]`): - [ ] PostgreSQL - [X] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - Log gist: https://gist.github.com/Trumeet/ca129caa2a5f15822aa4bc5ae7391548 <!-- It really is important to provide pertinent logs --> <!-- Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems --> <!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini --> ## Description It's still not clear what is happening, but after I started the website days ago, I found there's a bunch of (currently 263) zombie git processes under gitea (Look at the htop result), and the memory usage is high (not sure if this is intended). I have some repos in this install, and one of them is a mirror of [youtube-dl](https://github.com/youtube-dl2/youtube-dl). I spotted some errors pulling this repo (just found this repo is disabled). I have another install but has lesser visits and does not have mirrors, and there's no such problem. ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** --> ![image](https://user-images.githubusercontent.com/17158086/102134231-1c94ac80-3e0b-11eb-827c-f0c093731e96.png)
GiteaMirror added the type/bug label 2025-11-02 06:58:27 -06:00
Author
Owner

@zeripath commented on GitHub (Dec 14, 2020):

Unfortunately I can't look at your log gist on my phone as it is too large however, I will try to look at it tomorrow to attempt to discover if there is a reason for these dangling processes.

On the admin pages there is process subpage that will be able to tell you what those git tasks are supposed to be doing and give you the a button to cancel them (or at least attempt to)

That would be the quickest way to report what was causing these processes.


Hmm thinking on its potentially git processes being cancelled like this that could be the cause, depending on if they don't have their exit code read.

I guess the logs might tell us more

@zeripath commented on GitHub (Dec 14, 2020): Unfortunately I can't look at your log gist on my phone as it is too large however, I will try to look at it tomorrow to attempt to discover if there is a reason for these dangling processes. On the admin pages there is process subpage that will be able to tell you what those git tasks are supposed to be doing and give you the a button to cancel them (or at least attempt to) That would be the quickest way to report what was causing these processes. --- Hmm thinking on its potentially git processes being cancelled like this that could be the cause, depending on if they don't have their exit code read. I guess the logs might tell us more
Author
Owner

@zeripath commented on GitHub (Dec 15, 2020):

Ah so it looks like it's related to your broken mirrors.

@zeripath commented on GitHub (Dec 15, 2020): Ah so it looks like it's related to your broken mirrors.
Author
Owner

@zeripath commented on GitHub (Dec 15, 2020):

And I think I've worked it out.

@zeripath commented on GitHub (Dec 15, 2020): And I think I've worked it out.
Author
Owner

@Trumeet commented on GitHub (Dec 16, 2020):

Ah so it looks like it's related to your broken mirrors.

Thanks. Unfortunately I just rebooted the system so I cannot confirm that, but since I had already updated the link to the mirror, I checked and confirmed that there's no zombie git processes since the last boot.

@Trumeet commented on GitHub (Dec 16, 2020): > Ah so it looks like it's related to your broken mirrors. Thanks. Unfortunately I just rebooted the system so I cannot confirm that, but since I had already updated the link to the mirror, I checked and confirmed that there's no zombie git processes since the last boot.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6521