Which settings schould be changed to lower apache CPU usage and use more RAM

apache-2.2cpu-usagehttpd.confkeepalivememory

On our CentOS 6 server, we have now a lot of CPU overload, while our RAM is almost not used.

KeepAlive is set to "on" because we have some AJAX elements on your website and serving many files such as images, etc…

Do you have some recommend settings for me to reduce the apache CPU load? Like said, we have a lot of free RAM on this server, but the CPU power is weak.

Best Answer

Would you accept "fix the programming or get adequate hardware"?

YOu can generally not relplace CPU with RAM - normally too little RAM means swapping which means little CPU utilization, but it does not work the other way.

For me it looks like "proper debugging and optimization based on competent developer knowledge and the use of a profiler" is in order now, this is not a sysadmin issue.