Results 1 to 5 of 5
-
07-28-2009, 03:41 AM #1Newbie
- Join Date
- Jul 2009
- Posts
- 6
Maximizing Linux (CentOS) for Maximum Concurrent users
Hello, I am running lighttpd and eccelerator.
I have stripped the php-cgi.
I have tried forking anywhere from 50 to 300 to 1000 fastcgi children with PHP_FCGI_CHILDREN (through lighttpd, I'll attempt to do with same with spawn-fastcgi and fpm)
Server stats:
Intel Core i7 920
12GB DDR
250GB 7.2k RPM SATAII 16MB Cache
I am using to lighttpd's lighttpd-status to estimate concurrent connections.
When I refresh the panel, it shows that there are around 100-150 connections and around 150 requests/s in the last 5 seconds.
My vmstats show that CPU is 98% idle. Blocks written/read is neglible. MySql key_buffer set to 2gb and I'm pretty sure it's not mysql. The overwhelming majority of requests do not access mysql.
EDIT: Uh oh, I just realized that tcp_mem could be a huge bottle neck.
I just set it to:
net.ipv4.tcp_mem = 4096000 87380000 4194304000
It was previously:
net.ipv4.tcp_mem = somenumber somenumber 393,216 <<<--- WTF!!!!!!!
x1000 for my read values (it's an access server only). I can't benchmark the server right now so let me know if you have any suggestions besides this. I do think that this was the problem. When under load images could not be accessed either.
-
07-28-2009, 04:02 AM #2Newbie
- Join Date
- Jul 2009
- Posts
- 6
Please let me know of any sysctl or other values I should look at. I think I'm okay on Mysql and web server config. I'm mainly interested in optimizing the OS.
Also, has anyone had experience with the LiteSpeed LSAPI server? Was the performance increase significant. Let's say I'm buying 12 servers running lighttpd, would it bring that down to 8 in your opinion? Also, do you know if their licensing when it says, 8-CPU etc, is it cool to run it on 8 different computers with 8 CPUS or is it 8 CPU in one box. I just sent a question to contact but thought'd I'd ask.
-
07-29-2009, 12:30 AM #3Junior Guru Wannabe
- Join Date
- Aug 2004
- Location
- Indonesia
- Posts
- 34
litespeed is a fast webserver. i personally also using litespeed. but the license it's to expensive.. try nginx or cherokee webserver
Wowtutorial.org | IT Server Tutorials For Dummies
-
07-29-2009, 01:37 AM #4Junior Guru
- Join Date
- May 2009
- Location
- On a Speck!!!!!
- Posts
- 216
nginx shall be a better choice.
-
07-29-2009, 10:04 AM #5Support Facility
- Join Date
- Jun 2009
- Posts
- 2,335
Yeap, Nginx is best for high performance, stability, simple configuration, and low resource consumption.
Similar Threads
-
How many concurrent users?
By j0sh78 in forum Dedicated ServerReplies: 6Last Post: 11-26-2008, 05:42 AM -
Linux Server spec and configuration for 1000 concurrent users?
By giavinh in forum Dedicated ServerReplies: 18Last Post: 11-19-2007, 02:08 PM -
Concurrent Users vs. Total Users
By ty2000 in forum Web HostingReplies: 4Last Post: 01-04-2007, 06:32 PM -
Concurrent Users?
By sharewareislandCO in forum Web HostingReplies: 11Last Post: 08-30-2006, 12:25 PM -
400 concurrent users?
By torwill in forum Dedicated ServerReplies: 10Last Post: 10-03-2002, 05:55 AM