login vsi company logo login vsi company logo 250x40

 

Get the best possible VDI performance, density and availability with Login VSI
Our Solutions

  • 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.

 


 

Start using Login VSI today

Our industry-standard software is built to help you avoid problems, lower costs and improve performance. Request a Quote or get your free Trial below, and benefit from our award-winning services.

Free Price Request  Your Free Trial

 


About the company Login VSI

The company Login VSI provides end-user performance insights for virtualized desktop and server-based computing environments. Enterprise IT departments use flagship product Login VSI (for load testing) and Login PI (for continuity testing) in all phases of their virtual desktop deployment—from planning to deployment to change management—to build and safeguard a good performance, a high availability, and (as a result) a good and consistent end-user experience. For more information about Login VSI or for a free test license contact us.

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

Popular Blogs

Login VSI Blog - Ongoing Effects CPU Flaws

The Ongoing Effects of Intel CPU Flaws

The Ongoing Effects of Intel CPU Flaws Over the last year, we’ve seen many Intel CPU hardware flaws come to light and when news first broke about Meltdown & Spectre there was a lot of panic: "should we patch?", "What’s the performance impact?", "Can we still rely on this hardware?" Continue Reading
Login VSI Blog - How-To Update, Protect Against RIDL, Fallout MDS Vulnerability

How-To: Update, Protect Against RIDL, Fallout MDS Vulnerability

RIDL & Fallout MDS vulnerabilities, impact on VDI performance & actions to take. FAQs we’re receiving & updates on performance tests executed to patch flaws Intel calls “Microarchitectural Data Sampling (M.D.S.)” aka: Rogue In-Flight Data Load (RIDL), Fallout, ZombieLoad & Store-to-Leak Forwarding. Continue Reading
Login VSI Blog - Teaser Image - A Practical Guide to VDI Change Management - Part 1

A Practical Guide to VDI Change Management

Part 1: IT Change Management in general The first in an 8-part series, this practical guide to VDI Change Management will guide you through the transformation of the IT department from a back-end function into a core competency for every modern organization. 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
A Practical Guide To VDI Change Management, Part 3

A Practical Guide to VDI Change Management

Part 3: Change Accelerates with Windows 10 The third in an 8-part series, this practical guide to VDI Change Management gives you the low-down on the what, why and how of Windows 10 updates and changes Continue Reading
Login VSI Blog - Teaser Image - A Practical Guide to VDI Change Management - Part 2

A Practical Guide to VDI Change Management

Part 2: Why VDI is very sensitive to change The second in an 8-part series, this practical guide to VDI Change Management highlights the importance of effective Change Management. With all the complexities of VDI environments, any failure can severely impact your business. Continue Reading
Cookie Settings