如何使用 WebSphere 关闭或隐藏标准错误控制台?
我正在使用 IBM RSA 8.0.3 和 WebSphere 7.0.0.17 服务器。每次我启动服务器时,控制台都会在标准输出和标准错误控制台视图之间疯狂切换。这非常烦人,因为(对我来说)标准错误控制台视图中没有合理的输出。它包含这样的数据:
<af type="tenured" id="26" timestamp="Jun 28 12:57:04 2011" intervalms="34.757">
<minimum requested_bytes="102832" />
<time exclusiveaccessms="0.024" meanexclusiveaccessms="0.014" threads="1" lastthreadtid="0x27D2CF00" />
<refs soft="6425" weak="12383" phantom="60" dynamicSoftReferenceThreshold="7" maxSoftReferenceThreshold="32" />
<tenured freebytes="120485136" totalbytes="536870912" percent="22" >
<soa freebytes="120485136" totalbytes="536870912" percent="22" />
<loa freebytes="0" totalbytes="0" percent="0" />
</tenured>
<gc type="global" id="30" totalid="30" intervalms="35.420">
<compaction movecount="5551050" movebytes="336675368" reason="heap fragmented" />
<timesms mark="362.622" sweep="17.413" compact="697.519" total="1077.646" />
<tenured freebytes="196453560" totalbytes="536870912" percent="36" >
<soa freebytes="191085240" totalbytes="531502592" percent="35" />
<loa freebytes="5368320" totalbytes="5368320" percent="100" />
</tenured>
</gc>
<tenured freebytes="196350728" totalbytes="536870912" percent="36" >
<soa freebytes="190982408" totalbytes="531502592" percent="35" />
<loa freebytes="5368320" totalbytes="5368320" percent="100" />
</tenured>
<refs soft="6425" weak="12383" phantom="60" dynamicSoftReferenceThreshold="11" maxSoftReferenceThreshold="32" />
<time totalms="1077.769" />
</af>
有没有办法禁用或隐藏这些输出?我只是不想看到它。 似乎这个“特性”是随 WebSphere 7.0 一起提供的,因为我在 6.1 中没有看到类似的东西。
I'm using IBM RSA 8.0.3 with WebSphere 7.0.0.17 server. Every time I start the server the console switches like crazy between standard out and standard error console views. This is very annoying because (for me) there is no reasonable output in the standard error console view. It contains data like this:
<af type="tenured" id="26" timestamp="Jun 28 12:57:04 2011" intervalms="34.757">
<minimum requested_bytes="102832" />
<time exclusiveaccessms="0.024" meanexclusiveaccessms="0.014" threads="1" lastthreadtid="0x27D2CF00" />
<refs soft="6425" weak="12383" phantom="60" dynamicSoftReferenceThreshold="7" maxSoftReferenceThreshold="32" />
<tenured freebytes="120485136" totalbytes="536870912" percent="22" >
<soa freebytes="120485136" totalbytes="536870912" percent="22" />
<loa freebytes="0" totalbytes="0" percent="0" />
</tenured>
<gc type="global" id="30" totalid="30" intervalms="35.420">
<compaction movecount="5551050" movebytes="336675368" reason="heap fragmented" />
<timesms mark="362.622" sweep="17.413" compact="697.519" total="1077.646" />
<tenured freebytes="196453560" totalbytes="536870912" percent="36" >
<soa freebytes="191085240" totalbytes="531502592" percent="35" />
<loa freebytes="5368320" totalbytes="5368320" percent="100" />
</tenured>
</gc>
<tenured freebytes="196350728" totalbytes="536870912" percent="36" >
<soa freebytes="190982408" totalbytes="531502592" percent="35" />
<loa freebytes="5368320" totalbytes="5368320" percent="100" />
</tenured>
<refs soft="6425" weak="12383" phantom="60" dynamicSoftReferenceThreshold="11" maxSoftReferenceThreshold="32" />
<time totalms="1077.769" />
</af>
Is there a way to disable or hide these outputs? I just don't want to see it.
It seems that this "feature" came with WebSphere 7.0 because I did not see something like that using 6.1.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试关闭详细垃圾收集。
http://www-01.ibm.com/support/docview.wss ?uid=swg21114927
Try turning off verbose gc.
http://www-01.ibm.com/support/docview.wss?uid=swg21114927
如果您的问题确实与控制台视图获得焦点有关。看一下RSA控制台视图的顶部,有2个按钮:“标准输出更改时显示控制台”和“标准错误更改时显示控制台”,只需取消选择它们即可。否则,也可以从 WAS 管理控制台的“故障排除 -> 日志和跟踪”下调整日志记录。
If your issue is really about the console view getting focus. Have a look a the top of the console view in RSA, there are 2 buttons: "Show console when Standard out changes" and "Show console when Standard Error changes", just unselect them. Otherwise, logging can also be adjusted from WAS's admin console under "Troubleshooting->Logs and Trace".