git2go icon indicating copy to clipboard operation
git2go copied to clipboard

Failed to open directory '/var/www/repo/conf_dev.git/refs/': Too many open files

Open b35li opened this issue 10 years ago • 4 comments

I found some comments from this blog to increase the limitation of opened files on server, https://rtcamp.com/tutorials/linux/increase-open-files-limit/, and change to 655360.

it can be resolved by workaroud, however, it will reach the new limitation sooner or later, does anybody have better solution for this?

I remember git has command named "gc" to collect the opened garbages, is this a right way? How ?

Thanks in advance.

b35li avatar May 29 '15 03:05 b35li

See libgit2/libgit2#2781 and libgit2/libgit2#2758. This likely happens due to many small pushes into this repository. If you regularly perform garbage collection and/or repacks in your repositories as part of rutine maintenance, you won't see this issues.

carlosmn avatar May 29 '15 03:05 carlosmn

@carlosmn Sorry for late response. Do u know the ways of soft-gc or repacks in git2go? or do we have to do that by git commands.

b35li avatar Jun 03 '15 08:06 b35li

There is no repack in git2go, you'll have to use git's repack.

carlosmn avatar Jun 03 '15 08:06 carlosmn

Okay, I guess so. However, I have another question, as we know, we will create a repo object by git2go, if we run git repack or git gc by git commands, does it apply the change to the living object of repo which I have created by users request from anywhere? do I need to monitor the repack and then refresh the repo object in git2go?

b35li avatar Jun 03 '15 08:06 b35li