跳转到主内容

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

Views:
9
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 米。

 

CUSTOMER EXCLUSIVE CONTENT

Registered NetApp customers get unlimited access to our dynamic Knowledge Base.

New authoritative content is published and updated each day by our team of experts.

Current Customer or Partner?

Sign In for unlimited access

New to NetApp?

Learn more about our award-winning Support