Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

maniaquiz's avatar

Cannot allocate memory - is it dead?

I have a GoDaddy Linux server running 512 ram. While connecting to the server via ssh, it will display

-bash: fork: Cannot allocate memory

On my cPanel it shows that my server has reached its "Number of Processes" limit. Now, i just wanna ask, will this refresh? like daily? is this just temporary? or I'll just forget about these and just get a better hosting?

0 likes
2 replies
christopher's avatar

Forget GoDaddy and get a real hosting provider.

A good solution is a complete fresh machine with Laravel Forge. Some good providers would be DigitalOcean, Linode, Vultr, AWS etc. You can also use any other virtual / dedicated server with a fresh install of ubuntu.

With Forge its pretty easy to setup the server and sync your git repos.

Because your problem: What does the logs say? Do you really run out of memory? How many processes do you have? Which process requires the most of RAM? Do you have enough free disk space? etc.

1 like
maniaquiz's avatar

Thank you for your reply @christopher , which log are you referring to? when i try to connect via ssh, i get a

/etc/bashrc: fork: Cannot allocate memory

And yes, i don't think i ran out of memory. On my cpanel only the "number of processes" pumped up to 97/100, but I don't think I can see what are these processes are.

Please or to participate in this conversation.