Hi, I have an Ubuntu server with 512 MB Memory and 20 GB Disk.

It is currently running Ngninx and one Wordpress site, and constantly running out of memory.

I have also created a swap file, but it doesn’t help. It stills runs out of memory.

I am out of ideas and articles to read. Please help!

3 comments

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.

×
1 answer

This question was answered by @tagin:

Is mysqld running out of memory?

You might be getting hit with XML-RPC attacks (seems to be a popular thing these days), which cause the out-of-memory condition.

See these two links:
https://www.digitalocean.com/community/questions/error-establishing-a-database-connection-wordpress
https://www.digitalocean.com/community/tutorials/how-to-protect-wordpress-from-xml-rpc-attacks-on-ubuntu-14-04

View the original comment

by Jon Schwenn
WordPress is a popular and powerful CMS (content management system) platform. Its popularity can bring unwanted attention in the form of malicious traffic specially targeted at a WordPress site. There are many instances where a server that has not been protected or optimized could experience issues or errors after receiving a small amount of malicious traffic. This guide will show you how to protect WordPress from XML-RPC attacks on an Ubuntu 14.04 system.
Submit an Answer