WebSphere App ServerのNative_Stderrファイルを理解します
-
27-10-2019 - |
質問
すべて、WebSphere App Server 7.0.0.15でアプリケーションを実行しながら、Native_stderr.logファイルを取得しています。以前は以前は単純なログファイル形式でしたが、最近、ファイルがXML形式であることを観察しました。
このファイルを解釈するためのIBM提供されたツールはありますか?
logfileには、次のようなセクションが含まれています。
<af type="tenured" id="345" timestamp="Sep 07 15:51:45 2011" intervalms="3981.813">
<minimum requested_bytes="16400" />
<time exclusiveaccessms="0.163" meanexclusiveaccessms="0.163" threads="0" lastthreadtid="0x0000000032D8C700" />
<refs soft="24731" weak="22022" phantom="1950" dynamicSoftReferenceThreshold="19" maxSoftReferenceThreshold="32" />
<tenured freebytes="4223424" totalbytes="536870912" percent="0" >
<soa freebytes="0" totalbytes="531503104" percent="0" />
<loa freebytes="4223424" totalbytes="5367808" percent="78" />
</tenured>
<gc type="global" id="347" totalid="347" intervalms="3982.134">
<finalization objectsqueued="786" />
<timesms mark="677.563" sweep="8.489" compact="0.000" total="686.650" />
<tenured freebytes="334476968" totalbytes="536870912" percent="62" >
<soa freebytes="330253544" totalbytes="531503104" percent="62" />
<loa freebytes="4223424" totalbytes="5367808" percent="78" />
</tenured>
</gc>
<tenured freebytes="334460568" totalbytes="536870912" percent="62" >
<soa freebytes="330237144" totalbytes="531503104" percent="62" />
<loa freebytes="4223424" totalbytes="5367808" percent="78" />
</tenured>
<refs soft="24252" weak="17085" phantom="1950" dynamicSoftReferenceThreshold="19" maxSoftReferenceThreshold="32" />
<time totalms="687.356" />
</af>
ありがとう
解決
その出力はJVM FerboseGCトレースです。ファイル形式は変更されていませんが、まだフラットですが、誰かがFerboseGCログを有効にしているため、Xmlishの追加情報出力を取得しています。
それらは、これをプロデュースのきれいなグラフで解析できるツールです。 IBMサポートアシスタント ガベージコレクションとメモリビジュアライザーと呼ばれるツールが含まれています。手順をインストールする方法を含むこのツールのビデオがあります IBM教育アシスタント.
他のヒント
WebSphere Application Serverで冗長なガベージコレクションを有効にすると、この種の情報が得られます。それを確認する場合は、そのパスサーバー - >アプリケーションサーバー - > server1(ログを表示するサーバーをクリックしてください) - >プロセス定義 - > Java仮想マシン - > verboseガベージコレクション(チェックボックス)を再起動しますサーバーLogsフォルダーの特定のプロファイルに、同様のLogin native_stderr.logファイルが表示されます。そのファイルを分析するには、ツールのようなTivoli®パフォーマンスビューアー、Dump JVM(DMPJVM)、およびWebSphereのリソースアナライザーが必要です。このリンクが役立つと思いますhttp://www.ibm.com/developerworks/websphere/library/techarticles/0706_sun/0706_sun.html
また、このリンクで完全なガイドを取得するパフォーマンスアナライザーを1つインストールしました。http://www.ibm.com/developerworks/websphere/library/techarticles/0811_gunasekaran/0811_gunasekaran.html#download
上記のリンクから入手してローカルシステムに入れてCMDを開いてそのパスに移動してこのコマンドを実行する1つの瓶をダウンロードする必要があります-Java -jar -jar hsa_jdk15.jar -f d: ibm websphere appserver profiles profile1 logs server1 native_stderr.log native_stderr.logファイルのパスのような構成に応じて変更を加え、-fの後にそれを与えます。私はそれが役立つと思います。