Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose JGit parameters #389

Closed
gitblit opened this issue Aug 12, 2015 · 2 comments
Closed

Expose JGit parameters #389

gitblit opened this issue Aug 12, 2015 · 2 comments

Comments

@gitblit
Copy link
Collaborator

gitblit commented Aug 12, 2015

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

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Reported by James.Moger on 2012-06-07 03:41:45

  • Status changed: Queued

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Resolved in v1.0.0.

Reported by James.Moger on 2012-07-14 04:44:17

  • Status changed: Done

@gitblit gitblit closed this as completed Aug 12, 2015
@flaix flaix modified the milestone: 1.0.0 Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants