[greenstone-users] JAVA heap space problem with large collections

From Renate Morgenstern
DateSat Dec 4 02:15:13 2010
Subject [greenstone-users] JAVA heap space problem with large collections
Good day,
I have a collection of more than 5000 photos. It always took some time
to open the collection (with 2048 M Xmx) , but after installing
candidate 2.84 of October 2010, I get a Java heap error. I increased the
size from 128 to 2048, but still a problem. Small collections open
I am using MAC OSX.
See error message below:
Any suggestion what to do.
Thanks
Renate

User cache dir: /Users/Renate/.gli/cache/
Exception in thread "Thread-6" java.lang.OutOfMemoryError: Java heap
space
at java.util.regex.Pattern$BnM.optimize(Pattern.java:5394)
at java.util.regex.Pattern.compile(Pattern.java:1410)
at java.util.regex.Pattern.<init>(Pattern.java:1124)
at java.util.regex.Pattern.compile(Pattern.java:817)
at java.lang.String.replaceAll(String.java:2000)
at
org.greenstone.gatherer.metadata.MetadataXMLFile.skimFile(MetadataXMLFile.java:630)
at
org.greenstone.gatherer.metadata.MetadataXMLFileManager.loadMetadataXMLFile(MetadataXMLFileManager.java:268)
at
org.greenstone.gatherer.metadata.MetadataXMLFileManager.loadMetadataXMLFiles(MetadataXMLFileManager.java:254)
at
org.greenstone.gatherer.metadata.MetadataXMLFileManager.loadMetadataXMLFiles(MetadataXMLFileManager.java:251)
at
org.greenstone.gatherer.collection.CollectionManager.loadCollectionInternal(CollectionManager.java:1425)
at
org.greenstone.gatherer.collection.CollectionManager.access$200(CollectionManager.java:84)
at
org.greenstone.gatherer.collection.CollectionManager$LoadCollectionTask.run(CollectionManager.java:1186)