1GB Memory: "error establishing a database connection"

Posted August 10, 2015 2.9k views

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

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.

Submit an Answer
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*