You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Jörg Hoh (JIRA)" <ji...@apache.org> on 2010/07/26 10:20:52 UTC

[jira] Commented: (SLING-1476) provide number of processed requests

    [ https://issues.apache.org/jira/browse/SLING-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892210#action_12892210 ] 

Jörg Hoh commented on SLING-1476:
---------------------------------

I wanted to have this information ready for monitoring/observation purposes, so I decided to use JMX as a basis for this approach. At the moment I am only thinking of read-only values in JMX.

I implemented a small bundle with 2 services:
 * MBeanAdmin: A utility service, which handles the (un-) registration of MBeans to the JVM-internal MBean-Implementation
 * RequestCounter: A minimalistic service, which counts the number of total requests; this is a sample showing how to implement a MBean within sling and OSGI.

I think, that the way to implement such an MBean is rather straight-forward and easy. So maybe it's worth, that you review that code and include it into sling.


> provide number of processed requests
> ------------------------------------
>
>                 Key: SLING-1476
>                 URL: https://issues.apache.org/jira/browse/SLING-1476
>             Project: Sling
>          Issue Type: New Feature
>          Components: Engine
>    Affects Versions: Engine 2.0.6
>            Reporter: Jörg Hoh
>            Priority: Minor
>
> For status monitoring it would be useful to have the number of total processed requests since restart of the JVM. Is it possible to have a "statistics" component which could provide such numbers?
> (The "manual" way to do it would be writing a very simple RequestFilter which just increments a counter and expose this object as OSGI component.)

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