Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users
- Concurrent connections limit - ulimit
 

Index | Next | Previous | View Flat


navid at navid

Aug 21, 2011, 10:27 PM


Views: 712
Permalink
- Concurrent connections limit - ulimit

Hi everyone,


I have a little problem that no matter what I do, I can't increase the
concurrent web requests and connections to my Cherokee.


As you will see below, no matter what I do, the maximum number of file
descriptor for user www-data remains at 1024 and poor Cherokee will not
be able to service more than 1024 concurrent connections ... could you
let me what I am missing here?


I have also modified Cherokee to report concurrent connections and the
logs will confirm above as well:

LOG::: CPU42% LdAvg 0.240000 AvgRspT 20 TtlConns 911 TtlHitThrshld 10
MinRspT 3 MxRspT 317 Duration 1009 Thrshld: 200


Above log tells us that the load average of system is 0.24 (during last
60 seconds). And CPU utilization is around 42%. And Average response
time is 20 ms and we have had 911 connections/requests within the last
1009ms. Acceptable response time threshold is 200ms and 10 connections
exceeded that limit while the minimum response time was 3 ms and maximum
response time was 317ms.



Here is what I have done:

cat /etc/security/limits.conf:
* soft nofile 65535
* hard nofile 65535

sysctl -w fs.file-max=300000
ulimit -n 100000
cat /proc/sys/fs/file-max will give us 300000


added new limits at the top of /etc/init.d/cherokee-webserver as limits
are inherited through fork():
ulimit -u 100000
ulimit -n 200000


===============================
ulimit -a for root:
===============================
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 16382
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 100000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited




===============================
ulimit -a for www-data user:
===============================
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) 0
memory(kbytes) unlimited
locked memory(kbytes) 64
process unlimited
_/*nofiles 1024*/_
vmemory(kbytes) unlimited
locks unlimited



Thank you very much,

Navid

Subject User Time
- Concurrent connections limit - ulimit navid at navid Aug 21, 2011, 10:27 PM
    Re: - Concurrent connections limit - ulimit alvaro at octality Aug 23, 2011, 10:37 AM
    Re: - Concurrent connections limit - ulimit navid at navid Aug 26, 2011, 5:15 AM
        Re: - Concurrent connections limit - ulimit chekolyn at gmail Aug 26, 2011, 9:40 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.