Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-28-2004, 08:10 AM   #1
Registered: Jun 2004
Posts: 37

Rep: Reputation: 15
Optimizing Apache for performance on FreeBSd !!

My clients are complaing for slow servers .There is no network speed problem or mysql problem as I already optimizade mysql ..
But still server is running slow..
Here are some of my parameters:

Check this:

server# ps -aux | grep -c http
server# ps -aux | grep -c mysql
server# top d 1
last pid: 61284; load averages: 0.41, 0.45, 0.39 up 50+16:19:21 08:03:55
309 processes: 1 running, 308 sleeping
CPU states: 18.8% user, 0.0% nice, 11.5% system, 1.0% interrupt, 68.8% idle
Mem: 319M Active, 165M Inact, 451M Wired, 35M Cache, 111M Buf, 16M Free
Swap: 2048M Total, 12M Used, 2036M Free

And in httpd.conf file I have:
Keepalive on
MaxKeepAliveRequest 500
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 230
MaxRequestsPerChild 0

How should I tune this?
Thank you
Old 07-28-2004, 09:07 AM   #2
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Try to adjust the MinSpareServers and MaxSpareServers to appropriate values that minimizing the process forking and existing. You'll need to watch the number of similtaneous request to get these values. Have you investigated why Apache is slow? It could be something like slow hostname looks or disk reads for static content.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Optimizing Apache SiLiCoN Linux - Networking 2 06-15-2005 02:56 AM
Optimizing the performance of a Via S3 ProSavage8 Video Card Adrohak Linux - Hardware 0 11-02-2004 06:08 PM
optimizing apache alaios Linux - Networking 0 10-16-2004 12:08 PM
Optimizing performance with hdparm Twiggy794 Linux - Hardware 1 01-14-2004 08:34 PM
Apache optimizing Hamma Linux - Software 8 12-08-2003 07:44 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration