Revision as of 19:17, October 27, 2015 by JLara (talk | contribs) (Created page with "= Performance Counters (KPIs)= {{EE_Head |context= This article describes the basics of how Co-browse works together with the third-party Metrics Library to provide reporting ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Performance Counters (KPIs)

This article describes the basics of how Co-browse works together with the third-party Metrics Library to provide reporting metrics about your server's Co-browse sessions. It also gives a walkthrough of how to set up a sample JMX interface in order to view the metrics the Co-browse server creates.

Related Topics

Metrics Java library 

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.

1
  1. Run jconsole.exe from the <jdk>/bin directory.
  2. 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.

1

If the Co-browse Server was started remotely as a server, follow these steps:

  1. Run jconsole.exe from the <jdk>/bin directory.
  2. Open setenv.bat and uncomment all lines under
    :: Uncomment for enabling JMX Remote. Memorize JMX port.
    Save changes.
  3. Restart the Co-browse Server application.
  4. Specify host:<JMX port> in the Remote Process section:


Connect to Co-browse started as a Windows service.

If Co-browse Server is started as a Windows service, you should first stop the service, reinstall it, and start again, as follows:
  1. Stop the service.
  2. Open setenv.bat and find the service name in the line set SVC_NAME=
  3. Run command:
    cobrowse.bat -service SERVICENAME remove
    to remove the service.
  4. Open setenv.bat and uncomment all lines under
     :: Uncomment for enabling JMX Remote. Memorize JMX port.
    Save changes.
  5. Run command:
    cobrowse.bat -service SERVICENAME install
    to install the service.
  6. Start the service.
  7. Specify host:<JMX port> in the Remote Process section, see above.

Open the JMX panel to view the metrics.

1
  1. Click Connect in the New Connection dialog. The JMX panel opens.
  2. Open the MBeans tab and expand the Cobrowse branch. All Co-browse metrics are there.
  3. To refresh the metrics, click Refresh.
Comments or questions about this documentation? Contact us for support!