Skip to Content

[com.hybris.datahub.rest.resources.mapper.BaseExceptionMapper] An exception intercepted java.lang.OutOfMemoryError: Java heap space

I am getting following error while sending a product from HE4 System to Hybris through datahub.

[com.hybris.datahub.rest.resources.mapper.BaseExceptionMapper] An exception intercepted java.lang.OutOfMemoryError: Java heap space (failed to allocate 76258128 bytes) (max heap: 256 MB) .

Can somebody help here, how can i increase heap size in Datahub?

Thanks Tanima

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 06, 2017 at 08:27 AM

    How much ram you are using??

    Which version of hybris?

    Have you done any customisations for platform websites??

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2018 at 12:12 PM

    Hi There,

    You need to navigate to the location /home/appadmin/apache-tomcat-7.0.37/bin and edit the file setenv.sh file.

    You should see this entry as shown below.

    JAVA_OPTS="$JAVA_OPTS -Xmx512MB -server -XX:+UseG1GC -XX:+UseTLAB -XX:+PrintTenuringDistribution -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:/home/appadmin/apache-tomcat-7.0.37/logs/java_gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=768K"

    In the above entry modify the value of -Xmx512MB to -Xmx10G .

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.