跳转到主内容

Java 为 API-S 中的采集单元服务引发 HeapDumpOnOutOfMemoryError 异常

Views:
11
Visibility:
Public
Votes:
0
Category:
oncommand-api-services-api-s
Specialty:
om
Last Updated:

适用于

  • Linux 中的 OnCommand API 服务 2.2P1 ( API-S )

问题

  • Java 引发 HeapDumpOnOutOfMemoryError 异常 
  • 大型堆转储文件在中使用 /var/log/ocie .hprof 扩展名创建 这将填满文件系统

文件的示例名称: java_pid9127.hprof

  • 执行命令 ps -aux | grep 9127 可提供以下输出:

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

  • 我们发现​​​​​​ ,采集单元服务的 Xmx 值为 216 米。

 

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.