AnsweredAssumed Answered

OutOfMemory (Java Heap) while loading large files

Question asked by praveen33in on Nov 10, 2014
Latest reply on Oct 26, 2015 by gonial
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

Outcomes