New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates to Camel route information causes a large number of requests which clobber the UI #1903
Comments
What version of ActiveMQ, Camel and hawtio do you use? There is a bug in latest AMQ release that causes it to update mbeans, and thus causes hawtio to redraw the tree. There is new releases on the way that will fix this. |
Also can you expand one of those requests and show either the request headers or request body? Would helps us track down where in the code those requests are coming from. And yeah, hawtio version would be good too, there's a bit of caching for most views that would cut down on ajax requests but not everywhere... |
After I sent this I realized I didn't give you much detail to go on. I'm Could definitely be AMQ. I can send more detail if needed. It happens in Ryan
|
Oh and camel 2.14.1....
|
Yes its a bug in ActiveMQ 5.11.0. A 5.11.1 is on the way, you can try it before its public GA |
Awesome, thanks Claus! Ryan
|
Hi Claus, Unfortunately I still hit the same problem with ActiveMQ 5.12-SNAPSHOT on Ryan On Tue, Feb 17, 2015 at 11:05 AM, Ryan Moquin fragility2.0@gmail.com
|
It seems like ActiveMQ 5.11.1 is better than 5.11 sometimes, such as when updates occur, sometimes the midde panel of camel details won't blank out and only the Camel tree view blanks out. Here is a screenshot after a camel count updated. I will see the count increment and then immediately the screenshot is usually the result. Also, an inflight count change doesn't cause this problem, only when something completes a route, or if a route is reloaded. If the route is reloaded, it blanks out never comes back unless you swap tabs or refresh the page. This won't be near as helpful as if I was using the uncompressed script, which I think I can use if I install the dev feature in Karaf? These stacks (even though they paste messy) look like they could still be useful. These are a couple of the pieces of code that all triggered as soon as a message exchange completed going through a route. There are 3 distinct traces and 22 total calls when the camel route completes. It appears the DynatreeNode.activate is the culprit. This is the first of the 22 and is called once and looks to be the normal refresh every 5 seconds: send @ app.js?f9f85ff34e487c35:4 This is triggered second and only once. send @ app.js?f9f85ff34e487c35:4 This is triggered 3rd but the call is repeated 20 times. send @ app.js?f9f85ff34e487c35:4 |
I'm having this problem too. Is there any update? I'll check out tomorrow with some AMQ-free routes and confirm it's AMQ causing the problem for me too. |
Yep got this today with 5.12.1 on Karaf 4.0.3 with Camel 2.16 and 2.17-SNAPSHOT. |
We had this issue before in AMQ where it will add/remove mbeans all the time. |
Ah you likely need to use a pooled connection factory with AMQ so the connection is re-used which causes the mbeans to not be created all the time |
Here is how I configured a connection pool that works
|
Yay we now filter out those events that would cause this update. The next release should be good. |
I'm opening a new one for this, even though I see things that could be potentially related. I've been seeing a problem with multiple versions of hawt.io where anytime a count changes on a Camel route, the dynatree containing the route list immediately becomes empty and so does the rest of the Camel information. I decided to finally see if I could get any information on why the dynatree becomes blank after something like a count changes. I noticed two things. If I tell Chrome to show paint rectangles, when I exercise a camel route (causing the data in hawt.io to change in the display), I'll see the Camel Contexts dynatree gets hammered by DOM updates (it must be) caused by a large amount of ajax requests from hawt.io in response to the Camel metric change. If I look in the network timeline, you can see the updates going every 5 seconds and when the Camel data changes, you see a lot of requests going out at the same time.
Attached is a screenshot, notice it shows the page was last refresh about 20 seconds previously but shows that in that 20 second period, 72 total ajax requests were made. Notice that there are a large number of jolokia requests occurring at the same time. I think all the updates from the requests clobber the Camel Contexts dynatree. It make hawtio virtually unusable.
The text was updated successfully, but these errors were encountered: