OSGi application statistics are available through the performance monitoring infrastructure (PMI), which provides server-side monitoring and a client-side API to retrieve performance information. For OSGi applications, PMI counters are available for services and for bundle methods.
Name | Key | ID | Description | Granularity | Type | Level | Overhead |
---|---|---|---|---|---|---|---|
Service invocations | osgiAppModule. |
100 | The number of invocations of this service | per bundle | CountStatistic | basic | low |
Service response time | osgiAppModule. |
101 | The average response time of this service | per bundle | TimeStatistic | basic | medium |
Service method invocations | osgiAppModule. |
102 | The number of invocations of this service method | per method | CountStatistic | extended | medium |
Service method response time | osgiAppModule. |
103 | The average response time of this service method | per method | TimeStatistic | extended | high |
Name | Key | ID | Description | Granularity | Type | Level | Overhead |
---|---|---|---|---|---|---|---|
Bundle method invocations | osgiAppModule. |
200 | The number of invocations of this bundle method | per method | CountStatistic | all | high |
Bundle method response time | osgiAppModule. |
201 | The average response time of this bundle method | per method | TimeStatistic | all | maximum |
In addition, web application activity in OSGi applications is reflected in the PMI web application counters.