Score:0

Websites getting down every day on VPS Server

cn flag

I have a VPS server using 4 CPU and 4GB RAM shared across 10 PHP websites of which 2 website(website and set cron jobs) are using sometime more than 6 CPU core of 4 CPU core available. And because of that all websites getting down and show this error "508 Resource Limit Is Reached".

The website is temporarily unable to service your request as it exceeded resource limit. Please try again later.

What should I do for this issue relative to one site won’t affect to other? All websites are getting down daily basis. Please help me. Thank you.

When sites are getting down, at that time server load is high.

Support people said that if you increase the RAM 4GB to 8GB, then we see how it handles the server. but they didn't provide actual solution.

jp flag
Dom
You must try to found what is the load due. Is it a very big cron job or an external fault (like too much connections on your PHP from hackers) ? When you have found the problem, you will be able to found a solution. Look at logs too.
Score:1
ar flag
bob

In short:

At peak loads your server does not have sufficient resources to meet all demands and because all sites run on the same server, they all suffer.

Typically you add monitoring to find out which processes, site(s) and/or system components are the cause(s) and which resources are the limiting factor.

Then you can either:

  • add more resources (upgrade your VPS with more RAM, CPU, faster disks etc.)
  • optimise your code so it makes better use of the existing resources (for example: tune database queries, add caching etc.)
  • add resource limits to each individual process and/or site so they won't starve the other processes.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.