PSM Slow or Intermittent Connection Issues

PSM Slow or Intermittent Connection Issues

368
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:04 PM


Symptom


PSM sessions take a long time to connect, may be intermittent or are possibly failing to connect at all.



Environment


11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5 Privileged Access Manager (PAM, self-hosted) PSM

PSM Connectivity/Performance



Cause


If a large number of logs files are allowed to accumulate in the following folders:

 

\Logs\Old

\Logs\Components

\Logs\Components\Old

\Components\Old

 

(within <installation drive>:\Program Files (x86)\CyberArk\PSM\)

 

This can cause performance issues with the PSM from version 11.7 when the way the PSMConnect, PSMAdminConnect and PSMShadowUsers permissions were set to checked against these folders to mitigate a bug.

 

When the permissions are set this touches every file within these folders meaning, if there are a large number of files, it takes a long time to set the permissions eventually leading to performance, connectivity and timeout related issues.

 

To check for the issue, when viewing the PSM Trace Logs you may see a significant delay between terminating the PID to completing setting permissions:

 

[19/10/2022 | 12:35:38.048912] | {pid= 3448} | {tid=    8340} | PSMSR1002I [c06ae9ac-0550-4e7e-a320-aa90eae82d2a] The creation of process PSMInitSession has finished

[19/10/2022 | 12:35:38.048957] | {pid= 3448} | {tid=    8340} | PSMSR165I [c06ae9ac-0550-4e7e-a320-aa90eae82d2a] Attempting to terminate process with PID [139952]

[19/10/2022 | 12:35:38.049166] | {pid= 3448} | {tid=    8340} | PSMSR520I [c06ae9ac-0550-4e7e-a320-aa90eae82d2a] Successfully terminated process with PID [139952]

 

[19/10/2022 | 12:36:11.164838] | {pid= 3448} | {tid=    8340} | PSMSR1315I Set permissions for user <PSMConnect> on folder <F:\Program Files (x86)\CyberArk\PSM\Logs\Components> succeeded

[19/10/2022 | 12:36:44.726455] | {pid= 3448} | {tid=    8340} | PSMSR1315I Set permissions for user <PSMAdminConnect> on folder <F:\Program Files (x86)\CyberArk\PSM\Logs\Components> succeeded

[19/10/2022 | 12:36:44.728162] | {pid= 3448} | {tid=    8340} | PSMSR1315I Set permissions for user <PSMShadowUsers> on folder <F:\Program Files (x86)\CyberArk\PSM\Logs\Components> succeeded

[19/10/2022 | 12:36:44.728237] | {pid= 3448} | {tid=    8340} | PSMSR561I [c06ae9ac-0550-4e7e-a320-aa90eae82d2a] Attempting to register session recorders

 

In this example it takes over 60 seconds to complete. The session does login but there is a delay, of around 1 minutes, but much longer and sessions fail to get established.



Resolution


In PSM v12.6 ‘PurgeLogsThreshold’ was introduced which enables the PSM logs to be managed via the settings in PVWA.

 

To resolve the issue the log files need to be deleted. It does not need to be all log files, just the majority so recent logs can be left. Ultimately, to avoid the issue occurring, a process should be adopted to purge old log files, albeit manually or via a script, but please note it is advised to ‘Stop’ the PSM service, move or delete the old logs, then restart the service again as per this article:

 

https://community.cyberark.com/s/article/KI00014380

 

Simply deleting the logs then restarting the PSM service has been found to work also.

 

Note: Debugging levels should only be increased against the PSM server when they are needed then returned to default logging levels when finished. This helps to stop the increase in the number of logs being generated as well as reduced log file sizes.

 

As for guidance on the number of files which may cause issue, this needs analysis and may vary from deployment to deployment depending on PSM server specifications and resources available. What has been identified so far is when the log files have reached many thousands; Example, 50,000+.

 

Problems may start to occur at values much less than this but at this level it is known to have impacted users.

 

What is also currently unclear is whether the size of the files has the same impact. Typically, for the above number of files, we see folder sizes in excess of 10.0GB but it is thought the time is taken setting permission on the number of files as opposed to the size of them.

 

As a preventative measure, and to ensure performance is optimal, it is advised to regularly check the log folders and implement a process where these are backed-up (if necessary) then moved or deleted at a regular intervals, such as 30, 60 or 90 days. Bare-in-mind a PSM service restart is needed and may dictate how frequently this process can be performed.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001HzjCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail