I have a VPS (AMP server), and have 3 accounts (websites) under it. The problem started when my main website stopped working and gave me DB error (cannot connect to db). The other two websites were working but they were very very slow. I connected to my main website account through SSH (putty) and it gave me this error:
-bash: fork: retry: Resource temporarily unavailable
Then, I logged to the cPanel of my account and went to check the database with phpmyadmin, but it was continuously asking for log in, and after few seconds it log out...
I logged to my root through SSH with no errors, checked the space and I had more than 50% free space.
I logged into WHM (root) and checked the database with phpmyadmin, I noticed that the session table is abnormally very big, and hundreds of rows are added every second. I suspended the account, and emptied the sessions table, and then unsuspend the account, the table started to fill up at the same rapid rate. I rebooted the whole system, but the problem stayed. I resuspended the account, and checked the two other websites, they were working fine. I have no clue what caused the problem, and how to solve it.