Ulimit issues
Flynn, Neill
Neill.Flynn at itg.com
Fri Mar 14 10:03:25 UTC 2008
Hi all,
I'm a Solaris admin with a few RH boxes, I have an issue with the number
of descriptors on one of my boxes (Linux HOSTNAME 2.4.21-32.ELsmp #1 SMP
Fri Apr 15 21:17:59 EDT 2005 i686 i686 i386 GNU/Linux), I was *asked* to
increase the number of open files on the box from 1024 to 2048. I
followed the following web page:
http://kbase.redhat.com/faq/FAQ_80_1540.shtm.
These are the notes from the change:
1. Check if value in higher in /proc/sys/fs/file-max then the
new desired open_man_file
# cat /proc/sys/fs/file-max
465305
if not - change above to 2048
and add the following line to /etc/sysctl.conf
fs.file-max = 2048
(but not needed of /proc/sys/fs/file-max > new max)
2. add the following line to /etc/security/limits.conf
* - nofile 2048
below the following line:
#<domain> <type> <item> <value>
so it looks like:
#<domain> <type> <item> <value>
* - nofile 2048
So all I did was the /etc/security/limits.conf file as the
/proc/sys/fs/file-max was above what I wanted to change to.
I bounced the box and checked using ulimit and limit (for bash and
tcsh),I then went home a happy little sysadmin.
This morning I got a mail saying the changes haven't worked, I checked
again, then I su'd into the user's account and checked - it was fine. I
got the users password and telnet'd in directly and discovered that the
limits haven't changed. If I su into the account, ssh or rsh into the
account, it's fine, telnet seems to be the only issue (but I'm not sure
about cron either).
So I goggled it and came up with lots of wonderful changes, including:
Adding: "ulimit -n 2048" to /etc/profile
Adding "limit descriptors 2048" to /etc/csh.login
Adding "session required /lib/security/pam_limits.so" to
/etc/pam.d/login
Nothing worked and I'm still confused, anyone any suggestions (I've
already considered turning off telnet ;-)
Cheers,
Neill
This message is for the named person's use only. This communication is for informational purposes only and has been obtained from sources believed to be reliable, but it is not necessarily complete and its accuracy cannot be guaranteed. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. Moreover, this material should not be construed to contain any recommendation regarding, or opinion concerning, any security. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of any such entity.
ITG may monitor traffic data of both business and personal e-mails. By replying to this e-mail, you consent to ITG monitoring the content of any e-mails you send to or receive from ITG.
ITG(r) is a global brand that, in Europe, refers to Investment Technology Group Limited ("ITGL"), registered in Ireland No. 283940 and/or its wholly owned subsidiary, Investment Technology Group Europe Limited ("ITGEL"), registered in Ireland No. 283939. The registered office of these companies is Dublin Exchange Facility, IFSC, Dublin 1, Ireland. ITGEL London Branch is registered in England and Wales, Branch No. BROO4642. ITGL and ITGEL are authorised by the Irish Financial Regulator under the European Communities (Markets in Financial Instruments) Regulations 2007 and provide services in other member states of the European Community under Article 14 of the Markets in Financial Instruments Directive. ITGL is a member of the London Stock Exchange, Euronext and the Deutsche Borse and operates POSIT(r), the multilateral trading facility. ITGEL London Branch is regulated by the Financial Services Authority for the conduct of investment business in the UK.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/redhat-sysadmin-list/attachments/20080314/97a37190/attachment.htm>
More information about the redhat-sysadmin-list
mailing list