Re: Raising maximum file descriptors
Paul Johnson wrote:
> I'm stuck really badly on this... even though my
> /etc/security/limits.conf has the necessary lines that should allow me to
> change my ulimit, I still can't do it.
>
> baloo@ursine:~$ ulimit -n 4096
> bash: ulimit: open files: cannot modify limit: Operation not permitted
> baloo@ursine:~$ ulimit -Sn
> 1024
> baloo@ursine:~$ ulimit -Hn
> 1024
>
> What am I doing wrong or failing to check?
you need to increase the session limits.
Add something like this to /etc/security/limits.conf:
* soft nofile 1024
* hard nofile 65535
See also, for example
http://www.xenoclast.org/doc/benchmark/HTTP-benchmarking-HOWTO/node7.html
Regards,
Andreas
--
Andreas Fester
mailto:andreas@littletux.net
WWW: http://www.littletux.net
ICQ: 326674288
Reply to: