PSM needs to be regularly rebooted
341
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:54 PM
Symptom
Idira is aware of an issue related to the Windows Operating System when running RDS which leads to a large number of entries being placed in the registry. This can lead to either a functional issue where sessions permanently fail or a performance issue that increases the time it takes to make PSM connections.
If the server is rebooted the PSM functions normally again but typically, after 1-4 weeks, the issue will reoccur.
Sometimes, when this problem occurs an admin user is unable to directly RDP into the PSM server to reboot it. If this occurs, it may be possible to access an administrative session by running 'mstsc.exe' with the '/ admin' switch. On other occasions a power reset maybe required.
Another factor here is the PSM service itself is unaffected and continues to operate which does not trigger any change in PVWA System Health or the PSM Health Check service. This results in the PSM remaining online, however please Vote/Follow this Enhancement Request:
https://community.cyberark.com/s/article/ER--ToolUtility-to-help-manage-known-Microsoft-iss-5acb-cd0
If the server is rebooted the PSM functions normally again but typically, after 1-4 weeks, the issue will reoccur.
Sometimes, when this problem occurs an admin user is unable to directly RDP into the PSM server to reboot it. If this occurs, it may be possible to access an administrative session by running 'mstsc.exe' with the '/ admin' switch. On other occasions a power reset maybe required.
Another factor here is the PSM service itself is unaffected and continues to operate which does not trigger any change in PVWA System Health or the PSM Health Check service. This results in the PSM remaining online, however please Vote/Follow this Enhancement Request:
https://community.cyberark.com/s/article/ER--ToolUtility-to-help-manage-known-Microsoft-iss-5acb-cd0
Environment
11.7;12.0;12.2;12.6;13.0;13.2;13.1;14.0;14.2;14.6 Privileged Access Manager (PAM, self-hosted) PSM
- Privileged Session Management (PSM)
- PSM Connection via PVWA
Cause
This is reported to be an issue with the Windows Operating System when running Remote Desktop Services (RDS) and is noticeably worse when RemoteApp is used. The RemoteApp sessions adds significantly more entries to the registry and, over a period of time, the accumulation of these entries leads to thresholds being reached and system resources being exhausted, this is being referred to as registry ‘bloating’. These entries have been found to exist in the following registry keys:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\VolatileNotifications
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Notifications
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Deployment\Package\*\
The Packages\* key contains multiple subkeys, each entry beginning ‘S-1-’ which represents a user who has logged onto the PSM server. Our current understanding is the entry, or Security Identifier (SID), which represents the ‘PSMConnect’ user can grow particularly large within a relatively short period of time leading to 'PSMSC036E No Process was found for image [PSMInitSession.exe]'.
The error may first be seen intermittently when trying to establish sessions before, eventually, all sessions fail. During this time users may notice it takes longer to establish sessions compared with soon after the PSM was rebooted.
There are some checks which can be made manually or using free SysInternals Tools, these are discussed in detail in the article 'PSM - Windows Server Registry Bloating issue’ which can be found at the bottom of this article. One method to manually check the ‘VolatileNotifications’ and ‘Notifications’ registry keys is provided below, these can contain a large number of entries, typically 10000+.
1) Open the Registry Editor and browse to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\VolatileNotifications
2) Right-click the 'VolatileNotifications' registry key and choose 'Export'
3) Choose a location to save the file, such as 'Documents' or 'Desktop', give the file a name and choose 'Save as type:' and select 'TextFiles (*.txt)'
4) Click 'Save'
5) Browse to the location where the exported file has been saved and open it with a text editor such as Notepad.
6) Scroll to the end of the file and the last section should show 'Value' and a number, e.g. 'Value 1037'. This means there are 1038 VolatileNotifications entries as the value starts at '0'.
7) Repeat the above but for ‘Notifications’.
The specific numbers will vary from deployment-to-deployment before problems occur, this is because the issue is resource related and will vary depending on System Specification as well as the number, and type, of connections.
It will be necessary to monitor the PSM and check these values to better understand what values can be tolerated before a server reboot is required.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\VolatileNotifications
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Notifications
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Deployment\Package\*\
The Packages\* key contains multiple subkeys, each entry beginning ‘S-1-’ which represents a user who has logged onto the PSM server. Our current understanding is the entry, or Security Identifier (SID), which represents the ‘PSMConnect’ user can grow particularly large within a relatively short period of time leading to 'PSMSC036E No Process was found for image [PSMInitSession.exe]'.
The error may first be seen intermittently when trying to establish sessions before, eventually, all sessions fail. During this time users may notice it takes longer to establish sessions compared with soon after the PSM was rebooted.
There are some checks which can be made manually or using free SysInternals Tools, these are discussed in detail in the article 'PSM - Windows Server Registry Bloating issue’ which can be found at the bottom of this article. One method to manually check the ‘VolatileNotifications’ and ‘Notifications’ registry keys is provided below, these can contain a large number of entries, typically 10000+.
1) Open the Registry Editor and browse to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\VolatileNotifications
2) Right-click the 'VolatileNotifications' registry key and choose 'Export'
3) Choose a location to save the file, such as 'Documents' or 'Desktop', give the file a name and choose 'Save as type:' and select 'TextFiles (*.txt)'
4) Click 'Save'
5) Browse to the location where the exported file has been saved and open it with a text editor such as Notepad.
6) Scroll to the end of the file and the last section should show 'Value' and a number, e.g. 'Value 1037'. This means there are 1038 VolatileNotifications entries as the value starts at '0'.
7) Repeat the above but for ‘Notifications’.
The specific numbers will vary from deployment-to-deployment before problems occur, this is because the issue is resource related and will vary depending on System Specification as well as the number, and type, of connections.
It will be necessary to monitor the PSM and check these values to better understand what values can be tolerated before a server reboot is required.
Resolution
To address the issue with a high number of ‘Volatile Notifications’ or ‘Notifications’ entries in the registry (which leads to permanent RDP connection/session failures) please see the article:
https://community.cyberark.com/s/article/Unable-to-RDP-to-PSM-server-PSMSC036E
As for the performance issue caused by bloating which occurs for the PSMConnect user in a subkey here:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Deployment\Package\*\
Idira are currently working closely with Microsoft on this issue to find a permanent solution. In the meantime we offer the following workaround:
https://community.cyberark.com/s/article/Unable-to-RDP-to-PSM-server-PSMSC036E
As for the performance issue caused by bloating which occurs for the PSMConnect user in a subkey here:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Deployment\Package\*\
Idira are currently working closely with Microsoft on this issue to find a permanent solution. In the meantime we offer the following workaround:
1. Increase the PSM ‘InitSessionTimeout’ to 60 seconds:
PVWA (or Pcloud Portal) -> Administration -> Configuration Options -> Option -> Privileged Session Management -> General -> Session Settings -> Advanced -> InitSessionTimeout
Please also ensure this matches the value in the conf.xml file below, this value is in milliseconds. Please set to '60000':
C:\Program Files (x86)\CyberArk\PSM\Components\Conf.xml
Please also ensure this matches the value in the conf.xml file below, this value is in milliseconds. Please set to '60000':
C:\Program Files (x86)\CyberArk\PSM\Components\Conf.xml
Aim to implement at least a monthly reboot of the PSM server(s) to stay ahead of the issue and help maintain performance.
Other alternatives include:
2. Disable RemoteApp - Are users utilizing features provided by RemoteApp such as ‘Desktop spanning’ and ‘Smart Sizing’? If not consider disabling RemoteApp to resolve the issue.
3. Reboot the PSM Server - if the PSM is via a load balancer, remove it until all sessions are inactive then reboot the PSM. This can be achieved either on the load balancer by removing the PSM from the pool or if the 'PSM Health Check' service is installed, stop the IIS service on the PSM (if configured correctly this should remove it from the Load Balancer). It should also be possible to write a script, and schedule it, to automate this process.
-------------------------------------------------------------------------------------------------------------------------------------------------------
You are advised to RAISE A CASE WITH MICROSOFT if you are experiencing this issue. Even though Microsoft are aware, a problem being encountered is with getting priority regarding an official and reliable fix due to the lack of cases being reported.
In addition, once a case has been reported to Microsoft please provide Idira with your Microsoft Case Number/Tracking ID and confirm that you allow Idira to link this with their own case. In addition, you may be provided with a patch or fix many weeks, or even months, before it is officially released.
Please also use the link below to assist with your case, run checks, and help to provide both Microsoft and Idira with the required information:
https://community.cyberark.com/s/article/Windows-Server-Registry-Bloating-issue
2. Disable RemoteApp - Are users utilizing features provided by RemoteApp such as ‘Desktop spanning’ and ‘Smart Sizing’? If not consider disabling RemoteApp to resolve the issue.
3. Reboot the PSM Server - if the PSM is via a load balancer, remove it until all sessions are inactive then reboot the PSM. This can be achieved either on the load balancer by removing the PSM from the pool or if the 'PSM Health Check' service is installed, stop the IIS service on the PSM (if configured correctly this should remove it from the Load Balancer). It should also be possible to write a script, and schedule it, to automate this process.
-------------------------------------------------------------------------------------------------------------------------------------------------------
You are advised to RAISE A CASE WITH MICROSOFT if you are experiencing this issue. Even though Microsoft are aware, a problem being encountered is with getting priority regarding an official and reliable fix due to the lack of cases being reported.
In addition, once a case has been reported to Microsoft please provide Idira with your Microsoft Case Number/Tracking ID and confirm that you allow Idira to link this with their own case. In addition, you may be provided with a patch or fix many weeks, or even months, before it is officially released.
Please also use the link below to assist with your case, run checks, and help to provide both Microsoft and Idira with the required information:
https://community.cyberark.com/s/article/Windows-Server-Registry-Bloating-issue