PSMP Connection failed.Reason:Connection Reset by peer

PSMP Connection failed.Reason:Connection Reset by peer

164
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 13:02 PM


Symptom


User try to make a new connection but when the connection count reaches 150 it randomly drops connection by throwing error stating:
"packet_write_wait: Connection to xx port 22: Broken pipe" or "connection reset by peer"


Environment


11.3;11.4;11.5;11.6;11.7;12.1;12.2;12.6;12.7;13.0 Privileged Access Manager (PAM, self-hosted);Privilege Cloud PSMP
PSMP


Cause


The nproc (number of process) limit for PSMConnect user is 150 in the PSMP Server.
 
This limit has been reached by the user PSMConnect, so the user is unable to create a new process.
 
To check that, you can run the following command:
 
[root@PSMP_Server ~]# su - PSMConnect (When we try this after the maximum limit is reached in the PSMP server)
su: cannot set user id: Resource temporarily unavailable


Resolution


Increased the nproc limit to 1024 for PSMConnect user.

In this file /etc/security/limits.conf
 
@PSMInternalUsers nofile 16384
@PSMInternalUsers hard nofile 32768
@PSMInternalUsers soft nproc 1024
@PSMInternalUsers hard nproc 1024
 
To track the number of PSMConnect processes in the PSMP server, use the below command:
 
ps -ef | grep PSMConnect | wc -l


Additional Information


Details

SYMPTOM:
User try to make a new connection but when the connection count reaches 150 it randomly drops connection by throwing error stating "packet_write_wait: Connection to xx port 22: Broken pipe" or "connection reset by peer"
 
PROBLEM:
The nproc(number of process) limit for PSMConnect user was 150 in PSMP_Server. This limit has been reached by user PSMConnect,
so user unable to create new process.
To check that you can run the following command:
[root@PSMP_Server ~]# su - PSMConnect(When we try this after the maximum limit reached in PSMP server)
su: cannot set user id: Resource temporarily unavailable
 
SOLUTION:
Increased the nproc limit to 1024 for PSMConnect user.
​
[root@PSMP_Server ~]# cat /etc/security/limits.conf | grep PSMConnect
 
PSMConnect soft nofile 16384
PSMConnect hard nofile 32768
PSMConnect soft nproc 1024
PSMConnect hard nproc 1024
 
To track number of PSMConnect process in the PSMP server use the below command
 
ps -ef | grep PSMConnect | wc -l



Actions
  • Print
  • Copy Link

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