The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Web Programming, Web 2.0 and Mashups
.
google unix.com



Web Programming, Web 2.0 and Mashups Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
MySQL Tuning Tools with mysqltuner.pl and tuning-primer.sh Neo Web Programming, Web 2.0 and Mashups 3 12-06-2008 01:14 AM
tuning naresh.sun SUN Solaris 4 05-21-2008 02:25 AM
Tuning AIX IO theerthan UNIX for Advanced & Expert Users 1 04-06-2008 10:12 AM
SAS Tuning alex blanco UNIX for Advanced & Expert Users 1 07-10-2007 01:08 PM
Tuning Apache edkung UNIX for Advanced & Expert Users 2 08-13-2003 02:30 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-14-2009
r00t4u r00t4u is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 9
Exclamation Apache Tuning

Hi Friends, This regarding tuning apache. I am running 100+ LAMP on VPS. But few of them are crashing becoz it reaches to the MaxClient Limit. I thought of Tuning. Here are the specs:

OS: OpenSuse 10
Apache: Apche/2.2.8
PHP: PHP 5.x
RAM: 1GB
Assuming 80% of it has been occupied by webserver (apache)


Apache Settings: These are pretty old settings. I have doubt that these needs to be recompile.

# prefork MPM
StartServers 50
MinSpareServers 5
MaxSpareServers 100
ServerLimit 50
MaxClients 50
# worker MPM
StartServers 50
MinSpareThreads 5
MaxSpareThreads 100
ThreadLimit 128
MaxClients 50
ThreadsPerChild 75
MaxRequestsPerChild 10000

whenever i run
ps -eLf|grep httpd |wc -l
It alwasys give me = 52 and in the peak hours something apache crashes saying reached the Maximun Client size.

No as per the thumb rule.

MaxClients ≈ (RAM - size_all_other_processes)/(size_apache_process)
which is like
MaxClients ≈ (RAM dedicated to Apache)/(Average of apache process)
Numbers:

MaxClients ≈ Total Ram 1GB - 20% for other process/ Average of RSS (1226304) in KB offcource.

(Note: For RSS i an doing ps -ylC httpd --sort:rss, and calculating the average of all 52 process)

Now, Here is the problem when i do all this calculation, i end up with a result that i am using less RAM, which is quite a numb because these servers are running for last few years with no problem.

So, i was wondering if you guys can give me some direction for the tunning..thasn that would be help.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0