User Logon Process - Complete Duration (Alert)

Comtrade.Citrix.XenDesktop.EndUser.Logon.CompleteDuration.Alert (Rule)

Generates alert if duration of the complete user logon process exceeds a threshold value.

Knowledge Base article:

Summary

Helps to identify a user whose logon process was very slow. It provides also information about duration for various logon phases.

The complete logon duration is not an exact sum of all phases. For example, some phases occur in parallel, and in some phases, additional processing occurs that might result in a longer logon duration than the sum.

Configuration

Overridable parameters:

IntervalSeconds

The recurring interval of time in seconds in which to run the rule (the default value is set to 300 seconds).

InfoThreshold

Info alert threshold (the default value is set to 120 seconds).

WarningThreshold

Warning alert threshold (the default value is set to 180 seconds).

CriticalThreshold

Critical alert threshold (the default value is set to 240 seconds).

Debug

Used for troubleshooting (the default value is set to false).

Causes

There are various reasons for a slower user logon including:

Also, check root causes of all logon phases which are included into the complete logon duration.

Resolutions

To identify if this is a general issue on a delivery group, compare the user's logon time to the average time for all users in this Delivery Group for the last seven days.

See Delivery Group Average Logon Performance

Check also the User - Logon Activity (Troubleshooting) report to get information about this user's logons in the past.

Additional

User logon is a complex and a resource intensive process on a Citrix server or desktop OS machine. It is initiated when Citrix delivery group load balancing algorithm selects the system where published application and/or desktop that user has selected will be started, and ends when the application and/or desktop is running and the user is able to interact with it.

Management Pack breaks down the Citrix XenApp/XenDesktop logon process into the following phases.

Phase 1: Brokering

The time taken to decide which desktop to assign to the user.

Phase 2: VM start

In case the session required a machine to be started, the time taken to boot the desktop.

Phase 3: HDX connection

The time taken to complete the steps required in setting up the HDX connection from the client to the VM, dependding on the network.

Phase 4: Authentication

The time taken to complete authentication to the remote session.

Phase 5: Profile load

The phase starts just after the user credentials are validated and lasts until the profile is downloaded from the profile storage (network share).

Phase 6: GPOs

During this phase, group policy objects are applied/defined on the Domain Controller.

Phase 7: Logon scripts

This phase covers the time taken for the logon scripts to be executed.

Phase 8: Interactive session

The phase starts in parallel with GPOs phase and covers Citrix specific activity before it launches the requested application: launching seamless windows engine shell, auto creation of client printers and ICA client update process.

Additional logon information

In addition to alert description, some information is also available in Alert Context tab:

External

Click the following link to get more info about logon process:

XenApp/XenDesktop Connection Process and Communication Flow

Also, please see the following Citrix article on troubleshooting slow XenApp logons:

How to Troubleshoot Slow Logons

You may also want to check out the Citrix logon optimization guide:

Logon Optimization Guide

Element properties:

TargetCitrix.XenDesktop.DataWatcher
CategoryAlert
EnabledTrue
Alert GenerateTrue
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Citrix.XenDesktop.EndUser.DS.Logons.AlertProvider Default
filterProper ConditionDetection Citrix.XenDesktop.EndUser.CD.Logons.Alert.ConditionDetection Default
Alert WriteAction System.Health.GenerateAlert Default