Replies: 2 comments
-
From @msohn :
|
Beta Was this translation helpful? Give feedback.
-
I've analyzed this in MAT and it looks like ~270k elements in "updated" and ~340k elements in "builder" makes sense, as that includes both alive and deleted files across all branches (also dead and alive). So from the current point in time for the end user, they see only 6.7k files but Git repo contains much bigger history. On the implementation side I have this: On original checkout (when local repo does not exist) I do
Not sure if those arguments help this case much. But once the folder exists, I just do If there's better approach to do this on my side I'd appreciate any help. |
Beta Was this translation helpful? Give feedback.
-
Conversation moved from https://www.eclipse.org/forums/index.php/t/1116555/
I have a Git repo that's about 25M in size:
It has about 6700 files in about 1500 folders.
git clone uses about 17M of RAM max:
But jgit (7.0.0) runs out of memory on my microservice with -Xmx256m (it does so even if I do -Xmx350m)
It seems that DirCacheCheckout holds 57M in updated field, and 63M in builder.
Baseline for the microservice is about 85M, so it looks that to checkout this repo jgit needs more than ~160M.
Is there a way to improve memory usage or tell jgit a cache limit??
Beta Was this translation helpful? Give feedback.
All reactions