Report this

What is the reason for this report?

Error Establishing a database connection issues

Posted on June 16, 2017

I’m relatively new to using digital ocean and VPS hosting in general. I recently used the “how to debug Wordpress” tutorial and based on the results, I’m running out of memory.

I don’t see how that’s possible. It’s a single page website with no traffic. The server has 1g of memory and 30gb of disk space. Furthermore, I have multiple websites running on the 5$ version of DigitalOcean that don’t run into this issue even though they have many pages and receive some traffic.

Is there any way for me to see what’s eating up all my memory?

Also, I followed the instruction on how to turn off XML-RPC so that won’t be the cause.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey, everyone, I’m back. So basically I’m still ocasionally running into the same problem. I have five different digital ocean servers. Three of them run perfectly fine on $5 servers with more traffic and web pages. There’s absolutely no reason this $10 server should be running out of memory.

I’ve been routinely monitoring htop and at no point does my memory reach the upper limits. However, for some reason, my error log is showing my server as running out of memory.

I even went so far as to make a snapshot of my data and create a new droplet, put that snapshot on a new server. This hasn’t made things any better.

It has to be one of my plugins or somehow my database is messed up. I’m considering making a new droplet and recreating my website from the ground up. It’s only a few pages so it won’t take too long. However, I don’t want to have to resort to this.

Watching htop has been helpful. Occasionally I will see spikes in memory and CPU usage to 100%. Unfortunately, I have no idea what I’m looking at or should be looking for.

Hi @semipro

Try installing htop which gives you detailed information about all processes real-time:

sudo apt install htop

Is the site on the $10 using the same theme and plugins as the $5 sites? A single heavy or badly coded theme/plugin can even make a $80 droplet go to a crawl.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.