PSM Live Monitoring takes a long time to load

PSM Live Monitoring takes a long time to load

96
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 16:00 PM


Symptom


PSM Live Monitoring takes a long time to load.
From the logs, we can see that PSMInitSession.exe is being executed very quickly.

But there is a delay when accessing the vault.
Here is an example, that it takes up to 2 mins while retrieving the session from the vault:
[19/01/2021 | 08:47:01.861214] | {pid= 1816} | {tid= 2548} | class CPSMVaultSessionsManager * | PSM\(291) | :: | PSMSR1106I [d59ad865-07e2-4448-b2cc-fe760267f0f4] The Vault session was retrieved successfully
.
.
And finally continuing with the usual sequence: 
[19/01/2021 | 08:48:59.686849] | {pid= 1816} | {tid= 2548} | class CPSMTSSessionServiceBase * | PSM\(1504) | :: | PSMSR348I [d59ad865-07e2-4448-b2cc-fe760267f0f4] Querying user object ID for Vault user [auditor]
.
.
[19/01/2021 | 08:48:59.757956] | {pid= 1816} | {tid=     2548} | class CPSMSessionProcessBase *      | PSM\(151)                                                    |  ::  | PSMSR364I [d59ad865-07e2-4448-b2cc-fe760267f0f4] Attempting to attach by image name [PSMInitSession.exe]
[19/01/2021 | 08:48:59.761977] | {pid= 1816} | {tid=     2548} | STATIC                              | PSM\(958)                                                    |  ::  | PSMSC158I There are 8 processes detected in session of Id 8.
[19/01/2021 | 08:48:59.762109] | {pid= 1816} | {tid=     2548} | STATIC                              | PSM\(978)                                                    |  ::  | PSMSC159I The process with image name [PSMInitSession.exe] was found with PID 8316.
 


Cause


What happens when we start a monitoring session in the backend:
- the PSM searches for the original session’s details inside a metadata file (*.session) that is created for each session and stored in the PSM Recordings safe.
- We do the search by querying the Vault for the file and waiting for it to respond with the results.

One of the reasons for the delay is generally because of the PSM recordings safes:
- Being too huge
- Have too many objects (More than our 300K objects warning)
- Having too many objects will slow down the query time required. 


Resolution


Possible resolution suggestions:
1. Define a dedicated safe to the most used connection types (Ad Hoc connections) or by platforms
2. Decrease the size of the PSMRecordings safe by archiving old recording files.
3. Change the retention period of the safe to a recommended setting of 90/180 days.


Actions
  • Print
  • Copy Link

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