Hello Navid, I had the same issue in Ubuntu. Basically you need to enforce those limits in */etc/pam.d/su*
by uncommenting the following line: *session required pam_limits.so * Sergio source: Raising nofile using ulimit on Ubuntu 10.04 <http://john.parnefjord.se/node/78> On Fri, Aug 26, 2011 at 5:15 AM, Navid Mohaghegh <[email protected]> wrote: > ** > > > Hi Alvaro, > > > Thank you very much for your response. > > > I have done that with no luck: > > > sysctl -w fs.file-max=300000 > > which will do the same thing as echo 300000 to /proc/sys/fs/file-max: > > also cat /proc/sys/fs/file-max will give me 300000 which means the maximum > open fd limit is changed. > > > The problem is the limit for user www-data which cherokee is running > under doesn't change: > > > cat /etc/security/limits.conf: > * soft nofile 65535 > * hard nofile 65535 > > ulimit -n 100000 > > > > > 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 > > > > On 08/23/2011 01:37 PM, Alvaro Lopez Ortega wrote: > > Hello Navid, > > On Mon, Aug 22, 2011 at 7:27 AM, Navid Mohaghegh <[email protected]> wrote: > >> I have a little problem that no matter what I do, I can't increase the >> concurrent web requests and connections to my Cherokee. > > > Please, take a look at the System > Tuning<http://www.cherokee-project.com/doc/other_os_tuning.html>chapter of > the documentation. > > -- > Greetings, alo > http://www.octality.com/ > > > > _______________________________________________ > Cherokee mailing list > [email protected] > http://lists.octality.com/listinfo/cherokee > >
_______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
