ActiveMQ创建大量主题时抛出OOME
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个有趣的线程,但它并没有导致 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