jgm / jgm/gitit

high CPU usage because of git grep process

Open
#680 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
2.3k
Forks
231
PR merge metrics
No merged PRs in 30d

Description

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 `

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.