Apache Server configuration support - Apache 2 Tuning

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > May 2007 > Apache 2 Tuning





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache 2 Tuning
Antoni

2007-05-08, 1:20 pm

Hello,

I have a dedicated server with a 30 Mbps connection. My domain
www.upblogger.com receives 20K visitors/day. This domains serves
videos like YouTube does. The web page can take very long to load. Can
this be due to the 30 Mbps connection or changing Apache's config
would tune everything up?

I changed these values:

MaxKeepAliveRequests 0

Thanks!

shimmyshack

2007-05-08, 1:20 pm

On May 8, 6:05 pm, Antoni <antonimassom...@gmail.com> wrote:
> Hello,
>
> I have a dedicated server with a 30 Mbps connection. My domainwww.upblogger.comreceives 20K visitors/day. This domains serves
> videos like YouTube does. The web page can take very long to load. Can
> this be due to the 30 Mbps connection or changing Apache's config
> would tune everything up?
>
> I changed these values:
>
> MaxKeepAliveRequests 0
>
> Thanks!


there is no use of caching, which would help reduce the number of
connection attempts, which in turn might reduce intial latency

Armand Brahaj

2007-05-09, 7:24 am

shimmyshack wrote:
> On May 8, 6:05 pm, Antoni <antonimassom...@gmail.com> wrote:
>
> there is no use of caching, which would help reduce the number of
> connection attempts, which in turn might reduce intial latency
>

Personally I think that for Video Downloading a 30MBps server and with
20K users is overloaded.
Check the bandwidth statistics and I assume that your bandwidth channel
is always full!
Joshua Slive

2007-05-09, 1:24 pm

On May 9, 8:14 am, Armand Brahaj <a_bra...@yahoo.com> wrote:
> shimmyshack wrote:
>
>
>
>
>
>
> Personally I think that for Video Downloading a 30MBps server and with
> 20K users is overloaded.
> Check the bandwidth statistics and I assume that your bandwidth channel
> is always full!


Also check to make sure you haven't hit MaxClients. See the server-
status handler.

In general, serving very large files like that doesn't tax apache very
much. So I agree that most likely problem is bandwidth limits.

Antoni

2007-05-10, 1:32 pm

It seems mod_bw was eating up my system resources somehow. Has anyone
tested mod_bw or any other bandwidth limiter module for Apache 2?

Thanks

shimmyshack

2007-05-10, 1:32 pm

On May 10, 3:42 pm, Antoni <antonimassom...@gmail.com> wrote:
> It seems mod_bw was eating up my system resources somehow. Has anyone
> tested mod_bw or any other bandwidth limiter module for Apache 2?
>
> Thanks


yeah I've been using mod_bw since august last year on apache 2.2.x
(win32) with no issues.
Here's an excerpt from a vhost config

BandWidthModule On
AddOutputFilterByType MOD_BW audio/mpeg audio/x-mpeg audio/x-mpeg-3
audio/mpeg3
BandWidth all 10240
MinBandWidth all -1
#consider how best to serve this error
BandWidthError 510
ErrorDocument 510 /error/HTTP_SERVICE_UNAVAILABLE.html.var

this just reduces the rate at which mp3's are served from the vhost.

Are you sure it wasn't a connection throttle rather than bandwidth, I
got the feeling that your bw was fine when I was eventually able to
connect, that it was initial latency rather than bw.
Could it have been the case that as mod_bw buffered content for many
users, you hit the RAM limit and started using virtual RAM? When
serving films round the home, the memory usage for the apache child
does oscillate by a few MB which wouldn't happen if you decided to use
shaper to shape your traffic from the server, you would have the added
advantage of having hard and soft limits with shaper (linux)

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com