Results 1 to 7 of 7
Thread: modify the max users online ?
-
08-16-2009, 05:31 AM #1Web Hosting Master
- Join Date
- Mar 2009
- Posts
- 3,700
modify the max users online ?
Hi,
my server is centos with cpanel,
the server load is about 0.* ~ 1.*,
and the ram use not more than 1G (my total is 2G)
the ftp/cpanel/whm...all work well,
but the httpd will fail sometime,
i wonder if there are too the max users on line setting is too low ?
is anyway to check why it is?
thanx
-
08-16-2009, 06:46 AM #2Newbie
- Join Date
- May 2005
- Posts
- 25
If I were in your place, I would go to WHM and look at "Apache Status" page. This page will give you an idea of the usage. If "." or open slots are not available, then I would go and increase the "ServerLimit" and "MaxClients" values to my satisfaction. Please keep in mind the changes will effect the server's RAM usage and performance.
Best RegardsKumar Kommukuri
Reliable-Host.com Shared , Resellers, and Dedicated Servers
Host91.com Proud Hosting Provider for Google Redesigned Project
-
08-16-2009, 07:16 AM #3Web Hosting Master
- Join Date
- Jun 2003
- Location
- World Wide Web
- Posts
- 581
What are the current values being set for MaxClients and ServerLimit . You can see this in the file /usr/local/apache/conf/httpd.conf . See if there is anything shown under apache logs
tail -f /usr/local/apache/logs/error_log
Also paste the result of below two commands
root@test [~]# netstat -plan | grep :80 | wc -l
and
root@test [~]# ipcsSupportExpertz.com - the name says it all!
Managed Cloud Servers
Server Management and Monitoring
24x7 outsourced customer support
-
08-16-2009, 09:50 AM #4Junior Guru Wannabe
- Join Date
- May 2009
- Posts
- 31
Hello,
MaxClients are the total number of concurrent connections. This should be set to a reasonable value. I suggest using this formula to determine the right value for your server.
MaxClients = 150 x RAM (GB)
So for 2 GB of RAM set this value to 300.
-
08-16-2009, 09:56 AM #5Junior Guru Wannabe
- Join Date
- May 2009
- Posts
- 31
There is no reason for you to set it any higher unless you have a specific problem with this value. A high value can lead to a complete server hang in case of a DOS attack. A value too low can create timeout problems for your clients if the limit is reached.
-
08-16-2009, 11:18 AM #6Junior Guru Wannabe
- Join Date
- Aug 2009
- Posts
- 38
Drop your KeepAliveTimeout value to something more reasonable than the 15 second default value. Generally, a value of 3-5 is a good start. Most of the time, this is plenty for a client to make a sub request under the same connection without the process hogging system resources while it is doing nothing.
-
08-16-2009, 01:02 PM #7Web Hosting Guru
- Join Date
- Jun 2008
- Location
- India
- Posts
- 266
could you paste your httpd configuration settings here?
Ranjith
Light travels faster thn sound.This is why some people look bright until you actually hear them speak
Similar Threads
-
Online Users
By Timelord_ in forum Web HostingReplies: 4Last Post: 07-03-2008, 06:14 PM -
Users online?
By Jona102190 in forum Programming DiscussionReplies: 2Last Post: 06-27-2007, 01:43 PM -
no of online users
By ranjitbhar in forum Dedicated ServerReplies: 3Last Post: 11-26-2004, 10:00 AM -
ASP Active Users or Online Users Script
By Abdillahi in forum Programming DiscussionReplies: 1Last Post: 09-12-2003, 03:02 PM -
free new online users utility, displays who's online & where, we need your comments
By DDM in forum Web Site ReviewsReplies: 0Last Post: 04-14-2001, 07:40 AM