本文介绍了的Websphere。获取线程池ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用以下模式构建字符串:

I need to build string with the following pattern:

<Server>;<Node>;<Cell>;<Version>;<MessageListenerThreadPool-ID>;<ORBThreadPool-
ID>;<WebcontainerThreadPool-ID>;<TCPChannelsThreadPool-ID>

所以我需要写几个标准线程池的ID,但我找不到任何信息关于线程池Id。我发现只有线程池名称。可能有人知道我在哪里可以找到有关线程池ID的信息?

So I need to write the ID's of several standard thread pools, but I can't find any information about thread-pools Id's. I found only thread-pool names. May be somebody knows where I can find information about thread-pool Id's?

谢谢!

P.S。我正在使用Websphere 7.x

P.S. I'm using Websphere 7.x

推荐答案

我找到了回答我的问题。

I found answer to my question.

可以从 Threadpool 节点下的 JConsole 获取线程池ID。有许多线程池,并且列出的线程池Mbeans有一个 objectName 属性,如下所示:

Thread-pool ID can be obtained from JConsole, under Threadpool node. There many thread-pools, and thread-pools Mbeans listed in question have an objectName attribute, like this:

在这种情况下,线程池ID为 1183122130078

In this case Thread-pool ID is 1183122130078.

全部谢谢。

这篇关于的Websphere。获取线程池ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 20:50