Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can see that Java apps based on JGit have a tendency to disble ddd by default.<br> See this <a href="http://gitblit.com/properties.html" rel="nofollow">config file</a> for <a href="http://gitblit.com/" rel="nofollow"><strong>Gitblit</strong></a> for instance:</p> <pre><code># When true, JGit will use mmap() rather than malloc()+read() to load data from # pack files. The use of mmap can be problematic on some JVMs as the garbage # collector must deduce that a memory mapped segment is no longer in use before # a call to munmap() can be made by the JVM native code. # # In server applications (such as Gitblit) that need to access many pack files, # setting this to true risks artificially running out of virtual address space, # as the garbage collector cannot reclaim unused mapped spaces fast enough. # # Default on JGit is false. Although potentially slower, it yields much more # predictable behavior. # Documentation courtesy of the Gerrit project. # # SINCE 1.0.0 # RESTART REQUIRED git.packedGitMmap = false </code></pre> <hr> <p>This is consistent with the <a href="http://dev.eclipse.org/mhonarc/lists/jgit-dev/msg01961.html" rel="nofollow">JGit thread</a> you found:</p> <blockquote> <blockquote> <p>I ran into another instance of not being able to delete a cloned repository in windows.<br> This one appears linked to the use of "<code>PackedGitMMAP</code>".<br> Is this a known problem with trying to use virtual memory mapping?</p> </blockquote> <p>Yes.<br> The problem is the JVM does not release the memory mapping until the mapping is garbage collected by the Java GC.<br> This can happen at any time in the future, possibly never if there is insufficient memory pressure to force the GC to really look for garbage and reclaim.<br> This is why we disable the feature by default, we can't predict when the JVM will finally release the file.</p> <blockquote> <p>In this test case if I "<code>setPackedGitMMAP=false</code>" then the repository is deleted successfully.</p> </blockquote> <p>Yes. This is why this is the default.</p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload