How to diagnose AppSense slow logons with custom performance markers
An AppSense slow logon is often several delays wearing one symptom. A user may be waiting for Windows profile creation, Group Policy refresh, domain authentication, endpoint security inspection, AppSense policy evaluation or a managed application to start. Recording only total elapsed time identifies the complaint, but it cannot show which dependency deserves attention.
Custom performance markers make that path measurable. Labelled timestamps around discovery, policy evaluation and remediation let administrators convert a vague report of slowness into a sequence of durations, then test a change against a baseline. The method works for managed workstations, remote desktops and published applications while preserving enough context to identify the stage responsible for the delay.
Build a baseline before changing AppSense
Define the start and finish points before collecting evidence. For an interactive logon, a practical start is credential submission and the finish is a usable desktop; for a published application, measure session establishment and the first usable application screen as separate events. Use the same definition for every test. Record cold and warm logons separately, then compare median and 95th percentile results across at least ten representative attempts. Keep a control device or unchanged policy version so environmental variation does not resemble a product effect.
Choose tests that reflect Australian operating conditions. A hot desk in a Melbourne CBD office, a managed laptop used from a Sydney home office and a user on a regional Queensland broadband connection can expose different network, disk and profile behaviour. Capture the Windows build, AppSense client and server versions, policy revision, endpoint-security state, authentication path and session type. Repeat tests at the user’s normal start time because background patching and endpoint scans can make a morning result different from a quiet afternoon test.
Map the complete sign-in chain
The first marker should precede Windows profile and Group Policy work, while later markers identify AppSense client start-up, rule evaluation, package detection, remediation and policy application. A long pause before the AppSense marker points toward the domain, profile or policy chain. A long interval inside AppSense points toward local work or a server exchange, allowing the investigation to move in the right direction.
Check domain-controller selection, DNS response, Kerberos exchanges, Group Policy downloads and the reachability of the AppSense server during the same window. Correlate these observations with the relevant Windows and AppSense logs rather than relying on event IDs alone, because informational warnings do not always identify the active bottleneck. Record both elapsed time and timeout values: a fast error is not evidence that the dependency was healthy. A trace should show the request, response and timeout boundary for each remote dependency.
Account-side delays also matter. Verify that MFA, linked identities and recovery prompts are not introducing a second interactive challenge during the test. If the test identity also uses Google Workspace, Google account guidance can help confirm that account state is not the variable under examination. Use a dedicated test identity where possible and record whether authentication is local, federated or cached.
Place custom markers around expensive work
Treat each marker as a timed boundary, not an isolated log line. A useful pair is AppSense.PolicyEvaluation.Start and AppSense.PolicyEvaluation.End, carrying the same correlation ID. Another pair can surround package detection or an inventory refresh, and a third can bracket an action that downloads or starts a managed application. Existing AppSense or Windows markers should retain their original names. Add new markers in a test copy of a supported script, action or diagnostic wrapper rather than editing signed binaries.
Each record should include a UTC timestamp, elapsed milliseconds from a monotonic stopwatch, device name, correlation ID, stage, outcome and error category. UTC aligns traces from the endpoint and AppSense server, while the stopwatch prevents a clock adjustment from producing a negative duration. Confirm that clocks are synchronised across hosts. If a marker is written directly to a file, use a local buffered writer and flush it when the stage closes; otherwise the first marker may appear only after the slow operation has finished.
Use Windows Performance Recorder or PerfView to capture ETW activity and align it with custom events. Process Monitor can reveal the file, registry and network operations behind a long stage, while AppSense client logs show policy and service outcomes. Start with a small pilot and a handful of low-frequency markers, since excessive instrumentation can distort the run. Keep the marker catalogue under change control so later teams interpret the same labels consistently.
Separate local, network and server delays
Read the completed trace by sorting stage intervals from largest to smallest, then inspect the surrounding events. A package scan that consumes twelve seconds is a local performance issue even if the AppSense server responds quickly. A policy request that waits thirty seconds for a server response is a service or network issue and should be examined with the server team. Repeat the trace before accepting a one-off delay, and preserve the exact sequence for comparison.
At the device, compare CPU, disk latency, process creation, antivirus or endpoint-security activity and cache state. Package detection can be amplified by a cold cache, a busy disk or overlapping security scans. Process Monitor can reveal unexpected file, registry and network activity, while a CPU and disk trace can distinguish computation from I/O. Compare against an unaffected device with the same profile and policy set to separate user-specific state from a shared workload. Do not disable endpoint protection to obtain a cleaner result.
Test remote dependencies from each relevant Australian location and during the hours staff actually start work. VPN tunnel establishment, DNS failover and packet loss may affect only a subset of logons. If AppSense is hosted in an Australian cloud region such as AWS’s ap-southeast-2 region in Sydney, compare the endpoint-to-service trace with the service’s own logs; a healthy server may still look slow through a poor local internet path. Packet captures should be narrowly scoped and handled under the organisation’s security and privacy procedures.
Check session hosts and published applications
Citrix and RDS desktops need a separate view because the Windows logon, ICA session creation and published application launch are distinct milestones. On a session host, multiple logons can also trigger overlapping package detections or policy actions. Use a marker on the session host and compare its timing with the client-side session data. The session-host settings review is a useful reference for checking whether concurrent-user behaviour is changing the workload. Also establish whether the reported delay belongs to authentication, desktop preparation or the application itself.
Many Australian organisations combine Microsoft 365 with Citrix or RDS across Sydney, Melbourne and branch offices, making session reuse and published-application policy a common source of apparent logon delay. Hybrid workers may move between hot desks and home offices, so the same user can alternate between warm and cold profiles. Workplace broadband, VPN use and shared-office Wi-Fi can vary within the same metropolitan area. Record the workstation and session-host paths separately, then test whether package work belongs in session establishment or can be cached safely for subsequent launches.
Use a repeatable diagnostic checklist
Use the following checklist before changing production policy or escalating a problem to support:
- Establish a baseline with fixed start and finish points, a test identity and enough attempts to expose intermittent delay.
- Attach one correlation ID to the endpoint capture and note the matching time window in AppSense and directory logs.
- Bracket policy evaluation, package detection, remediation and final application start with labelled markers.
- Compare cold and warm logons, local and remote paths, and similar devices on different Australian networks.
- Retain only the evidence needed for diagnosis; where the Privacy Act applies, follow the Australian Privacy Principles.
- Change one factor in a pilot group, preserve rollback steps and compare median and 95th percentile results.
Keep the raw trace, marker summary and configuration snapshot together. If the result differs after a policy update, the team can distinguish a real improvement from normal variation. A sanitised copy is also suitable for peer review without exposing credentials, personal records or sensitive application names.
Turn the findings into a controlled fix
Choose the remedy that matches the longest proven interval. Move a heavy package check out of the critical logon path, refine an oversized rule, restore profile or Group Policy performance, correct name resolution, or improve the route to a slow AppSense service. Pilot the change with a representative cohort, hold endpoint-security settings constant and compare the same metrics used for the baseline. Roll back if reliability or policy coverage suffers.
Use the community tools library to compare trace templates, marker scripts and diagnostic utilities, then post a sanitised marker timeline in the AppSense Exchange forums for community advice. Include versions, correlation IDs and measured gaps, but remove credentials and unnecessary user data. Start with one representative endpoint and one controlled remediation today, then retain the marker set for the next release.