PVCS VM to SVN import - java.lang.OutOfMemoryError

Former SVN Browser
jyotipant
Posts: 2
Joined: Mon Feb 14, 2011 10:52 am

PVCS VM to SVN import - java.lang.OutOfMemoryError

Postby jyotipant » Tue Feb 15, 2011 11:38 am

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.

NickEntin
Posts: 472
Joined: Tue Oct 24, 2006 10:27 am
Location: Polarion Software GmbH, Stuttgart
Contact:

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

Postby NickEntin » Mon Feb 21, 2011 10:13 am

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

NickEntin
Posts: 472
Joined: Tue Oct 24, 2006 10:27 am
Location: Polarion Software GmbH, Stuttgart
Contact:

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

Postby NickEntin » Mon Feb 21, 2011 10:15 am

BTW, this topic is posted in wrong forum - it belongs to SVN Importer, not SVN Web Client


Return to “Polarion SVN Web Client”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests