List Info

Thread: Slow server




Slow server
user name
2006-06-30 08:08:38
Hi,

I am trying to deal with a server that is getting slower and
slower.

Machine is based on a AMD Opteron(tm) Processor 244 with 4GB
memory.

It is running MySQL, and Apache 13 and serving about 400 web
sites
written in PHP.

OK the design of PHP is certainly not the most efficient,
but actually
the server cannot hold 50 simultaneous http connections.

I am wondering:

1) what optimization I should look for in the system

2) as there are many connections comming from search engines
siders
   (90% of all the established connections), I'd like to
limit the
   ressources that spiders are using. One way would be
through IPFW,
   but are there better ways? Is there a way to
limit/prioritize in
   Apache (not that I know any).

Best regards,

Olivier
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Slow server
user name
2006-06-30 11:34:06
Olivier Nicole wrote:

>2) as there are many connections comming from search
engines siders
>   (90% of all the established connections), I'd like
to limit the
>   ressources that spiders are using. One way would be
through IPFW,
>   but are there better ways? Is there a way to
limit/prioritize in
>   Apache (not that I know any).
>  
>
google robots.txt which ought to limit what the spiders look
at (but 
consequently reduces what they index, as well).

Overall, though, your problem sounds more like a piece of
software 
bloating as it runs; the longer it runs the more memory it
consumes.

Does the machine end up swapping?  Try tracking memory
usage.

--Alex




_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Slow server
user name
2006-06-30 15:37:04
 
> 
> Olivier Nicole wrote:
> 
> >2) as there are many connections comming from
search engines siders
> >   (90% of all the established connections), I'd
like to limit the
> >   ressources that spiders are using. One way would
be through IPFW,
> >   but are there better ways? Is there a way to
limit/prioritize in
> >   Apache (not that I know any).
> >  
> >

Lookup mod_security rules for Apache and mod_dosevasive.
mod_evasive will help prevent the spiders from opening many
pages at one time

mod_security has rules to detect some fake spiders and other
bots and block them from the get go. 

Both though will add a little bit of overhead to Apache.

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )