ActiveMQ创建大量主题时抛出OOME

发布于 2024-07-10 04:18:36 字数 206 浏览 7 评论 0原文

我正在使用 ActiveMQ 5.2,我的应用程序需要大量主题,大约有 500,000 个主题。 当我运行我的应用程序时,仅创建大约 1000 个主题后,ActiveMQ 就会抛出 OutOfMemoryException。

期望 ActiveMQ 支持这么多主题是不合理的吗?

是否有适合此用途的最佳配置?

此线程详细介绍了该问题:

I'm using ActiveMQ 5.2 and my application requires a large number of topics, somewhere in the neighbourhood of 500,000. When I run my application, after creating only about 1000 topics, ActiveMQ throws an OutOfMemoryException.

Is it unreasonable to expect ActiveMQ to support this number of topics?

Is there an optimal configuration for this usage?

This thread details the issue: http://www.nabble.com/java.lang.OutOfMemoryError%3A-unable-to-create-new-native-thread-on-AMQ-5.0-td17005441.html

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烦人精 2024-07-17 04:18:36

这是一个有趣的线程,但它并没有导致 jira 问题,所以我想知道不使用专用任务运行程序是否是这里的解决方案。
使用线程池而不是专用任务运行程序应该将目标的创建与线程的创建分离。
如果不是这种情况,请打开一个 jira 问题并分配给我。

有一些更一般的信息@ http://activemq.apache.org/javalangoutofmemory.html

that is an interesting thread but it did not result in a jira issue so I wonder if not using the dedicated task runner is the solution here.
Using a thread pool instead of a dedicated task runner should decouple the creation of destinations from the creation of threads.
If this is not the case, then please open a jira issue and assign it to me.

There is some more general info @ http://activemq.apache.org/javalangoutofmemory.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文