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

high CPU usage because of git grep process #680

Open
FarmerCzech opened this issue May 26, 2022 · 1 comment
Open

high CPU usage because of git grep process #680

FarmerCzech opened this issue May 26, 2022 · 1 comment

Comments

@FarmerCzech
Copy link

Hello,

I would like to ask you about a problem I have with my server. I am running gitit through apache and use it for data storing and sharing with other people. It worked well for a long time, but some time ago, it started to load the server too much. A few times per day, the uptime command shows more than 15, which is a lot.
I was trying to identify the problem and it seems, the following command is doing this:

git grep -I -n --null --ignor-case --all-match --word-regexp -e <some path>

These git greps are running several times and are costly on CPU. Do not you have any idea, why this could be happening? I can provide any other information you ask me for.

Just to note, our gitit repository is quite large currently, it has about 20 GB (photos, pdfs, scripts, etc). But some very small files should be excluded. I know, gitit was probably not designed for such large repositories, but I'm not sure if this can be the problem or not...

Thank you for your answer,
Petr

@jgm
Copy link
Owner

jgm commented May 30, 2022

This is used for search.
You could try disabling search if you don't need it (e.g. by removing the search component from a template). I don't have a better solution.

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

No branches or pull requests

2 participants