Wildfly 10 Final无限期创建ActiveMQ-client-global-threads [英] Wildfly 10 Final indefinitely creating ActiveMQ-client-global-threads

查看:201
本文介绍了Wildfly 10 Final无限期创建ActiveMQ-client-global-threads的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用于JMS的Wildfly AS设置,我用Jconsole对其进行监视,并且注意到在我甚至在ConsumerProducer上创建会话之前,线程数一直在稳定增长,我以前使用的是Wildfly 9 final出于相同的目的,即使在使用过程中,它的线程使用情况也是稳定的,但是它存在内存泄漏,这促使我进行升级.

I have a Wildfly AS setup for JMS, I;m monitoring it with Jconsole and have noticed that before I even create a session on my Consumer or Producer the thread count is steadily increasing, I was previously using Wildfly 9 final for the same purpose, it's thread usage was steady even during use, but it had a memory leak which prompted me to upgrade.

Jconsole中,我可以看到:

Thread-2(ActiveMQ-client-global-threads-3258368)
Thread-4(ActiveMQ-client-global-threads-3258368)
Thread-5(ActiveMQ-client-global-threads-3258368)
Thread-6(ActiveMQ-client-global-threads-3258368)
.
.
.
Thread-16(ActiveMQ-client-global-threads-3258368)

如何解决此问题?是否可以更改导致这些线程生成的设置?是否可以从Jconsole中获取更多信息来帮助解决此问题?

How do I solve this problem? is there a setting I can change that is causing these threads to spawn, is there any more information I can take from Jconsole to help me resolve this?

推荐答案

更新: 我尝试使用此配置,但它对我不起作用. 原因是ActiveMq Artemis使用固定线程池执行程序,并将其配置为500个线程.在Artemis中更改somoe之后,将在Wildfly中解决该问题. 您可以在Jira中查看状态(在最近的评论中查看):

Update: I tried with this configuration and it doesn't work for me. The reason is that ActiveMq Artemis uses a fixed thread pool executor and it is configured to 500 threads. It will be solved in Wildfly after somoe changes in Artemis. You can check the status in Jira (look in the last comments):

https://issues.jboss.org/browse/JBEAP-2947

论坛:

https://developer.jboss.org/thread/268397

解决方法:

sh standalone.sh -c standalone-full.xml -Dactivemq.artemis.client.global.thread.pool.max.size=30


原始答案:


Original Answer:

您是否尝试过设置远程连接属性?

Have you tried setting remote connection properties?

 <connection-factory name="RemoteConnectionFactory"
 entries="java:jboss/exported/jms/RemoteConnectionFactory"
 connectors="http-connector" use-global-pools="false"
 thread-pool-max-size="10"/>

这篇关于Wildfly 10 Final无限期创建ActiveMQ-client-global-threads的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆