The droplet was created with WordPress on Ubuntu 14.04 image.
I’ve had a WordPress site (with probably zero traffic) running for a while now. Suddenly I noticed it reported a database connection error, fair enough. So I checked:
“service mysql status”
That returned stop/waiting, fair enough. Easy to get back running. It then crashed again eventually, and so forth.
I read up and noticed comments on creating a swap, which I then did exactly according to this guide.
“free -m” shows:
total used free shared buffers cached
Mem: 490 485 4 12 0 20
-/+ buffers/cache: 464 25
Swap: 4095 897 3198
The result of adding swap? My droplet is sometimes super slow while accessing it via SSH, i.e. typing into it lags. Never had this before, so I assume it is related. Also, the website doesn’t respond any longer. Ever. Sometimes the browser gets past connecting, but never past waiting.
What went wrong? Which logs should I check?
Surely a WordPress without almost no traffic shouldn’t have issues on even the smallest droplet. I’ve previously had a few sites running on the 512MB perfectly fine.
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!
This comment has been deleted
This comment has been deleted
Yeah, might make it 512M.
Do you mean swappiness, or what by priority? The “sudo swapon -s” returns “-1”. Swappiness I did according to the guide I found about Ubuntu swap here on DO.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.