I have pointed $projectroot to directory which is of 400GB contains n number of git projects. earlier we had only few project and gitweb started very fast, once project number started growing it is taking time to load. IS there any way to speed up ?
Gitweb recursively searches all directories under $projectroot
to find projects. If there are lots of files displaying the top level will take lots of time. Try adding
$project_maxdepth = 1; # or slightly larger integer depending your project layout
in your /etc/gitweb.conf to limit the searches to first directory levels of $projectroot
.
Like andygavin's answer suggests it's easy to get huge directory trees under $projectroot
if you have non-bare repositories that contain also the checkouts there. It's better to have the checkouts somewhere else and only bare repositories under gitweb. Use
git clone --bare /path/to/projects/project /path/to/gitweb/project
to make bare clone for gitweb from your non-bare project and then configure $projectroot
to /path/to/gitweb/
instead of /path/to/projects/
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With