如何启用 Websphere MQ 的客户端日志记录?
我已经运行 JProfiler 一天左右了,并且不断看到为 WMQ 中某个主题的 JMS 侦听器创建新线程。它似乎经历了半个小时内每隔几分钟就退出的阶段,然后几个小时都可以正常工作。我正在努力寻找原因,托管 WMQ 的服务器上的日志中似乎没有任何内容,因此我的下一步是在 java 中打开日志记录客户端,但不知道如何执行此操作。我希望它就像在 log4j 文件设置 log4j.logger.com.ibm=TRACE
中添加一行一样简单,但这不起作用。有谁知道我如何实现这一目标?
I've been running JProfiler for a day or so and keep seeing new threads being created for the JMS Listener to a topic in WMQ. It seems to go through phases of dropping out every few minutes for half hour and then works fine for hours. I'm struggling to track down the reason why, there seems to be nothing in the logs on the server hosting WMQ so my next step it to turn on the logging client side in java but can't figure out how to do this. I was hoping it would be as straightforward as adding a line in the log4j file setting log4j.logger.com.ibm=TRACE
but that didn't work. Does anyone have any ideas of how I can achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
信息中心有一些关于可以启用的所有类及其包含/排除选项的文档。
例如,您要在客户端设置的类是
com.ibm.msg.client.commonservices.trace.level
并且它采用整数值。 QMgr 本身没有 JMS 跟踪,但使用strmqtrc
命令可以进行广泛的 QMgr 跟踪。V7 客户端具有更多跟踪功能,建议使用它而不是 V6 客户端。允许将 V7 客户端与 V6 QMgr 一起使用。当然,在这种情况下,API 功能仅限于 V6 QMgr 提供的功能。但是,V7 客户端功能(例如跟踪)不受 QMgr 版本的限制。
V7 信息中心 JMS 跟踪< /a>
V6 信息中心 JMS 跟踪< /a>
V7 WMQ 客户端
The Infocenter has some documentation as to all the classes that can be enabled and their include/exclude options.
For example, the class you want to set on the client side is
com.ibm.msg.client.commonservices.trace.level
and it takes integer values. There is no JMS tracing on the QMgr itself but there is extensive QMgr trace available using thestrmqtrc
command.The V7 client has a lot more trace functionality and it is recommended to use it instead of the V6 client. It is permissible to use the V7 client with the V6 QMgr. Of course in that case the API functionality is limited to what the V6 QMgr provides. However, the V7 client-side functionality (such as trace) is not limited by the QMgr version.
V7 Infocenter JMS Trace
V6 Infocenter JMS Trace
V7 WMQ Client