4

I use apache2 behind nginx on 8 core CPU 48GB RAM server. Now my system uses only 3GB of all memory, but there are high load on CPUs. How can I use my free memory instead of CPUs time?

I also use memcached and xcache.

2
  • 7
    Your web applications may actually be CPU bound and simply don't need the additional memory...
    – HBruijn
    Jan 15, 2015 at 14:29
  • Which OS are you running? Jan 15, 2015 at 14:47

2 Answers 2

1

Well, try allowing more processes to apache. Here are some helpful links:

1
  • 1
    Link-only answers are discouraged on ServerFault, because if the links go dead the answer won't still be useful. Instead, please describe how the OP should allow more processes in Apache. Jan 15, 2015 at 13:10
1

Enable HTTP persistent connections (Keep-Alive) in Apache configuration. In theory this will reduce CPU load (caused by tcp handshaking) and increase memory consumption (in a busy server) as Apache will spawn new worker processes / threads to server new requests.

Of course this is true in a stand alone Apache installation. You have much more variables in your equation (HTTP2 connections, SSL connections, nginx proxy).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .