Skip to main content
NetApp Knowledge Base

Java throws HeapDumpOnOutOfMemoryError exceptions for the acquisition unit service in API-S

Views:
407
Visibility:
Public
Votes:
0
Category:
oncommand-api-services-api-s
Specialty:
legacy
Last Updated:

Applies to

  • OnCommand API Service 2.2P1 in Linux (API-S)

Issue

  • Java throws HeapDumpOnOutOfMemoryError exceptions 
  • Large Heap dump files are created in /var/log/ocie with .hprof extension which fill up the filesystem

Example name of the file: java_pid9127.hprof

  • Executing command ps -aux | grep 9127 gives us the following output:

jboss     9127     1 99 Jun16 ?        203-01:22:05 java -Djna.tmpdir=/opt/netapp/data/tmp -Djava.io.tmpdir=/opt/netapp/data/tmp -D https.protocols=TLSv1,TLSv1.1,TLSv1.2 -Dlog4j.configurationFile=ocie-production.xml 
-Donaro.home=/opt/netapp/essentials -Dcodebase= https://localhost:8443 -Djava.library.path=/opt/netapp/essentials/au/bin -Dacq.home=/opt/netapp/essentials/au -Djava.security.properties=/opt/netapp/essentials/au/conf/java.security 
-Djava.rmi.server.hostname=localhost -Xmx2163m -Xms256m -XX:PermSize=64m -XX:MaxPermSize=256m -classpath /opt/netapp/essentials/au/conf:/opt/netapp/essentials/au/*:/opt/netapp/essentials/au/lib/*:/opt/netapp/essentials/au/lib/xml/xerces/*:
/opt/netapp/essentials/au/lib/xml/jdom/*:/opt/netapp/essentials/au/lib/jboss/client/*:/opt/netapp/essentials/au/lib/xml-3rd/*:/opt/netapp/essentials/au/lib/shared/* -Dno.trap=false -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/ocie 
-XX:ErrorFile=/var/log/ocie/au_error_%p.log -DJDBC_DRIVER=org.mariadb.jdbc.Driver -Djava.net.preferIPv6Stack=true -Djava.net.preferIPv6Addresses=true -verbose:gc -Xloggc:/var/log/ocie/gc_au.log -XX:+PrintGCDateStamps -XX:+PrintGCDetails 
-XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=5M -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+PrintTenuringDistribution com.onaro.sanscreen.acquisition.framework.Main start

  • We see that the XMX value is 2163m​​​​​​ for the acquisition unit service.

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.