Failed to open directory '/var/www/repo/conf_dev.git/refs/': Too many open files
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.
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 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.
There is no repack in git2go, you'll have to use git's repack.
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?