1GB Memory: "error establishing a database connection"

August 10, 2015 921 views
DigitalOcean WordPress CentOS

Hi I am using droplet with 1Gb memory and installed 18 domains and wordpress on it. The domains are fresh and no traffic yet. I found "error establishing a database connection" for all domains today. I don't know the best solutions because I just new user here. Can someone tell me the reasons of my problem?
Now I just upgrade droplet to 2GB memory and works fine. But I still want to know what the reasons, is 18 fresh domains with no traffic too many for 1GB droplet?

1 comment
2 Answers

Check syslog for OOM killer.

The following command will search all of your syslog files (included compressed and rotated ones from previous days or weeks) for the OOM killer reporting it killed a process due to out of memory:

zgrep Out /var/log/syslog*
Have another answer? Share your knowledge.