Skip to content

Expose JGit parameters #389

Description

@gitblit

Originally reported on Google Code with ID 93

From Matthas:

you probably need to increase some of the jgit configuration parameters 
(see Gerrit documentation for jgit core parameters [1])

Set core.packedGitLimit larger than the size of your biggest repository.
This ensures you can serve most requests from memory.

Increase the value of core.streamFileThreshold to a value larger than 
the size of the biggest files contained in your repos in case you run a
high-traffic server. Increase maximum heap size for the jvm running the
server accordingly (for high traffic Gerrit sites it's not unusual to use
heap sizes of dozens of GB).

If you are serving a lot of repositories with a lot of traffic you may want
to increase core.packedGitOpenFiles which may also require to increase
the ulimit on file descriptors for the hosting JVM.

In addition you should run git gc on all repositories regularly otherwise
performance will degrade depending on how many objects get changed.

[1] http://gerrit-documentation.googlecode.com/svn/Documentation/2.3/config-gerrit.html#_a_id_core_a_section_core

Reported by James.Moger on 2012-05-04 11:46:28

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions