Re: permanet file descriptor limit



okay ..
Is there any difference between the o/p returned from 'ulimit' when you
access your system via a)telnet b)SSH c)from the console of the system
//Arjun
Marco wrote:
thankyou but I've already added the lines
* soft nofile 1024
* hard nofile 65535
to /etc/security/limits the lines...

marco



koneruarjun@xxxxxxxxx ha scritto:

Assuming you are running RH linux -- try /etc/security/limits.conf
//Arjun
Marco wrote:
Hi all!

I want to change permanently the number of open files my system can
handle (not just for a user but for the whole system).

with ulimit I can see that my system can handle 1024 files
open files (-n) 1024

What I've done is the following:
first I add the line
fs.file-max = 65536
into /etc/sysctl.conf and I reload with sysctl -p
then I add into /etc/security/limits the lines
* soft nofile 1024
* hard nofile 65535
third I add in /etc/pam.d/login the line
session required /lib/security/pam_limits.so
fourth I do
echo 65535 > /proc/sys/fs/file-max

after this I can see the limit is not changed: also if I reboot the
limit does not change.
Why?

I've seen the only way to change this value is with ulimit -n, but it
changes open file limit just for my shell.

Thanks


Marco

.



Relevant Pages

  • Re: permanet file descriptor limit
    ... hard nofile 65535 ... Marco wrote: ... I want to change permanently the number of open files my system can ... * soft nofile 1024 ...
    (comp.os.linux.misc)
  • Re: permanet file descriptor limit
    ... Marco wrote: ... I want to change permanently the number of open files my system can ... * soft nofile 1024 ... I've seen the only way to change this value is with ulimit -n, ...
    (comp.os.linux.misc)
  • permanet file descriptor limit
    ... I want to change permanently the number of open files my system can ... * soft nofile 1024 ... I've seen the only way to change this value is with ulimit -n, ... changes open file limit just for my shell. ...
    (comp.os.linux.misc)
  • Re: permanet file descriptor limit
    ... Marco wrote: ... I want to change permanently the number of open files my system can ... ulimit displays the number of open files permitted per process. ... the system limit, use: ...
    (comp.os.linux.misc)
  • open files: cannot modify limit: (ulimit -n) error
    ... `ulimit -n 65536' the error is not generated, and the open files limit is ... I know the bash man page states the following for the -n switch for ulimit: ...
    (RedHat)