Status
Not open for further replies.

Rocker09

Active Member
131
2009
7
10
UUHreuj.png



I am having high ram usage .. its a image hosting site, when i took the screenshot i had 50 users online.. I have to reboot everyday to get ram usage back to normal..


Cached shows 1648 mb , when i reboot its 0..

Can anyone help me fix this ?

Thank u <3
 
8 comments
Looks like a bad apache (webserver) config playing up.

Please provide your top , when the memory usage is high.
Also, is your script using mysql ?, if yes then tune mysql too.
 
Are you currently using the mod_prefork or mod_worker for apache?

Mod_Worker would cause apache to open a process for each upload depending on your setup. Switching to Prefork would reduce memory usage and also mysql can also play role in the issue you just need to take a look at the processlist in ssh and see if you are getting constant queries of something.
 
There is the option to view in WHM something like processes which take high memory, check it out and you will see the script which takes high memory or CPU.
 
There is no need to take action. "cached" RAM is available to every process when needed. Why it's so high? I guess because every picture will be written into it. If a user views a picture, it will be read from the fast cached RAM (if available) rather than from the slower harddisk.

Or are there problems like slow page loads etc?
 
Kloxo needs some tweaks else it overloads most of the times ; trying changing your webserver to nginx or lighttpd , it may help you to take your load down instantly . Update your kloxo to latest version , if going with nginx then install xcache for intact performance , check if your script is using some heavy cron jobs ; schedule them accordingly .

Hope it helps , else throw me a PM i'll help .

Regards
Bharat
 
Status
Not open for further replies.
Back
Top