Apache thread MEMORY Usage

apache-2.2memorymemory usage

I am facing an issue over the site i am working on, even in very low load of around 10-20 page views per second, the CPU usage maxes out, with all cores running at 100% plus the apache thread memory size keeps on increasing.

We have a server having 4 cores and 34GB as RAM, after some time the memory max out and when i look at apache thread using top command, i can see most of the apache threads in sleep mode but each occupying around 500-600 MB memory.

Its like apache thread is not releasing memory even going into sleep.

Best Answer

CPU load depends on application logic, regarding RAM - RES part is inaccurate and won't show you the real usage of physical memory. I recommend you to test memory with https://raw.github.com/pixelb/ps_mem/master/ps_mem.py and check application logic.