PSM Performance Tuning

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
PAM Self-Hosted Articles
4 min read
L7 Applicator
No ratings

Question

What are some steps to take for PSM performance tuning?

Answer

ChangeJustificationProblemImplementation
Lower PSM QualityFrom version 9.8, the param "FramesPerSecond" in PVWA became obsolete, and PSM always recorded sessions at 10 FPS unless there is a load on the machine, where depending on CPU threshold the quality would be lowered up to 2 FPS.The first few sessions would always be recorded at the max quality (10 fps), thus taking more CPU % until a certain point where quality would be reduced, so the customer had no way of knowing how to gauge the performance because it wasn't linear.
By reverting this change manually, we were able to get consistent sessions and approach scaling better during early deployments, the quality at 2-3 FPS is still really good for just desktop recording
  1. Login to PWA as administrator -> Navigate to -> Privileged Session Management-->General Settings-->Recorder Settings-->FramesPerSecond -> Change value to 2
  2. Login to PSM machine and browse to where PSM is installed - > Open basic_psm.ini  with notepad -> add this line at the bottom -> EnableDynamicFPS=No
  3. Restart PSM service.

Slow RDP Connection from PSM Server to Targets when missing certificates

Most customers don't use RDS certificates, which means when PSM tries to RDP it waits the internal timeout time before giving up and connecting through (roughly 15 secs+, the problem is better explained here).

This can have a bad effect on POC presentations, training courses, and PROD deployments -> End user's complaints.

What we've always done in the past is completely disable the certificate check, but recently I stumbled on a case where if PSM is in Azure, it needs to have a certificate check otherwise connection doesn't work.

The solution was to just lower the timeout to 3 secs instead of completely disabling it. So I think it's a good enough middle ground where we both lower it and not completely disable it (from an official standpoint).

  1. Login to PSM machine -> Run (windows + r) -> type secpol.msc -> navigate to Public Key Policies -> Certificate Path Validation Settings -> Network Retrieval -> Tick “Define these policies” -> Lower both boxes to 3 secs.
  2. Solution # 3575
Slow non-RDP connection component startup

RDS Has a built-in session manager that defines how to distribute CPU/DISK resources per each connection, depending on the connection type (RDP, IE, SQL, MMC).

 

It uses a flag called TS Fair Share, which prioritizes different sessions and allocates resources dynamically.

Meaning, that some sessions will run fast (Like native RDP and IE) because they will get prioritized and some not (Like TOAD, PLSQL, Checkpoint, or Any local customer app), this breaks our PSM behavior as our sessions are predetermined and shouldn't be treated as adaptive programs.

  1. Login to PSM machine -> Run (windows + r) -> type regedit
    1. HKEY_LOCAL_MACHINE → SYSTEM → CurrentControlSet → Services → TSFairShare → Disk → "EnableFairShare" 1 → Change to 0.

    2. HKEY_LOCAL_MACHINE → SYSTEM → CurrentControlSet → Services → TSFairShare → NetFS→ "EnableFairShare" 1 → Change to 0.

  2. Solution # 424
Slow connection from PSM to target servers requiring NLAPSMs are generally installed on a server that will not have access to the internet. As a result, they cannot perform automatic root certificate updates regularly. If they cannot update root certs, they will continue to attempt to do this update on each RDP connection - causing a 15-30 second timeout on each connection attempt.

See Solution 00003843

The PSM will go to the internet to automatically update root certificates using the Windows Update website when connecting to NLA-enabled Windows servers.

When there is no internet connection from the PSM server (especially first installed), you may experience extremely slow RDP from PSM to NLA-enabled Windows Servers. Direct RDP client to these servers takes 2 seconds to establish, through PSM it runs into 20+ seconds or even more.

On the PSM server, use GPEDIT.msc to change "Turn off Automatic Root Certificates Update" to "Enabled" and then reboot PSM.
 

Location:

Computer Configuration | Administrative Templates | System | Internet Communication Management | Internet Communication settings

Rate this article:
  • 7348 Views
  • 0 comments
  • 0 Likes
Article Dashboard
Version history
Last Updated:
‎11-01-2025 10:00 PM
Updated by: