yoniprv
By:
yoniprv

Overload /usr/sbin/apache2 -k start

May 12, 2016 934 views
Apache WordPress PHP Ubuntu

Hi guys,

I currently have a droplet Ubuntu, 1 GB with one wordpress website on it. It does not have many requests.

For some reason (since yesterday), Apache is eating my RAM and CPU.
Htop preview

I already set my apache2.conf to this:

<IfModule mpm_prefork_module>
    StartServers          1
    MinSpareServers       1
    MaxSpareServers       1
    MaxClients           10
    MaxRequestsPerChild   5
</IfModule>

And i still get a CPU op 100% and memory of +-80/90%.

Can you guys help me?

1 comment
  • While it's not unusual for MySQL to take up a lot of memory on a smaller droplet apache becoming a resource hog in this way is not really typical. On apache php scripts being run will fall under apache processes since they are run via mod_php. I would recommend checking on any installed plugins and trying out disabling them one at a time to see if this has any affect on the resource usage.

1 Answer

This question was answered by @ryanpq:

While it's not unusual for MySQL to take up a lot of memory on a smaller droplet apache becoming a resource hog in this way is not really typical. On apache php scripts being run will fall under apache processes since they are run via mod_php. I would recommend checking on any installed plugins and trying out disabling them one at a time to see if this has any affect on the resource usage.

View the original comment

Have another answer? Share your knowledge.