Too Many Active Sessions

Citrix.PresentationServer.ActiveSessions.PerformanceMonitor (UnitMonitor)

Monitors the number of active Citrix sessions on a Citrix managed server

Knowledge Base article:

Citrix ® Management Pack

Summary

A high number of active sessions has been found on this server. This may indicate that the server has become overloaded.

 
Causes

This alert can signal performance problems on the server. All sessions consume resources on the server. A high number of sessions can therefore affect the server's performance. Note that all sessions, including idle and disconnected sessions, consume resources.

 
Resolutions

If the server shows degraded performance due to the high number of active sessions, limit the number of sessions the server will accept (for example, using the Microsoft Terminal Services Configuration utility). If other servers in the server farm are not as highly loaded, use load balancing to evenly distribute connections among servers. For more information about load balancing, see the Load Manager Administrator's Guide and the Presentation Server Console online help.

 
External Knowledge Sources

The following sources of information can be helpful when dealing with this alert:

Or search the Citrix knowledge base for more information.

 
Other Information

The number of active sessions is a coarse indicator of server load, because it is influenced by other factors such as disconnected sessions and the type of applications running in sessions. Note that the number of active sessions includes active console and RDP sessions.

This monitor is disabled by default because the number of active sessions a server can support without performance degradation depends on the hardware and software in your installation.

Caution: When enabled, this alert applies globally to all managed servers. This assumes all servers have the same capacity for active session numbers.

The Management Pack includes an Active Sessions performance view that shows a history of active sessions on managed servers. This is useful for spotting trends in session usage on individual servers.

Note that there is a similar alert for the number of disconnected sessions.

 
© 2002-2008 Citrix Systems, Inc. All rights reserved.

Element properties:

TargetCitrix.PresentationServer.ManagedServer
Parent MonitorCitrix.PresentationServer.Connections.PerformanceState
CategoryAvailabilityHealth
EnabledTrue
Instance NameMetaFrame_Server
Counter NameNumberOfActiveSessions
Frequency1020
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.WmiBased.Performance.ThresholdMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Too many active sessions
The number of active sessions on this server is high.
RunAsCitrix.PresentationServer.CitrixAdministratorAccount

Source Code:

<UnitMonitor ID="Citrix.PresentationServer.ActiveSessions.PerformanceMonitor" Accessibility="Public" Enabled="true" Target="Citrix.PresentationServer.ManagedServer" ParentMonitorID="Citrix.PresentationServer.Connections.PerformanceState" Remotable="true" Priority="Normal" RunAs="CtxLibrary!Citrix.PresentationServer.CitrixAdministratorAccount" TypeID="Windows!Microsoft.Windows.WmiBased.Performance.ThresholdMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Citrix.PresentationServer.ActiveSessions.PerformanceMonitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="UnderThreshold" HealthState="Success"/>
<OperationalState ID="Warning" MonitorTypeStateID="OverThreshold" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<NameSpace>\\$Target/Host/Property[Type='Windows!Microsoft.Windows.Computer']/NetworkName$\root\Citrix</NameSpace>
<Query>SELECT * FROM MetaFrame_Server WHERE ServerName="$Target/Host/Property[Type='Windows!Microsoft.Windows.Computer']/NetbiosComputerName$"</Query>
<Frequency>1020</Frequency>
<ObjectName>MetaFrame_Server</ObjectName>
<CounterName>NumberOfActiveSessions</CounterName>
<InstanceName>$Target/Property[Type='CtxLibrary!Citrix.Library.ServerApplication']/Name$</InstanceName>
<Value>$Data/Property[@Name='NumberOfActiveSessions']$</Value>
<Threshold>75.00</Threshold>
</Configuration>
</UnitMonitor>