You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Ashwin Karpe (JIRA)" <ji...@apache.org> on 2010/01/14 20:04:46 UTC

[jira] Created: (CAMEL-2364) Add an ability to display Cache statistics via JMX in camel-cache

Add an ability to display Cache statistics via JMX in camel-cache 
------------------------------------------------------------------

                 Key: CAMEL-2364
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2364
             Project: Apache Camel
          Issue Type: New Feature
            Reporter: Ashwin Karpe
            Assignee: Ashwin Karpe




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2364) Add an ability to display Cache statistics via JMX in camel-cache

Posted by "John Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61390#action_61390 ] 

John Ellis commented on CAMEL-2364:
-----------------------------------

EhCache does have its own statistics. Here's a snippet on how to expose them via JMX in a Spring application context:
    <bean id="ehCacheManagementService" class="net.sf.ehcache.management.ManagementService" init-method="init" lazy-init="false">
        <constructor-arg>
            <bean class="net.sf.ehcache.CacheManager" factory-method="getInstance"/>
        </constructor-arg>
        <constructor-arg>
            <bean class="org.springframework.jmx.support.JmxUtils" factory-method="locateMBeanServer"/>
        </constructor-arg>
        <constructor-arg value="true"/>
        <constructor-arg value="true"/>
        <constructor-arg value="true"/>
        <constructor-arg value="true"/>
    </bean>

Of course you can do the same thing in straight Java:
  ManagementService.registerMBeans(CacheManager.getInstance(), mbeanServer, true, true, true, true);

You can get cache hits, misses, in-memory hits, disk hits, size stats this way. You can also change CacheConfiguration parameters on the fly.

> Add an ability to display Cache statistics via JMX in camel-cache 
> ------------------------------------------------------------------
>
>                 Key: CAMEL-2364
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2364
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: Ashwin Karpe
>            Priority: Minor
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2364) Add an ability to display Cache statistics via JMX in camel-cache

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57567#action_57567 ] 

Claus Ibsen commented on CAMEL-2364:
------------------------------------

See section _registering your own managed endponts_
http://camel.apache.org/camel-jmx.html

Or chapter 12 in the Camel book :)

for how its possible to expose JMX attributes/operations in a Camel endpoint.

I wonder though if ehCache has its own JMX stats, people can use instead?

> Add an ability to display Cache statistics via JMX in camel-cache 
> ------------------------------------------------------------------
>
>                 Key: CAMEL-2364
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2364
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: Ashwin Karpe
>            Priority: Minor
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2364) Add an ability to display Cache statistics via JMX in camel-cache

Posted by "Ashwin Karpe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57538#action_57538 ] 

Ashwin Karpe commented on CAMEL-2364:
-------------------------------------

Hi Hadrian,

I got this request from a nabble request where this need was expressed. Please see below

http://old.nabble.com/camel-cache%3A-Using-Objects-for-cache-ts27026756.html

I fixed the serializable object support issue in CAMEL-2343 and created a Jira entry to capture this request.

My understanding based on what I saw in this request was that statistics from within ehCache (objects stored, deleted, expired, added, updated etc) be made available by camel-cache in addition to the camel component, endpoint & producer/consumer based JMX stats that are typically gathered by Camel.

The challenge with this request is how to make it more generic and express endpoint specific stats that can be leveraged by different endpoints.Ideally, something that can be extended/imlemented by different types of endpoints and not just for camel-cache.

Hope this helps.

Cheers,

Ashwin...

 
 

> Add an ability to display Cache statistics via JMX in camel-cache 
> ------------------------------------------------------------------
>
>                 Key: CAMEL-2364
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2364
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: Ashwin Karpe
>            Priority: Minor
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2364) Add an ability to display Cache statistics via JMX in camel-cache

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57534#action_57534 ] 

Hadrian Zbarcea commented on CAMEL-2364:
----------------------------------------

Ashwin, could you please add some details, like what statistics and how a user would see it?

> Add an ability to display Cache statistics via JMX in camel-cache 
> ------------------------------------------------------------------
>
>                 Key: CAMEL-2364
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2364
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: Ashwin Karpe
>            Priority: Minor
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-2364) Add an ability to display Cache statistics via JMX in camel-cache

Posted by "Ashwin Karpe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashwin Karpe updated CAMEL-2364:
--------------------------------

    Priority: Minor  (was: Major)
    Assignee:     (was: Ashwin Karpe)

> Add an ability to display Cache statistics via JMX in camel-cache 
> ------------------------------------------------------------------
>
>                 Key: CAMEL-2364
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2364
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: Ashwin Karpe
>            Priority: Minor
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (CAMEL-2364) Add an ability to display Cache statistics via JMX in camel-cache

Posted by "Ashwin Karpe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57538#action_57538 ] 

Ashwin Karpe edited comment on CAMEL-2364 at 2/11/10 11:34 PM:
---------------------------------------------------------------

Hi Hadrian,

I got this request from a nabble request where this need was expressed. Please see below

http://old.nabble.com/camel-cache%3A-Using-Objects-for-cache-ts27026756.html

I fixed the serializable object support issue in CAMEL-2343 and created a Jira entry to capture this request.

My understanding based on what I saw in this request was that statistics from within ehCache (objects stored, deleted, expired, added, updated etc) be made available by camel-cache in addition to the camel component, endpoint & producer/consumer based JMX stats that are typically gathered by Camel.

The challenge with this request is how to make it more generic and express endpoint specific stats that can be leveraged by different endpoints.Ideally, something that can be extended/implemented by different types of endpoints and not just for camel-cache.

Hope this helps.

Cheers,

Ashwin...

 
 

      was (Author: akarpe):
    Hi Hadrian,

I got this request from a nabble request where this need was expressed. Please see below

http://old.nabble.com/camel-cache%3A-Using-Objects-for-cache-ts27026756.html

I fixed the serializable object support issue in CAMEL-2343 and created a Jira entry to capture this request.

My understanding based on what I saw in this request was that statistics from within ehCache (objects stored, deleted, expired, added, updated etc) be made available by camel-cache in addition to the camel component, endpoint & producer/consumer based JMX stats that are typically gathered by Camel.

The challenge with this request is how to make it more generic and express endpoint specific stats that can be leveraged by different endpoints.Ideally, something that can be extended/imlemented by different types of endpoints and not just for camel-cache.

Hope this helps.

Cheers,

Ashwin...

 
 
  
> Add an ability to display Cache statistics via JMX in camel-cache 
> ------------------------------------------------------------------
>
>                 Key: CAMEL-2364
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2364
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: Ashwin Karpe
>            Priority: Minor
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-2364) Add an ability to display Cache statistics via JMX in camel-cache

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-2364.
--------------------------------

         Assignee: Claus Ibsen
    Fix Version/s: 2.5.0
       Resolution: Won't Fix

Thanks John for showing how to do this with pure EHCache. I have updated the camel cache wiki page with your instructions.

> Add an ability to display Cache statistics via JMX in camel-cache 
> ------------------------------------------------------------------
>
>                 Key: CAMEL-2364
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2364
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: Ashwin Karpe
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.5.0
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (CAMEL-2364) Add an ability to display Cache statistics via JMX in camel-cache

Posted by "Ashwin Karpe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57538#action_57538 ] 

Ashwin Karpe edited comment on CAMEL-2364 at 2/11/10 11:35 PM:
---------------------------------------------------------------

Hi Hadrian,

I got this request from a nabble request where this one-liner need was expressed. Please see below

http://old.nabble.com/camel-cache%3A-Using-Objects-for-cache-ts27026756.html

I fixed the serializable object support issue in CAMEL-2343 and created a Jira entry to capture this request.

My understanding based on what I saw in this request was that statistics from within ehCache (objects stored, deleted, expired, added, updated etc) be made available by camel-cache in addition to the camel component, endpoint & producer/consumer based JMX stats that are typically gathered by Camel.

The challenge with this request is how to make it more generic and express endpoint specific stats that can be leveraged by different endpoints.Ideally, something that can be extended/implemented by different types of endpoints and not just for camel-cache.

Hope this helps.

Cheers,

Ashwin...

 
 

      was (Author: akarpe):
    Hi Hadrian,

I got this request from a nabble request where this need was expressed. Please see below

http://old.nabble.com/camel-cache%3A-Using-Objects-for-cache-ts27026756.html

I fixed the serializable object support issue in CAMEL-2343 and created a Jira entry to capture this request.

My understanding based on what I saw in this request was that statistics from within ehCache (objects stored, deleted, expired, added, updated etc) be made available by camel-cache in addition to the camel component, endpoint & producer/consumer based JMX stats that are typically gathered by Camel.

The challenge with this request is how to make it more generic and express endpoint specific stats that can be leveraged by different endpoints.Ideally, something that can be extended/implemented by different types of endpoints and not just for camel-cache.

Hope this helps.

Cheers,

Ashwin...

 
 
  
> Add an ability to display Cache statistics via JMX in camel-cache 
> ------------------------------------------------------------------
>
>                 Key: CAMEL-2364
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2364
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: Ashwin Karpe
>            Priority: Minor
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.