bash: fork: Resource temporarily unavailable - Slowing down server

mlopez

Well-Known Member
Dec 17, 2020
54
7
8
Maldonado - Uruguay
cPanel Access Level
Root Administrator
Twitter
Hello,

When I try to connect through ssh and became a specific user I get this bash error.

I read this thread and tried the solution presented by ispro but when I run the script I get this errors:

Bash:
1 out of 1 hunk FAILED -- saving rejects to file bashrc.rej
1 out of 1 hunk FAILED -- saving rejects to file profile.rej
1 out of 2 hunks FAILED -- saving rejects to file limits.csh.rej
1 out of 1 hunk FAILED -- saving rejects to file limits.sh.rej
What am I doing wrong? And why is this user has this error in the first place?

In this user account is a WordPress site and it's running too slow, slowing down all server too.

Can you help me debug this to solve this performance issue?

Thank you in advance
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,418
999
313
cPanel Access Level
Root Administrator
Hey there! I can't comment on why those specific commands aren't working properly as that script is not something we test and is now nearly 13 years old. Could you try disabling the Fork Bomb Protection in WHM to see if that has any effect on this behavior?

As far as the WordPress slowness, do you see the user executing too many database queries? You could check this by running "mysqladmin proc status" on the command line of the server to see the database calls in real-time.
 
  • Like
Reactions: mlopez