[PSM] PSM Service Fails to Start (Error 1053) or Connections Time Out (PSMSR074E) Due to High MaxConcurrentTSSessions
Symptom
An excessively high 'MaxConcurrentTSSessions' setting causes failures in one of two distinct scenarios:
Scenario 1: PSM Service Startup Failure
- The Cyber-Ark Privileged Session Manager service fails to start or gets stuck in a "Starting" status until the server is rebooted.
- Windows Service Control Manager throws the following error:
"Error 1053: The service did not respond to the start or control request in timely fashion."
- PSMTrace.log records the error: "Thread creation failed."
Scenario 2: Session Connection Failures (Black Screen)
- Users attempt to initiate a connection via PSM, but it hangs on a black screen followed by a timeout pop-up.
- PSM Console / Trace logs record the following error message:
"PSMSR074E PSM listener failed to handle message. Error: PSMSR122E Failed to get the logged-on "<username>" from "session <ID>" code: 127."
Environment
14.2;14.6;15.0;15.2 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Privileged Session Management (PSM);Privilege Cloud PSM
- Products: Privileged Access Manager (PAM, self-hosted), Privilege Cloud
- Components: Privileged Session Manager (PSM), Password Vault Web Access (PVWA)
- Configuration Parameter: MaxConcurrentTSSessions
Cause
The `MaxConcurrentTSSessions` parameter defines the maximum number of concurrent Terminal Services sessions that the PSM server can handle.
When this value is configured higher than the operating system or hardware resources can support, the PSM service attempts to pre-allocate or spawn more threads than available. This results in either thread creation failures during service startup or an inability for the PSM listener to process logged-on user sessions for active connections.
Resolution
To resolve this issue, reset the `MaxConcurrentTSSessions` parameter to its default value (100) or a lower sustainable limit:
1. Log in to PVWA with an Administrator account.
2. Navigate to Administration | System Configuration | Options.
3. Expand Privileged Session Management | General Settings | Server Settings.
4. Select 'MaxConcurrentTSSessions'.
5. Set the value back to 100 (or lower if hardware resources require).
6. Click 'Apply' and 'OK' to save changes.
7. Restart the Idira Privileged Session Manager (PSM) service on the PSM server.
Note: If the PSM service is stuck in the "Starting" state, terminate the process (`CAPSM.exe`) via Task Manager or reboot the server before starting the service.