メインコンテンツまでスキップ

API-S で Acquisition Unit サービスに対して Java によって HeapDumpOnOutOfMemoryError 例外がスローされる

Views:
16
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 値は​​​​​​ 、 Acquisition Unit サービス用の 2163m です。

 

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.