-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 5.0, 6.0
-
Component/s: DSpace API
-
Labels:None
-
Attachments:
-
Comments:5
-
Documentation Status:Complete or Committed
Running AIP package import (in my case /dspace/bin/dspace packager -u -r -a -f -t AIP ...) is vulnerable to memory errors due to low implicit value of heap memory in the command line script (JAVA_OPTS="-Xmx256m -Dfile.encoding=UTF-8"). I encountered both
java.lang.OutOfMemoryError: GC overhead limit exceeded
and
java.lang.OutOfMemoryError: Java heap space
In both cases and in case when the command is terminated by Ctrl-C, the database transaction is aborted, but files are left in the assetstore. There should be a cleanup process to take care of them at next DSpace (CLI or webapp) startup. A list of files created (something akin to a mapfile) to revert an unsuccessful previous attempt to import.