Portal Home > Knowledgebase > Articles Database > RAM usage higher than normal


RAM usage higher than normal




Posted by mealto, 05-25-2008, 02:20 AM
Normally on our slowest day of the week, RAM usage is around 20%-25%. We see RAM usage increase as more users hit the site, thus, RAM usage historically, has been tied to public bandwidth. Recently, RAM usage has been hitting 32%-35% on our slowest day of the week (as indicated by bandwidth usage). I am guessing that something is keeping apache threads opened and/or a cron-driven process which invokes httpd isn't finishing for whatever reason. This is only my guess after some research and looking at whm reporting and top. With my limited server knowledge, these are only my guesses. 1. What could be causing this increase RAM usage? 2. How do we find out what is causing it? 3. We did recently installed the OpenX ad server but there are no ads being served, we just implemented the CRON job for testing purposes. Maybe this could be the cause but how do we tell? Any help would be great.

Posted by apollo, 05-25-2008, 03:13 AM
Maybe some memory leak in some software or module you are running. I am sorry but from your description it will be not possible to give 100% answer where is the problem. You should play around with maximum/minimum apache threads waiting for requests to be served; check out KeepAlive settings as well - there could be many reasons...

Posted by mealto, 05-25-2008, 03:41 AM
I am about to tweak some KeepAlive settings. What do you think of these to decrease the number of sleeping tasks in top results. KeepAliveTimeout 3 MaxClients 256 (currently, our server management company has it set to 1800) MaxRequestsPerChild 1000 Thoughts?

Posted by gnusys, 05-25-2008, 12:13 PM
Yes Reduce MaxClients to 256.Apache httpd is a bulky program Run top ;Press Shift+m and you will know program taking up most RAM

Posted by mealto, 05-25-2008, 01:58 PM
Thanks. top shows quite a few nobody using up RAM. Also, 158 out of 160 tasks were sleeping. 1. Will restarting apache resolve this issue? 2. Will dropping KeepAliveTimeout to 3 from 15 help with this issue as well? Any other tips?

Posted by gnusys, 05-25-2008, 10:28 PM
Yes, try disabling the KeepAlive for sometime by editing httpd.conf KeepAlive Off and restart apache enable mod_status in apache and monitor the server using http:///server-status Also check the logs for any abnormal usage



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Mysql Change_db Help! (Views: 502)