cancel
Showing results for 
Search instead for 
Did you mean: 

Out of memery using web sevices

xian
Champ on-the-rise
Champ on-the-rise
Hi
We have set up Alfresco-Enterprise 3.2 and are trying to import our data, but keep getting out of memory exceptions. The data is a large collection of tiff images and metadata, 10-60MB a piece, and it is being entered through the the web services (CML) via a script. The first few go OK, but at some point the exception is thrown and the importing stops. How many succeed depend on how much ram we have given Alfresco. We ran the box with 4GB ram (borrowed some from other virtual machines) with the following options:

export JAVA_OPTS='-Xms3570m -Xmx3570m -XX:MaxPermSize=256m -server'
export JAVA_OPTS="${JAVA_OPTS} -Dalfresco.home=${ALF_HOME} -Dcom.sun.management.jmxremote"

Any idea why it is using so much ram or how it and could be configured to use it more efficiently?

Thanks in advance.
1 REPLY 1

xian
Champ on-the-rise
Champ on-the-rise
I meant to add: The exception from the log shows it is heap space:

java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Arrays.java:2882)
        at java.io.CharArrayWriter.write(CharArrayWriter.java:88)
        at org.apache.axis.message.SOAPHandler.characters(SOAPHandler.java:169)
.
.
.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.