Home > VDI in a Box, VMware, VMware View, XenApp, XenDesktop > HDXWatcher and PCOIPWatcher – Realtime, easy virtual desktop traffic reporting.

HDXWatcher and PCOIPWatcher – Realtime, easy virtual desktop traffic reporting.

logoWhen checking the bandwidth requirement of multimedia sites, checking how much additional bandwidth video conferencing is going to require or even troubleshooting WAN capacity issues, it’s extremely useful to have a visible interpretation of realtime bandwidth consumption from your virtual desktop.

I wrote a tool quite some time ago called watcher2 while troubleshooting a similar issue. I finally took the time to refactor that tool for use with XenApp 6.5 , XenDesktop and VMware View and they are finally available to download! Both watcher utilities also include a latency counter which was a request that came in over and over.

HDX and PCOIP watcher by default dock to the top of the screen and can be moved left or right as below:

hdx watcher docked

pcoip watcher docked

They can now also be completely un docked:

hdx watcher

pcoip watcher undocked

How do they work?

The tool finds your username in the performance monitor counters for session bandwidth, once it finds this entry it reads your performance monitor data once every second and reports on it.

In the case of PCOIP watcher, it reads the PCOIP counters from performance monitor.

what do the values mean?

All values are in either Kilobits per second or Megabits per second.

In = Traffic from the client to the virtual, this may spike during large copy / paste jobs,web cams or copying data from a usb key to the session:
Out = Traffic from the virtual desktop to the client, mainly audio or video traffic causes this to spike.
Latency = The delay between your client and the virtual desktop.

Can I Configure it?

Two thresholds are available, a yellow warning and a red warning, currently . These default values can be written to  HKCU\software\sessionmonitor or HKLM\software\sessionmonitor. E.G:

Do they have any dependencies?

.net framework 3.5

if you are running XenApp 6.5 or XenDesktop 5.6, ensure you have the latest hot-fixes installed or the counters may be incorrect.

How do I launch it?

Allow the user to run it manually, or place the executable in their start-up folder or login script.

Where Can I download it?


What’s coming next:

  • Native Microsoft RDP Counters.
  • Realtime graphs and recording.
  • source code is available on request.
  1. Thomas
    February 28, 2014 at 2:37 pm

    Does it already work with VDA 7.1?

  2. GeertC
    March 1, 2014 at 3:45 pm

    Hi, I’m having some problem with HDXWatcher.
    When I start it in XenApp 6.5 desktop session I get these 2 popups

    Exception in getusercounter: Category does not exist.
    A HDX session was not detected, HDXWatcher will now close.

    Do I need to configure something to enable HDX?

    • March 1, 2014 at 3:48 pm

      It should work, I’ll look into it.

      • Marc Trotter
        March 18, 2014 at 6:40 pm

        I’m seeing the same error, tried running it from two different machines. Thought I’d volunteer that .Net Framework 4.5 is installed don’t know if that plays a part?

      • March 18, 2014 at 6:51 pm

        Are you definitely running it in an ica session?

      • Marc Trotter
        March 18, 2014 at 9:44 pm

        Yes, definitely within an ICA session, does the fact that we’ve enabled Session Reliability play a part, in other words port 2598 is leveraged not 1494?

  3. March 7, 2014 at 9:21 pm

    Is there a yellow/red warning on the latency counter? That would be helpful.

    • March 7, 2014 at 9:22 pm

      Not currently. I’ll write one in.

      • Ryan Gallier
        March 10, 2014 at 7:28 pm

        Great, thanks!

  4. March 10, 2014 at 5:43 pm

    Thanks Andrew! There used to be a Latency Checker application for CPS 4/5 and I’ve been looking for a simple utility like this for a couple of years now. I second the request for a latency threshold, since I will use this app to demonstrate to clients when “laggyness” in their session is due to network latency. Yellow/red color indicators will make things that much simpler.

  5. Brian King
    March 22, 2014 at 8:07 pm

    Hi Andrew,

    I have a home user that when running the Watcher on the Xendesktop shows 934 MS latency and than a message “disconnect detected” is that message triggered from the high latency number or something else?. The user is on a high speed cable connection so I find it odd.

    • March 23, 2014 at 12:02 am

      Hi Brian,

      The latency counter is a Citrix counter. If it’s reading that high, it’s that high,

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

<span>%d</span> bloggers like this: