LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

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

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


Hello,
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
231
server# ps -aux | grep -c mysql
2
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
stickman
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.
 
  


Reply


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


All times are GMT -5. The time now is 02:22 AM.

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