Logon/Logoff Issues with Citrix Profile Management and Opportunistic Locks (OpLocks)
book
Article ID: CTX237233
calendar_today
Updated On:
Description
- Slow Logon's
- Slow Logoff's
- Sessions never logoff (until the Lock is removed)
- Sessions never logon (until the Lock is removed)
- Temporary Profiles
Environment
Citrix is not responsible for and does not endorse or accept any responsibility for the contents or your use of these third party Web sites. Citrix is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement by Citrix of the linked Web site. It is your responsibility to take precautions to ensure that whatever Web site you use is free of viruses or other harmful items.
Resolution
Disable the OpLocking on the File Server
Problem Cause
The Citrix Profile Management Driver, UPMJIT.sys, is not OpLocks aware. When UPMJIT.sys is tasked with copying a file to/from the File Server for the profile - OpLocks will lock the file, which is reserved for local caching, and Citrix Profile Management will try and wait for the file to become unlocked.
Citrix's Profile Management driver will normally wait for the requested file(s) to become unlocked - but does not have the authority to remove the lock - and sometimes will wait indefinitely as this is a task that the driver must fulfill. If the driver is unable to fulfill the request - the behavior experienced can include:
- Slow Logon's
- Slow Logoff's
- Sessions never logoff (until the Lock is removed)
- Sessions never logon (until the Lock is removed)
- Temporary Profiles
Because Citrix Profile Management operates by using fetch requests to the file server in use for the profiles, locally caching this information via OpLocks (L2, Batch, or Filter OpLocks) will not be helpful to the Citrix Profile Management driver and is not recommended for use when using Citrix Profile Management as a profiling solution.
Additional Information
More Information about Opportunistic Locks (OpLocks):
- https://docs.microsoft.com/en-us/windows/win32/fileio/opportunistic-locks
- https://docs.microsoft.com/en-us/windows/win32/fileio/types-of-opportunistic-locks
Was this article helpful?
thumb_up
Yes
thumb_down
No