Gitweb has become slow

I pointed $ projectroot to a 400 GB directory containing n number of git projects. previously we had only a few projects and gitweb started very quickly, as soon as the project number began to grow, it took time to download. Is there a way to speed up?

+5
source share
2 answers

Gitweb recursively searches all directories under $projectrootto search for projects. If there are many files displaying the top level, it will take a lot of time. Try to add

$ project_maxdepth = 1; # or a slightly larger integer depending on your project layout

in your /etc/gitweb.conf to limit the search to the level of the first directory $projectroot.

andygavin, $projectroot, - , . gitweb.

git clone --bare/path/to/projects/project/path/to/gitweb/project

gitweb - , $projectroot /path/to/gitweb/ /path/to/projects/.

+4

, , :

git gc --aggressive 

, gitweb , , , .

0

All Articles