login vsi company logo login vsi company logo 250x40
  • Home
  • Blog
  • Login PI
  • Virtualized desktop performance evaporates over time: Scheduling custom tasks to Login PI events

Virtualized desktop performance evaporates over time: Scheduling custom tasks to Login PI events

Virtualized desktop performance evaporates over time: Scheduling custom tasks to Login PI events

Performance in your virtualized desktop environment will often degrade over time. When this happens, it is so gradual that end users may not even notice. Until they do. Why does it happen? Applications gradually save more files, which again individually increase in file size each time an application is started by the end-user.

If left unchecked, performance degradation will eventually be noticeable and users will become frustrated. As we all know, unhappy end users not only make the IT administrator’s life difficult, but also result in lost productivity, potentially affecting the bottom line. In scenarios where workspaces or desktop-as-a-service is delivered from a provider, poor performance can indicate a failure to meet Service Level Agreements.

In this blog post I will share how to use Login PI to be notified if applications become slower and how you can add Custom Tasks to Login PI Events.

virtualized desktop performance evaporates over time scheduling custom tasks to login pi events microsoft outlook

Microsoft Outlook becomes slower over multiple days, due to Outlook’s User Profile gradually increasing in size

By default Login PI calculates its standard threshold. The threshold is the median of the collected historical data, on top of this Login PI adds a fixed 60%. This conversion rate is based on research at many different customers with their own unique virtualized desktop environments. This means that if for example Outlook takes 1 second to start, Login PI adds the 60% on top of it and the Auto Threshold would be 1.60 seconds. When this threshold is reached Login PI will provide an alert. This is why a gradual increase, as explained, may not always generate the alerts as desired.

As you can see in the example above, Outlook becomes slower over the course of just one week. In order to get notified at the right time, you can configure your own fixed thresholds in Login PI.

To configure a fixed threshold, open the Login PI web interface landing page and browse to Configuration -> Workload Settings and select Thresholds.

virtualized desktop performance evaporates over time scheduling custom tasks to login pi events workload settings

Configure Login PI Workload Settings

The Thresholds configuration page appears and display the Workload actions, including the Thresholds based on Auto Thresholds (automatic thresholds provided by Login PI according to collected history data of a profile and its job).

virtualized desktop performance evaporates over time scheduling custom tasks to login pi events tresholds

Configure Login PI Workload Thresholds

To manually configure your own Thresholds, hover with the mouse position under the Custom column, select and configure the ones as desired. Hit Save.

This example enables all the Workload actions with a Threshold value of 1 second.

virtualized desktop performance evaporates over time scheduling custom tasks to login pi events tresholds 1 second

Configure Login PI Workload Thresholds to 1 Second

Instantly after this change (workload actions and their specific threshold values), I can see that my Login PI Alerts are gradually increasing as desired/intended. Browse to the Login PI web interface landing page and verify the Alerts page.

virtualized desktop performance evaporates over time scheduling custom tasks to login pi events alerts

Login PI Workload Alerts page (Thresholds set to 1 Second)

So how can I get notified based on these alerts?

All Login PI alerts are also stored in the Windows Event Log and through Windows Task Scheduler you can add Custom Tasks to these events. For example you can send an email or send a SNMP trap.

First open the Windows Event Viewer, either via another machine in the same domain or directly from the Login PI server/services machine and browse to Applications and Services Logs -> PI – Alerts.

virtualized desktop performance evaporates over time scheduling custom tasks to login pi events event viewer

Windows Event Viewer - Workload Alerts page (Thresholds set to 1 Second)

Let’s also open the Windows Task Scheduler in the Login PI server/services machine.

virtualized desktop performance evaporates over time scheduling custom tasks to login pi events task scheduler

Windows Task Scheduler

By default there is nothing in the Task Scheduler to verify and/or to configure. So let’s schedule a task step by step.

Step 1: On the top-level of the Task Scheduler, right mouse-click and select Create Basic Task.

virtualized desktop performance evaporates over time scheduling custom tasks to login pi events task scheduler step 1

Step 1: Windows Task Scheduler – Create Basic Task

Step 2: Provide a Task Name and, if necessary, a Description. Hit Next.

virtualized desktop performance evaporates over time scheduling custom tasks to login pi events task scheduler step 2

Step 2: Windows Task Scheduler – Create Basic Task Name

Step 3: Select the Task Trigger to “When a specific event is logged”. Hit Next.

We only want to trigger the Task Scheduler when Login PI writes a specific event.

virtualized desktop performance evaporates over time scheduling custom tasks to login pi events task scheduler step 3

Step 3: Windows Task Scheduler – Select the Task Trigger

Step 4: Select the PI - Alerts under the Log pull-down menu.

We only want to trigger the Task Scheduler when Login PI writes alerts to specific events.

virtualized desktop performance evaporates over time scheduling custom tasks to login pi events task scheduler step 4

Step 4: Windows Task Scheduler – Select the Task Log

Step 5: Select the Login PI - Alerts under the Source pull-down menu.

We only want to trigger the Task Scheduler when Login PI writes alerts to specific events.

virtualized desktop performance evaporates over time scheduling custom tasks to login pi events task scheduler step 5

Step 5: Windows Task Scheduler – Select the Task Source

Step 6: Specify the Login PI - Alerts Event ID correlated to the specific Windows Event Logs ID. Hit Next.

Verification step: Open the Windows Event Logs to make sure that we provide the correct Event ID. In this example, all my Event IDs are identical with 31302 as “ID”.

virtualized desktop performance evaporates over time scheduling custom tasks to login pi events task scheduler step 6a

Step 6a: Windows Task Scheduler – Provide the correct Event ID to the Task

virtualized desktop performance evaporates over time scheduling custom tasks to login pi events task scheduler step 6b

Step 6b: Windows Task Scheduler – Provide the correct Event ID to the Task

Step 7: Select what action you want the task to perform, when it triggers the configured Event ID – 31302. Hit Next.

virtualized desktop performance evaporates over time scheduling custom tasks to login pi events task scheduler step 7

Step 7: Windows Task Scheduler – Provide the Task Action to the Task

Step 8: This example shows how a simple .bat script is setup and configured, to trigger it accordingly when Login PI reaches a certain configured Threshold. So, select Start a program and hit Next. Browse and select your own created file. Select Finish.

virtualized desktop performance evaporates over time scheduling custom tasks to login pi events task scheduler step 8

Windows Task Scheduler – Provide the Task Action program/script requirements to the Task, Step 8

I will now receive messages on my Login PI server/services machine when my configured thresholds are reached.

That is how you configure Custom Tasks on Login PI Events. In my next blog, I will zoom in a bit more and explain the advanced settings of Windows Event Logs, Windows Task Scheduler and how to add certain PowerShell scripts in combination with Custom Tasks on Login PI Events.

About the author

Omar Bouhaj joined Login VSI in 2012 as a Support Consultant. As such, he supports customers and partners worldwide. You can ask Omar anything about our products, and besides this, he can also fill you in on the history of Hip-Hop. In his spare time, he loves DJing, to travel and to enjoy nature.


Tags: How-to, Login PI, Monitoring, Best Practices, Support

Popular Blogs

login-vsi-vdi-performance-summit

The VDI Performance Summit - Virtual Conference and Expo

Visit the VDI Performance Summit to gain knowledge and experience about performance and tuning VDI, improving End-User Experience and IT service. Join us at the ONLY virtual event 100% dedicated to VDI performance and tuning | May 2, 2019 This 1-day event offers key-notes presented by the best VDI performance experts in the world, technical and business oriented breakout sessions, the possibility to chat with experts directly to discuss your own situation, and a virtual exhibit hall featuring… Continue Reading

Scalability testing Parallels Remote Application Server with Login VSI

Recently I went to VMworld in Barcelona where Login VSI had a booth on the expo... While I can’t remember exactly how many conversations I had - there had been so many that I lost my voice on day one. What was new this year is that quite a few people asked if our software is compatible with the solutions from Parallels specifically their Remote Application Server (RAS) (Datasheet). Continue Reading
Login VSI Blog Article - Microsoft Windows 10 Default FTA Associations - Teaser Image

Windows 10 Default File Type Associations and Login VSI

When Login VSI 4.1 was released, the majority of desktops were running Windows 7 and life was easy. We’d set the default filetype for an application and it would simply work. The default and industry standard workloads in Login VSI include launching and using Adobe Reader as part of the virtual user simulation. Because Login VSI doesn’t always know which version of Adobe Reader is installed, or where it’s installed, the workload relies on the file type association (FTA) for .pdf documents to be… Continue Reading
Login VSI - Press Release - IGEL - Login VSI Partner to Optimize End User Computing Experience Image

[Press Release] IGEL Partners with Login VSI to Optimize the End User Computing Experience

Login PI enables organizations to better protect the performance and availability of their IGEL OS-powered virtual desktop environments San Francisco, USA, Feb. 6, 2019: IGEL, a world leader in software-defined endpoint optimization and control solutions for the secure enterprise, today announced that it is partnering with Login VSI, provider of software solutions to test and actively monitor the performance and availability of virtual desktop environments, including VDI and… Continue Reading
Login VSI - Blog - Login PI Blog Teaser Image - Windows Virtual Desktop: How To Monitor User Experience With Login PI

Windows Virtual Desktop – How to Monitor User Experience?

Microsoft has just announced the public preview of their new Windows Virtual Desktop (WVD) offering at Microsoft Ignite on Tour in Amsterdam today. For those of you who’ve not followed the rumors or the private beta, here’s the outline... Continue Reading
Investigating Online Application Performance with Login PI

Investigating Online Application Performance with Login PI

As many companies do, we use a CRM system. Recently, I have been getting complaints about our cloud CRM system, Microsoft Dynamics, being slow. I tried to investigate this by shadowing one of our users to see what was wrong. As expected, everything was fast. 15 minutes later, the same user reported slowness again. How could I investigate this without bothering the users? Continue Reading
Cookie Settings