Hello,
I contact you please regarding a memory problem that I have when I run the command subgit install path_to_git_repo and I am stuck on the message “Translating Subversion revisions to Git commits…” for almost three hours and then an error message “java heap space”
I tried to add more memory to SubGit standalone executable by editing SubGit launching script ( subgit.bat ) and change EXTRA_JVM_ARGUMENTS line, like:
set EXTRA_JVM_ARGUMENTS=-Djava.util.logging.config.file="%BASEDIR%\conf\logging.properties" -Dsun.io.useCanonCaches=false -Djava.awt.headless=true -Djna.nosys=true -Dsvnkit.http.methods=Digest,Basic,NTLM,Negotiate -Xmx8g
But still the same error.
Thank you in advance for your help.
Regards,
Fahd
Hello Fahd,
the message “Translating Subversion revisions to Git commits…” is an expected message that indicates that SubGit started the initial import from the SVN repository. The import itself may take a long time depending on the SVN repository size and history, so three hours may also be expected. The Out of Memory error you are getting (java heap space
) is not expected and indicates that SubGit was unable to place the whole SVN revision to the memory for handling. This most often happens when SVN is accessed over http
and SubGit is set to not to use http spooling which leads to the issue. To change this behaviour set the svn.httpSpooling
setting to true
prior to the initial import:
[svn]
…
httpSpooling = true
Another possible way is to use other protocols, like svn
or ssh
to access the SVN server.