LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File Descriptor issue (https://www.linuxquestions.org/questions/linux-newbie-8/file-descriptor-issue-4175587882/)

smk.muthu 08-24-2016 01:24 PM

File Descriptor issue
 
Hi All

I am new to RHEL administration.

I am facing a challenge in setting the file descriptor in RHEL. Even i change the limits.conf and /etc/sysctl.conf I could not able to see the new value in ulimit –n under infaadmin user.

Can you please suggest?
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Limit in infaadmin user

[infaadmin@infabdm ~]$ ulimit -n
1024
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I have changed the sysctl.conf file in below folder.

[infaadmin@infabdm ~]$ cat /etc/sysctl.conf
# System default settings live in /usr/lib/sysctl.d/00-system.conf.
# To override those settings, enter new settings here, or in an /etc/sysctl.d/<name>.conf file
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
fs.file-max = 65535

[infaadmin@infabdm ~]$
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Set the value in limits.conf

[infaadmin@infabdm security]$ pwd
/etc/security

[infaadmin@infabdm security $ cat limits.conf
#<domain> <type> <item> <value>
#

#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
infaadmin soft nofiles 32000
infaadmin hard nofiles 32000

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I tried to reset the value for a specific user. it is throwing below privilege issue.

[infaadmin@infabdm security]$ ulimit -n 32000
-bash: ulimit: open files: cannot modify limit: Operation not permitted
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Let me know if you have any suggestions

TB0ne 08-24-2016 02:30 PM

Quote:

Originally Posted by smk.muthu (Post 5595471)
Hi All
I am new to RHEL administration. I am facing a challenge in setting the file descriptor in RHEL. Even i change the limits.conf and /etc/sysctl.conf I could not able to see the new value in ulimit –n under infaadmin user.

Can you please suggest?
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Limit in infaadmin user

[infaadmin@infabdm ~]$ ulimit -n
1024
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I have changed the sysctl.conf file in below folder.

[infaadmin@infabdm ~]$ cat /etc/sysctl.conf
# System default settings live in /usr/lib/sysctl.d/00-system.conf.
# To override those settings, enter new settings here, or in an /etc/sysctl.d/<name>.conf file
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
fs.file-max = 65535

[infaadmin@infabdm ~]$
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Set the value in limits.conf

[infaadmin@infabdm security]$ pwd
/etc/security

[infaadmin@infabdm security $ cat limits.conf
#<domain> <type> <item> <value>
#

#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
infaadmin soft nofiles 32000
infaadmin hard nofiles 32000

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I tried to reset the value for a specific user. it is throwing below privilege issue.

[infaadmin@infabdm security]$ ulimit -n 32000
-bash: ulimit: open files: cannot modify limit: Operation not permitted
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Let me know if you have any suggestions

You don't say what version/distro of Linux you're using, but assuming you're using RHEL (since you mention it), you DID edit those files as root, correct?? You logged out and back in too, right? Because if you don't, you won't get the new values.

And assuming this is an Informatica installation on RHEL...BOTH are commercial, pay-for products. Did you contact RHEL and/or Informatica support??? If you're new to RHEL administration, you need to use the professional support you're paying for first, ALWAYS. You pay for such things...use them for their purpose, and (most importantly) LEARN from them.

http://www.cyberciti.biz/faq/linux-i...of-open-files/

smk.muthu 08-25-2016 12:25 PM

I did logged out and tried again. Even tried a system restart.. didn't help.

Thx
Muthu

TB0ne 08-25-2016 02:12 PM

Quote:

Originally Posted by smk.muthu (Post 5595945)
I did logged out and tried again. Even tried a system restart.. didn't help.

Ok...so again, did you run these things as root when you edited the file(s)? Did you follow the link suggested to you? Did you contact RHEL support?

MadeInGermany 08-26-2016 04:37 PM

fs.file-max is the sum of all file descriptors of all processes on the system, and should be much bigger than 65535!
limits.conf is deprecated, please use limits.d/* files instead!


All times are GMT -5. The time now is 08:41 PM.