3

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.

Andrei Nikolaev
  • 85
  • 1
  • 2
  • 5

2 Answers2

1

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

Andrew Schulman
  • 8,561
  • 21
  • 31
  • 47
  • 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. – Andrew Schulman Jan 15 '15 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).

Vikelidis Kostas
  • 927
  • 1
  • 6
  • 15