Asankha,
I did some tests to obtain the statistics that are registered in
Synapse using JMX. The following are the Mbeans registered:
- org.apache.synapse:Type=Transport,ConnectorName=nio-http
- org.apache.synapse:Type=Transport,ConnectorName=nio-https in
the version 1.1.1.
The attributes availables in nio-http are:
1. MessagesReceived
2. FaultsReceiving
3. BytesReceived
4. MessagesSent
5. FaultsSending
6 .BytesSent
With this information i'm able to obtain the aviability metric but
response time is not consider (and not deducible). Now i did some
testing to check how the values are update, and when simulate a falling
service (the final service down), the synapse log show a fault but the
statistics are not updated (i expect that the faultreceiving variable
increase your value but continue in -1).
The only attributes updated are MessagesReceived and BytesReceived, on
my test i generate a proxy service with a custom mediator (the mediator
is called perfectly). This beahavior is correct? Exists any way to
obtain with this aproach the metric response time?
Any help is welcome, Thanks again!
Regards.
Asankha C. Perera wrote:
Daniel
This is great news! I will check this rigth now, this feature is
deployed in the 1.1.1 version? I begin the search to locate the
MBeans that brings the service.
Synapse 1.1.1 does not show the JMX URL to connect to at start up..
Indika, we should show this as an INFO level message for 1.2 release
But if you add the standard JMX properties to the command that starts
up the Java VM (e.g. adding "-Dcom.sun.management.jmxremote" into
synapse.sh) by editing the synapse.sh or the wrapper.conf (if using
the daemon script) this will work
asankha
--
A/C Daniel Pereda
Mobility Solutions - http://www.mobilitysol.com
Fco. Araucho 1362, oficina 105, Montevideo, URUGUAY
Móvil (+598) 96 199 105
Teléfono (+598 2) 707 37 95, int 101
Fax (+598 2) 707 37 95, int 123