summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/src/org
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2019-12-13 01:18:12 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2020-01-20 17:53:08 +0100
commit709f83d489b777c21ad5bbeeb3e8b1232b3f0ee5 (patch)
tree4de96eb44fd6928748be43f5e2fe47d51efd6692 /org.eclipse.jgit.pgm/src/org
parent6185db3d776f1064af1972b4ba2175a917c35ab3 (diff)
downloadjgit-709f83d489b777c21ad5bbeeb3e8b1232b3f0ee5.tar.gz
jgit-709f83d489b777c21ad5bbeeb3e8b1232b3f0ee5.zip
WindowCache: add option to use strong refs to reference ByteWindows
Java GC evicts all SoftReferences when the used heap size comes close to the maximum heap size. This means peaks in heap memory consumption can flush the complete WindowCache which was observed to have negative impact on performance of upload-pack in Gerrit. Hence add a boolean option core.packedGitUseStrongRefs to allow using strong references to reference packfile pages cached in the WindowCache. If this option is set to true Java gc can no longer flush the WindowCache to free memory if the used heap comes close to the maximum heap size. On the other hand this provides more predictable performance. Bug: 553573 Change-Id: I9de406293087ab0fa61130c8e0829775762ece8d Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm/src/org')
0 files changed, 0 insertions, 0 deletions