You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by tonywestonuk <to...@totspics.com> on 2015/10/26 13:08:42 UTC

CXF JaxRS Metrics..

Hi,

Is it possible to enable performance metrics for REST / JaxRS,  so that I
can see things like min/avg/max call time,  number of invocations, etc 
using JConsole or VisualVM MBeans.

Looking around the internet I see this configuration key, which may have
something to do with it, but really not sure, or were to actually add this
config.

org.apache.cxf.management.counters.CounterRepository


Thanks.



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/CXF-JaxRS-Metrics-tp4676612.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: CXF JaxRS Metrics..

Posted by Romain Manni-Bucau <rm...@gmail.com>.
in a @Singleton @Startup  @PostConstruct method you can do:

new CounterRepository().setBus(
org.apache.openejb.server.cxf.transport.util.CxfUtil.getBus());


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-10-26 13:08 GMT+01:00 tonywestonuk <to...@totspics.com>:

> Hi,
>
> Is it possible to enable performance metrics for REST / JaxRS,  so that I
> can see things like min/avg/max call time,  number of invocations, etc
> using JConsole or VisualVM MBeans.
>
> Looking around the internet I see this configuration key, which may have
> something to do with it, but really not sure, or were to actually add this
> config.
>
> org.apache.cxf.management.counters.CounterRepository
>
>
> Thanks.
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/CXF-JaxRS-Metrics-tp4676612.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>