Portal Home > Knowledgebase > Articles Database > Server Confusion please help
Server Confusion please help
Posted by Bustin, 06-22-2011, 12:28 AM |
Hi Everyone! I'm currently hosting a video apache ,lighttpd, php, mysql website on a dedicated server which gets around 4k-5k a day visits but i'm worried something maybe going wrong with it... it seems to be using almost 8 gigs of ram 24/7 and averages at 35-40 visitors minimum and peeks at around 120-150 any ideas how I can lower the amount of ram being used? I reconfigured httpd and it made it run better but didn't lower ram usage and advice is greatly appreciated!!
also doesn't seem to be a ddos attack
-quadcore 8 gigs ddr3 ram -
Thanks In Advance
|
Posted by activelobby4u, 06-22-2011, 12:55 AM |
whats the process using the memory ?
|
Posted by Bustin, 06-22-2011, 01:04 AM |
Seems to be httpd from what I see.
3724 mysql 15 0 246m 24m 4348 S 18.7 0.3 14:10.15 /usr/libexec/mysqld
11536 apache 15 0 283m 14m 3420 S 4.3 0.2 0:00.32 /usr/sbin/httpd
11728 apache 15 0 283m 15m 3444 S 4.3 0.2 0:00.35 /usr/sbin/httpd
11738 apache 16 0 283m 15m 3512 S 3.6 0.2 0:00.38 /usr/sbin/httpd
10753 root 18 0 277m 13m 6936 S 1.6 0.2 0:00.93 /usr/sbin/httpd
5638 root 16 0 12892 1288 828 S 1.3 0.0 0:42.16 top
11877 root 15 0 12892 1248 824 R 1.3 0.0 0:00.49 top -c
11731 apache 15 0 280m 12m 3192 S 0.3 0.2 0:00.08 /usr/sbin/httpd
11911 apache 21 0 277m 7888 924 S 0.3 0.1 0:00.01 /usr/sbin/httpd
11920 apache 21 0 277m 7888 924 S 0.3 0.1 0:00.01 /usr/sbin/httpd
1 root 15 0 10368 696 580 S 0.0 0.0 0:00.10 init [5]
let me know if this helps....
|
Posted by ddrager, 06-22-2011, 08:32 AM |
Are you mainly serving static video files? Apache is going to use a lot of memory while serving out large files to that number of users, you might want to consider changing your architecture a bit and going with a streaming server to help with that.
|
Posted by net, 06-22-2011, 08:40 AM |
Moved > Hosting Security and Technology .
|
Posted by Bustin, 06-22-2011, 08:44 AM |
Yes around 8,000 videos so far. By that do you mean perhaps a multiserver or do you know of some sort of load balancer?
But what strikes me as odd is when I restart and have no users it still will rise to this 7.8 gig mark so if I someone uploads a video it will lock up and need to be physically restarted.
something seems wrong here if it does this with no users online.
website has been running for over a year and this issue occurred 50 days ago and haven't had any luck or good answers to this problem.
i hope to find someone who can help me understand this issue.
Thanks so much everyone
|
Posted by m4rc3, 06-22-2011, 06:30 PM |
can you shared with us your current apache config?
Just the startservers, maxchild and related configs would be enough.
|
Posted by Bustin, 06-23-2011, 06:58 AM |
sure here is the current setting but it was still having this issue when it was the apache default....
StartServers 32
MinSpareServers 12
MaxSpareServers 35
ServerLimit 550
MaxClients 550
MaxRequestsPerChild 6000
StartServers 4
MaxClients 550
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
Thanks in advance
|
Posted by darksoul, 06-23-2011, 07:08 AM |
Could be a memory leak. Minimize MaxRequestsPerChild to 50 or so
|
Posted by Bustin, 06-23-2011, 10:12 AM |
if its a memory leak how can I go about correcting this problem?
I used valgrind and it said no possible leaks but im still a noob so dont trust what I did or saw
|
Posted by Bustin, 07-06-2011, 09:32 PM |
Hi Everyone Found out the issue to this. I was not httpd at all. The Problem happened to be " drop cache disabled " who would have guessed that....... hehe
|
Add to Favourites Print this Article
Also Read