cancel
Showing results for 
Search instead for 
Did you mean: 

OutOfMemory (Java Heap) while loading large files

praveen33in
Champ in-the-making
Champ in-the-making
Hi,
I am using CMIS ATOM PUB API to load documents to Alfresco and it is working good for small files. However, while loading large documents (greater than 100MB) the upload of document is failing with "OutOfMemory: JavaHeap" exception. Kindly let me know if there is any workaround for this. Please find below details of configuration:
    Alfresco Version: Community 4.2.f
    JVM settings in ctl.sh: "-XX:MaxPermSize=512m -Xms4G -Xmx4G -server -XX:+DisableExplicitGC -XX:+UseParallelGC -Djava.awt.headless=true -Dalfresco.home=/u01/app/alfresco-4.2.f -Dcom.sun.management.jmxremote -Dsun.security.ssl.allowUnsafeRenegotiation=true -XX:ReservedCodeCacheSize=128m"
    JVM settings in setenv.sh: "-XX:+DisableExplicitGC -XX:ReservedCodeCacheSize=128m -XX:MaxPermSize=512M -Xms4G -Xmx4G -server $JAVA_OPTS"

I tried changing the value of XMS and XMX to 8GB, the document got loaded once but now the SOLR indexing was giving OutOfMemory error.

Kindly advice on what needs to be done to avoid the exception and be able to load large files.
Thanks in Advance.

-Praveen
1 REPLY 1

gonial
Champ in-the-making
Champ in-the-making
I have the same problem. Could you fix it?
(sorry for my English )