You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "christian ohr (JIRA)" <ji...@apache.org> on 2011/08/22 19:57:28 UTC
[jira] [Created] (CAMEL-4366) Expose Exchange Load statistics in
Route and Context MBeans
Expose Exchange Load statistics in Route and Context MBeans
-----------------------------------------------------------
Key: CAMEL-4366
URL: https://issues.apache.org/jira/browse/CAMEL-4366
Project: Camel
Issue Type: New Feature
Components: camel-core
Reporter: christian ohr
Priority: Minor
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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4366) Expose Exchange Load statistics in
Route and Context MBeans
Posted by "Christian Ohr (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13105623#comment-13105623 ]
Christian Ohr commented on CAMEL-4366:
--------------------------------------
Added first version of exposing exchange loads for context and route over JMX (+ some unit tests)
> Expose Exchange Load statistics in Route and Context MBeans
> -----------------------------------------------------------
>
> Key: CAMEL-4366
> URL: https://issues.apache.org/jira/browse/CAMEL-4366
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: christian ohr
> Priority: Minor
> Attachments: load-patch-1
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4366) Expose Exchange Load statistics in
Route and Context MBeans
Posted by "Christian Ohr (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Ohr updated CAMEL-4366:
---------------------------------
Attachment: load-patch-1
> Expose Exchange Load statistics in Route and Context MBeans
> -----------------------------------------------------------
>
> Key: CAMEL-4366
> URL: https://issues.apache.org/jira/browse/CAMEL-4366
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: christian ohr
> Priority: Minor
> Attachments: load-patch-1
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4366) Expose Exchange Load statistics in
Route and Context MBeans
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-4366:
-------------------------------
Attachment: Load.png
Screenshot with load from JMX on CamelContext
> Expose Exchange Load statistics in Route and Context MBeans
> -----------------------------------------------------------
>
> Key: CAMEL-4366
> URL: https://issues.apache.org/jira/browse/CAMEL-4366
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: christian ohr
> Assignee: Claus Ibsen
> Priority: Minor
> Attachments: Load.png, load-patch-1
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4366) Expose Exchange Load statistics in
Route and Context MBeans
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-4366:
-------------------------------
Component/s: jmx
Fix Version/s: 2.9.0
> Expose Exchange Load statistics in Route and Context MBeans
> -----------------------------------------------------------
>
> Key: CAMEL-4366
> URL: https://issues.apache.org/jira/browse/CAMEL-4366
> Project: Camel
> Issue Type: New Feature
> Components: camel-core, jmx
> Reporter: christian ohr
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.9.0
>
> Attachments: Load.png, load-patch-1
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4366) Expose Exchange Load statistics in
Route and Context MBeans
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108621#comment-13108621 ]
Claus Ibsen commented on CAMEL-4366:
------------------------------------
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.
> Expose Exchange Load statistics in Route and Context MBeans
> -----------------------------------------------------------
>
> Key: CAMEL-4366
> URL: https://issues.apache.org/jira/browse/CAMEL-4366
> Project: Camel
> Issue Type: New Feature
> Components: camel-core, jmx
> Reporter: christian ohr
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.9.0
>
> Attachments: Load.png, load-patch-1
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4366) Expose Exchange Load statistics in
Route and Context MBeans
Posted by "christian ohr (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108778#comment-13108778 ]
christian ohr commented on CAMEL-4366:
--------------------------------------
Cool. Thanks for working on this!
I didn't feel too well with the TimerTask singleton either, but I simply overlooked the ScheduledExecutorService.
> Expose Exchange Load statistics in Route and Context MBeans
> -----------------------------------------------------------
>
> Key: CAMEL-4366
> URL: https://issues.apache.org/jira/browse/CAMEL-4366
> Project: Camel
> Issue Type: New Feature
> Components: camel-core, jmx
> Reporter: christian ohr
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.9.0
>
> Attachments: Load.png, load-patch-1
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CAMEL-4366) Expose Exchange Load statistics in
Route and Context MBeans
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-4366.
--------------------------------
Resolution: Fixed
> Expose Exchange Load statistics in Route and Context MBeans
> -----------------------------------------------------------
>
> Key: CAMEL-4366
> URL: https://issues.apache.org/jira/browse/CAMEL-4366
> Project: Camel
> Issue Type: New Feature
> Components: camel-core, jmx
> Reporter: christian ohr
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.9.0
>
> Attachments: Load.png, load-patch-1
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CAMEL-4366) Expose Exchange Load statistics in
Route and Context MBeans
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-4366:
----------------------------------
Assignee: Claus Ibsen
> Expose Exchange Load statistics in Route and Context MBeans
> -----------------------------------------------------------
>
> Key: CAMEL-4366
> URL: https://issues.apache.org/jira/browse/CAMEL-4366
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: christian ohr
> Assignee: Claus Ibsen
> Priority: Minor
> Attachments: load-patch-1
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4366) Expose Exchange Load statistics in
Route and Context MBeans
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108716#comment-13108716 ]
Claus Ibsen commented on CAMEL-4366:
------------------------------------
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.
> Expose Exchange Load statistics in Route and Context MBeans
> -----------------------------------------------------------
>
> Key: CAMEL-4366
> URL: https://issues.apache.org/jira/browse/CAMEL-4366
> Project: Camel
> Issue Type: New Feature
> Components: camel-core, jmx
> Reporter: christian ohr
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.9.0
>
> Attachments: Load.png, load-patch-1
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4366) Expose Exchange Load statistics in
Route and Context MBeans
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108618#comment-13108618 ]
Claus Ibsen commented on CAMEL-4366:
------------------------------------
Christian do you have a link to that load algorithm being used? I would like to add a note where to read more about it from the source code.
> Expose Exchange Load statistics in Route and Context MBeans
> -----------------------------------------------------------
>
> Key: CAMEL-4366
> URL: https://issues.apache.org/jira/browse/CAMEL-4366
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: christian ohr
> Assignee: Claus Ibsen
> Priority: Minor
> Attachments: Load.png, load-patch-1
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira