Page 1 of 1

PVCS VM to SVN import - java.lang.OutOfMemoryError

Posted: Tue Feb 15, 2011 11:38 am
by jyotipant
Greetings !!

While importing my pvcs vm database of 51 MB size, I am getting the following exception in svnimporter.log:

05:47:34,813 [main] DEBUG PvcsProvider:80 - get all contents for C:\TEMP\local\pvcs.tempdir\pvcs.tempdir
05:50:33,580 [main] ERROR Main:96 - EXCEPTION CAUGHT: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
at java.lang.AbstractStringBuilder.append(Unknown Source)
at java.lang.StringBuilder.append(Unknown Source)
at org.polarion.svnimporter.pvcsprovider.PvcsProvider.getAllContents(PvcsProvider.java:303)
at org.polarion.svnimporter.pvcsprovider.PvcsProvider.buildSvnModel(PvcsProvider.java:180)
at org.polarion.svnimporter.main.Main.buildFullSvnModel(Main.java:158)
at org.polarion.svnimporter.main.Main.run(Main.java:88)
at org.polarion.svnimporter.main.Main.main(Main.java:51)

05:50:33,580 [main] DEBUG PvcsProvider:80 - cleanup
05:50:34,799 [main] DEBUG SvnAdmin:80 - cleanup
05:50:34,799 [main] INFO historyLogger:84 - duration: 3321 seconds

An empty repository with no data is created.

Please let me know how to avoid this error.

Also since I am a newbie to svnimporter tool, please let me know if we can migrate archived files of PVCS VM to SVN Edge.

Thanks in advance.

Re: PVCS VM to SVN import - java.lang.OutOfMemoryError

Posted: Mon Feb 21, 2011 10:13 am
by NickEntin
Hello,
if you're running the importer via run.bat, please edit the file in the line:
set JAVA_OPTS=-Xmx192m

set more memory to the Java, e.g.
set JAVA_OPTS=-Xmx1500m

if your computer has 2+ GB RAM.
You can play with the number, as 51MB is not so big database, so smaller number should work too.

Best regards,
Nick

Re: PVCS VM to SVN import - java.lang.OutOfMemoryError

Posted: Mon Feb 21, 2011 10:15 am
by NickEntin
BTW, this topic is posted in wrong forum - it belongs to SVN Importer, not SVN Web Client

PVCS VM to SVN import java lang OutOfMemoryError

Posted: Mon Sep 23, 2019 1:33 pm
by BeJimmieGah
Not sure I understand: do you have Java 7 installed or not?

Best,

Clement
PS: make also sure you do Help -> Check for updates in the Gephi menu, then a restart.