了解 websphere 应用程序服务器中的 native_stderr 文件

发布于 2024-12-03 07:37:10 字数 1694 浏览 2 评论 0原文

全部, 我在 Websphere App Server 7.0.0.15 上运行应用程序时收到了 native_stderr.log 文件。 早些时候它曾经是简单的日志文件格式,但最近我观察到该文件是XML格式的。

IBM 是否提供了任何工具来解释该文件?

日志文件包含如下部分:

<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>

谢谢

All,
I am getting the native_stderr.log file while running my application on Websphere App Server 7.0.0.15.
earlier it used to be simple log file format, but recently I have observed that the file is in XML format.

Is there any IBM provided tool to interpret this file?

The logfile contains sections like this:

<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>

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

错々过的事 2024-12-10 07:37:10

该输出是 JVM verbosegc 跟踪。文件格式没有改变,仍然是扁平的,但有人启用了 verbosegc 日志,因此您将获得 xmlish 的附加信息输出。

他们的工具可以解析它并生成漂亮的图表。 IBM Support Assistant 包含一个名为 Garbage Collection and Memory Visualizer 的工具。该工具的视频包括如何安装说明 IBM Education Assistant

That output is the JVM verbosegc trace. The file format hasn't changed, it is still flat, but someone has enabled the verbosegc log, so you are getting additional information output which is xmlish.

Their are tools which can parse this an produce pretty graphs. IBM Support Assistant contains a tool called the Garbage Collection and Memory Visualizer. There is a video of this tool including how to install instructions on IBM Education Assistant.

客…行舟 2024-12-10 07:37:10

如果您在 websphere 应用程序服务器中启用详细垃圾收集,那么您将获得此类信息。如果你想检查,请转到该路径
服务器->应用服务器->服务器1(点击要查看日志的服务器)->服务器
进程定义->Java虚拟机->详细垃圾收集(复选框)
重新启动服务器,您将在日志文件夹中该特定配置文件的 native_stderr.log 文件中看到类似的日志。
要分析该文件,您需要使用 Tivoli® Performance Viewer、Dump JVM (DMPJVM) 和 WebSphere 资源分析器等工具。我认为这个链接会有帮助
http://www.ibm.com/developerworks/websphere/library /techarticles/0706_sun/0706_sun.html

我还安装了一个性能分析器,您将通过此链接获得完整的指南-
http://www.ibm.com/developerworks/websphere /library/techarticles/0811_gunasekaran/0811_gunasekaran.html#download

您必须下载一个您将从上面的链接获得的 jar 并将其放入本地系统中,然后打开 CMD 并转到该路径并运行此命令-
java -jar hsa_jdk15.jar -f D:\IBM\WebSphere\AppServer\profiles\profile1\logs\server1\native_stderr.log
根据您的配置进行更改
就像你的native_stderr.log文件的路径一样,并在-f之后给出它。
我认为这会有帮助。

If you enable verbose garbage collection in websphere application server then you will get this kind of information. If you want to check that go to that path
Server->Application Server->Server1(Click on a server where you want to see log)->
Process Definition->Java Virtual Machine-> Verbose Garbage Collection( a checkbox)
Restart the server you will see the similar log in native_stderr.log file on that particular profile in logs folder.
To analyze that file you need to have tool like-Tivoli® Performance Viewer, Dump JVM (DMPJVM), and WebSphere's Resource Analyzer. I think this link will help
http://www.ibm.com/developerworks/websphere/library/techarticles/0706_sun/0706_sun.html

Also I have installed one performence analyzer you will get complete guide with this link-
http://www.ibm.com/developerworks/websphere/library/techarticles/0811_gunasekaran/0811_gunasekaran.html#download

You have to download one jar that you will get from above link and put it in your local system and open CMD and go to that path and run this command-
java -jar hsa_jdk15.jar -f D:\IBM\WebSphere\AppServer\profiles\profile1\logs\server1\native_stderr.log
make change according to your configuration
like path of your native_stderr.log file and give it after -f.
I think it will help.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文