多个上下文未显示

多个上下文未显示

本文介绍了HawtIO + Camel 插件 - 多个上下文未显示 - 限制为 max3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的应用程序是包含多个 Web 应用程序的企业应用程序.每个 Web 应用程序都包含一个或多个骆驼上下文.最近我们正在探索使用 HawtIO 进行监控和管理的选项.我们正在使用骆驼(保险丝)版本 -2.12.0.redhat-610379Wildfly 8.1(Dev env -prod 为 WAS8.5).我尝试过从 1.4.10 到 14 的 HawtIO Web 应用程序版本以及 no-slf4j 版本.但是 HawtIO 仅显示最多 3 个骆驼上下文.我也尝试过提供 managementNamePattern 但仍然没有积极的结果.如果我注释掉一些列出的骆驼上下文,那么其他的就会被列出.请注意,每个骆驼上下文将包含大约 10 到 15 条路由,端点(spring beans)大约为 30 .但是我可以在 org.apache.camel 下的 JMX 仪表板中找到未列出的骆驼上下文.请让我知道任何解决方法,或者如果我在配置中遗漏了什么.我的骆驼上下文会引用多个路由上下文.

Our application is enterprise application which contains multiple web application. Each web application contains one or more camel context. Recently we are exploring the option of using HawtIO for monitoring and administrative purposes.We are using camel (fuse) version -2.12.0.redhat-610379 with Wildfly 8.1(Dev env -prod being WAS8.5). I have tried with HawtIO web app version ranging from 1.4.10 to 14 and with no-slf4j version as well. But HawtIO is showing maximum 3 camelcontext only. I have tried giving managementNamePattern as well but still no postive results.If I comment out some of listed camel contexts then other one are getting listed. Please note that each camel context would contain around 10 to 15 routes and endpoint (spring beans) will be around 30 .But I am able to find unlisted camel context in JMX Dashboard under org.apache.camel. Kindly let me know any work around for it or if I am missing something in configuration. My camel context would refer multiple route context.

推荐答案

不确定你是否还需要知道这一点,但你可能需要做的是在 HawtIO 首选项中,在 Jolokia 下,增加Max Collection Size",因为 HawtIO 只是抓取所有内容,然后似乎在客户端进行过滤,所以如果您有很多 MBean,您将看不到所有内容(因为它默认只获取前 500 个条目).

Not sure if you still need to know this, but what you may need to do is in the HawtIO preferences, under Jolokia, increase the "Max Collection Size", as HawtIO just grabs everything and then appears to filter on the client side, so if you have a lot of MBeans, you won't see everything (as it only fetches the first 500 entries by default).

我遇到了类似的问题 - 但是当我看到所有骆驼上下文时,我没有看到所有路线,这对我来说是个大问题.

I had a similar issue - but while I was seeing all the camel contexts, I was not seeing all the routes, which was the big issue for me.

它默认为 500.我将其增加到 5000,这对我来说已经足够了.您不妨尝试自己摆弄一下,看看它是否有所作为.

It defaults to 500. I increased it to 5000, which was enough for me. You may wish to try fiddling with that yourself, and see if it makes a difference.

这篇关于HawtIO + Camel 插件 - 多个上下文未显示 - 限制为 max3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-27 14:18