+
Skip to content

high CPU usage because of git grep process #680

Open
@FarmerCzech

Description

@FarmerCzech

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载