<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ulimt question in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862127#M25174</link>
    <description>RHEL 4.  I'm trying to set the ulimit for open files (ulimit -n) on one of my RHEL servers from the default to 66536.  I put the value in my /etc/sysctl.conf as follows:  &lt;BR /&gt;fs.file-max = 65536. &lt;BR /&gt;&lt;BR /&gt;However, when I log in as root or any other user, it is set to the default value of 1024.  Why is that?</description>
    <pubDate>Wed, 13 Sep 2006 10:00:22 GMT</pubDate>
    <dc:creator>joseph wholey</dc:creator>
    <dc:date>2006-09-13T10:00:22Z</dc:date>
    <item>
      <title>ulimt question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862127#M25174</link>
      <description>RHEL 4.  I'm trying to set the ulimit for open files (ulimit -n) on one of my RHEL servers from the default to 66536.  I put the value in my /etc/sysctl.conf as follows:  &lt;BR /&gt;fs.file-max = 65536. &lt;BR /&gt;&lt;BR /&gt;However, when I log in as root or any other user, it is set to the default value of 1024.  Why is that?</description>
      <pubDate>Wed, 13 Sep 2006 10:00:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862127#M25174</guid>
      <dc:creator>joseph wholey</dc:creator>
      <dc:date>2006-09-13T10:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: ulimt question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862128#M25175</link>
      <description>ulimit is to be set in files that control your shell. For example for all users on the system that use bash edit /etc/bashrc.&lt;BR /&gt;ulimit -n number&lt;BR /&gt;In /etc/sysctl.conf file your define kernel tunnings.</description>
      <pubDate>Wed, 13 Sep 2006 10:22:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862128#M25175</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2006-09-13T10:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: ulimt question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862129#M25176</link>
      <description>Hello joseph,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=69798" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=69798&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.linuxquestions.org/questions/showthread.php?postid=592509" target="_blank"&gt;http://www.linuxquestions.org/questions/showthread.php?postid=592509&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;SRH</description>
      <pubDate>Wed, 13 Sep 2006 10:23:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862129#M25176</guid>
      <dc:creator>sandeep_raman</dc:creator>
      <dc:date>2006-09-13T10:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: ulimt question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862130#M25177</link>
      <description>There should no trailing dot (.) after 65536.&lt;BR /&gt;BTW, default file-max is 102043 on RHEL4. Can you get the output of &lt;BR /&gt;&lt;BR /&gt;cat /proc/sys/fs/file-max&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Sep 2006 10:57:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862130#M25177</guid>
      <dc:creator>George Liu_4</dc:creator>
      <dc:date>2006-09-13T10:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: ulimt question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862131#M25178</link>
      <description>Thanks for all of the responses... one remaining question... why when I issue "ulimit -n" I get 1024, but when I look in /proc/sys/fs/file-max, it's set to what I have in /etc/sysctl.conf.  What is ulimit -n showing me, and where is it picking up the value? &lt;BR /&gt;</description>
      <pubDate>Wed, 13 Sep 2006 11:14:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862131#M25178</guid>
      <dc:creator>joseph wholey</dc:creator>
      <dc:date>2006-09-13T11:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: ulimt question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862132#M25179</link>
      <description>Joseph,&lt;BR /&gt;&lt;BR /&gt;Just a quick clarification, Max-File and Ulimit are two different parameters.&lt;BR /&gt; &lt;BR /&gt;Max-file:&lt;BR /&gt;file-max is a system level maximum number of file handles that the system will allocate.  The cumulative number across all jobs cannot exceed that.&lt;BR /&gt; &lt;BR /&gt;Ulimit:&lt;BR /&gt;ulimit sets the limit for the process itself. So for a telnet session, ulimit can be used to set the soft limit up or down for a particular resource    for  that telnet session and its child processes.  (And ulimit can set the hard limit down, but not up).&lt;BR /&gt;&lt;BR /&gt;The only paramter that you should worry about is the limits.conf and add the user that you'd like to have the ulimit increased (/etc/security/limits.conf).&lt;BR /&gt;Once you done that, restart the sshd service.    Have the user log back in and do this command ulimit -a&lt;BR /&gt;&lt;BR /&gt;Let me know if you need more details on this.&lt;BR /&gt;&lt;BR /&gt;Jorge</description>
      <pubDate>Wed, 13 Sep 2006 12:36:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862132#M25179</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2006-09-13T12:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: ulimt question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862133#M25180</link>
      <description>Jorge, &lt;BR /&gt;&lt;BR /&gt;I did exactly as you specified... updated the /etc/security/limits.conf as follows: &lt;BR /&gt;&lt;BR /&gt;usr         hard    nofile          65536&lt;BR /&gt;&lt;BR /&gt;recycled the sshd daemon, logged out, logged back in as 'usr', issued ulimit -a, and open files still has the value of 1024.</description>
      <pubDate>Wed, 13 Sep 2006 13:32:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862133#M25180</guid>
      <dc:creator>joseph wholey</dc:creator>
      <dc:date>2006-09-13T13:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: ulimt question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862134#M25181</link>
      <description>How much memory do you have on your box?&lt;BR /&gt;&lt;BR /&gt;What's your setting for max-file?&lt;BR /&gt;What's your limits.conf file look like now?&lt;BR /&gt;&lt;BR /&gt;Please give me these details and I will try to help you.&lt;BR /&gt;&lt;BR /&gt;Jorge</description>
      <pubDate>Fri, 15 Sep 2006 08:31:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862134#M25181</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2006-09-15T08:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: ulimt question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862135#M25182</link>
      <description>The limits setting in /etc/security/limits.conf is done by a PAM login.  You need to have a "UsePAM yes" line in /etc/ssh/sshd_config in order to tell sshd to use PAM.  Without that the limits.conf setting will be ignored for ssh logins.&lt;BR /&gt;You should look through "man sshd_config" to see that you are getting the behavior you want from sshd and PAM after making this change.</description>
      <pubDate>Wed, 20 Sep 2006 13:40:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ulimt-question/m-p/3862135#M25182</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2006-09-20T13:40:47Z</dc:date>
    </item>
  </channel>
</rss>

