我想监视jboss中的HTTP侦听器线程为7.我该怎么做? 有没有任何MBeans,女巫允许这样做?Jboss as7监测HTTP侦听器线程
网络子系统只包含一般信息,但我想监控:
-
http-thread-current
http-thread-busy
http-thread-spare-max
http-thread-spare-min
我想监视jboss中的HTTP侦听器线程为7.我该怎么做? 有没有任何MBeans,女巫允许这样做?Jboss as7监测HTTP侦听器线程
网络子系统只包含一般信息,但我想监控:
http-thread-current
http-thread-busy
http-thread-spare-max
http-thread-spare-min
是的,您可以使用Mbean进行线程池监控:
此外,检查出的JBOSS控制台,我觉得应该有与线程池选项卡 - 上市规模,业务等
作为最后的手段,收集线索转储并亲自看看。
我需要获取有关HttpThreads,不仅jvm线程的信息。 我修改了standalone.xml的线程子系统并通过Jboss DMR我得到了http线程度量。
ModelNode request = new ModelNode();
request.get(ClientConstants.OP).set("read-resource");
request.get(ClientConstants.OP_ADDR).add("subsystem", "threads");
request.get("recursive").set(true);
request.get("include-runtime").set(true);
final ModelNode response = client.execute(new OperationBuilder(request).build());
return response.get(ClientConstants.RESULT).get("bounded-queue-thread-pool").get("http_queue");
Standalone.xml线程子系统的样子:
<subsystem xmlns="urn:jboss:domain:threads:1.1">
<thread-factory name="my_tf" group-name="group1" thread-name-pattern="my_tf_" priority="1"/>
<bounded-queue-thread-pool name="http_queue" allow-core-timeout="true">
<core-threads count="100"/>
<queue-length count="50"/>
<max-threads count="200"/>
<keepalive-time time="30" unit="minutes"/>
<thread-factory name="my_tf"/>
</bounded-queue-thread-pool>
</subsystem>
感谢提的是强麦。我想我会更新文章以包含7配置。 –
谢谢,它是有用的! – VoV4a