LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-24-2016, 01:24 PM   #1
smk.muthu
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Rep: Reputation: Disabled
Question 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
 
Old 08-24-2016, 02:30 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,680

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by smk.muthu View Post
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/
 
Old 08-25-2016, 12:25 PM   #3
smk.muthu
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
I did logged out and tried again. Even tried a system restart.. didn't help.

Thx
Muthu
 
Old 08-25-2016, 02:12 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,680

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by smk.muthu View Post
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?
 
Old 08-26-2016, 04:37 PM   #5
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,806

Rep: Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207
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!
 
  


Reply

Tags
file descriptor, rhel 6.6



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Get the absolute path of file using file descriptor. appas Programming 7 01-19-2012 11:47 AM
Too many file open - How can we define Max limit of file descriptor janeshb Linux - Server 11 09-29-2009 10:41 AM
open local file error when creating file descriptor hellgirl Linux - Newbie 1 09-14-2009 10:03 PM
Deleted log file - how to get back via file descriptor and keep alive? prollocks Linux - General 1 05-29-2009 09:08 AM
apt-file returns nothing; 'bad file descriptor' overbored Debian 3 10-03-2004 09:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration