Details

Description

Add load statistics exposing a exponentially moving weighted average for the number of inflight exchanges in routes and the whole CamelContext. Initially the window is fixed to 1m, 5m and 15m, just like Linux load figures.

I will add a option on Camel JMX so you can enable|disable this. As it uses a background thread to update the load. And maybe some ppl do not need this details.

I am also not using a static instance as that dont work well in hot deploy server environments. So instead each CamelContext has its own background task. And the thread pool / thread task is handled by the Camel ExecutorService API for that. So that is aligned like the rest of the code.

Claus Ibsen
added a comment - 20/Sep/11 13:06 I attached a screenshot with the patch being incorporated.
I will add a option on Camel JMX so you can enable|disable this. As it uses a background thread to update the load. And maybe some ppl do not need this details.
I am also not using a static instance as that dont work well in hot deploy server environments. So instead each CamelContext has its own background task. And the thread pool / thread task is handled by the Camel ExecutorService API for that. So that is aligned like the rest of the code.

Claus Ibsen
added a comment - 20/Sep/11 14:51 Okay I have applied the patch into trunk.
The load statistics is part of the performance stats, so you can disable it all together, by setting that option to Off.
See the Camel JMX wiki page for details.