Performance Counters (KPIs)
Contents
- 1 Performance Counters (KPIs)
- 1.1 Related Topics
- 1.2 Co-browse and Metrics Library
- 1.3 About Co-browse Metrics
- 1.4 How To Expose Co-browse metrics through the JMX interface
- 1.5 Connect to Co-browse started as a local java process.
- 1.6 Connect to Co-browse started as a server.
- 1.7 Connect to Co-browse started as a Windows service.
- 1.8 Open the JMX panel to view the metrics.
Co-browse and Metrics Library
Genesys Co-browse integrates with the third-party Metrics Java library, a toolkit that support all kinds of metrics out of the box: for example, counter, timer, histogram, gauge, and so on.
This Metric library gives you several ways to report on current values: JMX (the main method), REST (for performance testing), and Logging.
About Co-browse Metrics
Starting with release 8.5.100.05, the Co-browse Server integrates with the Metrics Library client for the Java Management Extensions (JMX) reporter interface. JMX lets you observe Co-browse metrics using JMX tools.
Metrics functionality will be extended in future releases to support more reporting tools.
Overview of Available Co-browse Metrics
Co-browse Server generates these kinds of metrics:
- Current count of sessions in different states (counter metric)
- Count of completed sessions since the start of the server (counter metric)
- Session timings (timer/histogram)
- Slave overall rendering time (histogram)
- Slave stages rendering time (histogram)
- Co-browse session initialization on server side (timer)
- Time of Master, Slave and Controller joining to the Co-browse session (timer)
- Sessions interrupted without accept (counter metric).
Breakdown of Available Co-browse Metrics
| Metric name | Description |
|---|---|
| ActiveSessions | Sessions set to "Activated" status when session is created by Master and joined by Slave |
| CanceledInactiveSessions | Sessions canceled by initiator |
| InactiveSessions | Sessions set to "Inactive" status when session is created by Master but waiting for Slave to join |
| LiveSessions | All sessions in statuses "Inactive" or "Activated". |
| NormallyEndedActiveSessions | Sessions ended during period of two sides Co-browse activity |
| TerminatedByUserDisconnectionSessions | Sessions ended through User timeout disconnect |
| TimeoutedInactiveSessions | Sessions ended by timeout in awaiting for Slave connection |
| TotalFinishedSessions | Total count of all finished sessions |
| CreateSessionAverage | Histogram showing the timings for session creation on the server side |
| JoinSessionAverage | Histogram showing the timings for the server join procedure for each member in a Co-browse activity |
| SlaveInitAverage | Histogram showing the timings for Slave initialization after a page reload with session ID |
| SlaveGetSessionAverage | Histogram showing the timings for the Slave to obtain the session environment after a page reload with session ID |
| SlaveHandshakeAverage | Histogram showing the timings for the Slave handshake via CometD after a page reload with session ID |
| SlaveJoinAverage | Histogram showing the timings for the Slave to join a session after a page reload with session ID |
| SlavePageDataAverage | Histogram of timing for Slave got page data since page reload with session ID |
| SlaveRenderAverage | Histogram showing the timings for the Slave to fully render after a page reload with session ID |
How To Expose Co-browse metrics through the JMX interface
There are many JMX tools that you can use to observe the metrics Co-browse server creates:
- JConsole tool bundled with Oracle Java (TM)
- EJTools JMX Browser
- Panoptes
- jManage
- MC4J
- Zabbix
Connect to Co-browse started as a local java process.
- Run jconsole.exe from the <jdk>/bin directory.
In the New Connection dialog, specify Co-browse launcher java process.
If the Co-browse Server was started via .bat file in the same host where JMX console is opened – it is the com.genesys.launcher.bootstrap.Bootstrap process from the Local Process list.
Connect to Co-browse started as a server.
If the Co-browse Server was started remotely as a server, follow these steps:
- Run jconsole.exe from the <jdk>/bin directory.
- Open setenv.bat and uncomment all lines under
:: Uncomment for enabling JMX Remote. Memorize JMX port.
- Save changes.
- Restart the Co-browse Server application.
- Specify host:<JMX port> in the Remote Process section:
Connect to Co-browse started as a Windows service.
- Stop the service.
- Open setenv.bat and find the service name in the line set SVC_NAME=
- Run command:
cobrowse.bat -service SERVICENAME remove
- to remove the service.
- Open setenv.bat and uncomment all lines under
:: Uncomment for enabling JMX Remote. Memorize JMX port.
- Save changes.
- Run command:
cobrowse.bat -service SERVICENAME install
- to install the service.
- Start the service.
- Specify host:<JMX port> in the Remote Process section, see above.



