Red Hat very strange

Barry Brimer lists at brimer.org
Wed Oct 17 03:15:25 UTC 2007


To increase max open files for the whole system add the line
"fs.file-max = <# of open files you want>"

To /etc/sysctl.conf and then type sysctl -p to activate it.  That should 
be all you need, but if you feel the need to increase the per-user limits 
on open files edit /etc/security/limits.conf and add
"<user/group/*> - nofile <# of open files you want>" and then when you 
open a new user session that user will have the new limit.

Barry

On Tue, 16 Oct 2007, Tiago Cruz wrote:

> Hello Guys,
>
> I have a lot of Red Hat's here [Red Hat Enterprise Linux AS release 4
> (Nahant Update 4)] and some times he's was very strange, look:
>
>
> [tbezerra at pix-1 ~]$ su -
> [tbezerra at pix-1 ~]$ su -
> [tbezerra at pix-1 ~]$ ls
> [tbezerra at pix-1 ~]$ ls
> [tbezerra at pix-1 ~]$ ls
> [tbezerra at pix-1 ~]$ ls
> [tbezerra at pix-1 ~]$ ls
> [tbezerra at pix-1 ~]$ ls
> [tbezerra at pix-1 ~]$ ls
> [tbezerra at pix-1 ~]$ ls
> jre-6u1-linux-amd64.rpm  tuning.sh
> [tbezerra at pix-1 ~]$ ls
> jre-6u1-linux-amd64.rpm  tuning.sh
> [tbezerra at pix-1 ~]$ su -
> Password:
> [root at pix-1 ~]#
>
> How can you see, sometime single commands like 'ls' or 'su' was getting
> failed. Sometimes, I god messages on /var/log/messages and/or dmesg
> speaking about "Max open files", but sometimes not.
>
> When this happen, I fix this increasing the maximum of number of files
> open, but when I can't get any message, what can I do?
>
> Is this one know problem?
>
> Thanks!
>
> -- 
> Tiago Cruz
> http://everlinux.com
> Linux User #282636
>
>
> --
> redhat-sysadmin-list mailing list
> redhat-sysadmin-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list
>
> !DSPAM:47156dfc287336595683046!
>
>




More information about the redhat-sysadmin-list mailing list