<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7160&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Unable to set the value “nofile” in /etc/security/limits.conf]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7160</link>
		<description><![CDATA[The most recent posts in Unable to set the value “nofile” in /etc/security/limits.conf.]]></description>
		<lastBuildDate>Wed, 30 Apr 2025 08:53:48 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Unable to set the value “nofile” in /etc/security/limits.conf]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55460#p55460</link>
			<description><![CDATA[<p>I asked same question about tomcat. I will try to post here what I see in same situation:</p><p>All settings seems to be good and in the right places:</p><div class="codebox"><pre><code>root@host:~# cat /etc/sysctl.conf | grep file-max
fs.file-max = 65535
root@host:~# cat /etc/security/limits.d/nofile.conf
tomcat hard nofile 65535
tomcat soft nofile 65535</code></pre></div><p>Tomcat user shows right values:</p><div class="codebox"><pre><code>root@host:~# sudo su -l tomcat -s /bin/bash
tomcat@host:~$ ulimit -n
65535
tomcat@host:~$ ulimit -Hn
65535
tomcat@host:~$ ulimit -Sn
65535</code></pre></div><p>Looking for tomcat pids:</p><div class="codebox"><pre><code>root@host:~# lsof -t -i:8080
10832
10893
12255
12304
12339
12383
12578</code></pre></div><p>Checking limits, and found 8192 but not 65536:</p><div class="codebox"><pre class="vscroll"><code>root@host:~# cat /proc/12578/limits
Limit                     Soft Limit           Hard Limit           Units
Max cpu time              unlimited            unlimited            seconds
Max file size             unlimited            unlimited            bytes
Max data size             unlimited            unlimited            bytes
Max stack size            8388608              unlimited            bytes
Max core file size        0                    unlimited            bytes
Max resident set          unlimited            unlimited            bytes
Max processes             192572               192572               processes
Max open files            8192                 8192                 files
Max locked memory         65536                65536                bytes
Max address space         unlimited            unlimited            bytes
Max file locks            unlimited            unlimited            locks
Max pending signals       192572               192572               signals
Max msgqueue size         819200               819200               bytes
Max nice priority         0                    0
Max realtime priority     0                    0
Max realtime timeout      unlimited            unlimited            us
root@host:~# cat /proc/12383/limits
Limit                     Soft Limit           Hard Limit           Units
Max cpu time              unlimited            unlimited            seconds
Max file size             unlimited            unlimited            bytes
Max data size             unlimited            unlimited            bytes
Max stack size            8388608              unlimited            bytes
Max core file size        0                    unlimited            bytes
Max resident set          unlimited            unlimited            bytes
Max processes             192572               192572               processes
Max open files            8192                 8192                 files
Max locked memory         65536                65536                bytes
Max address space         unlimited            unlimited            bytes
Max file locks            unlimited            unlimited            locks
Max pending signals       192572               192572               signals
Max msgqueue size         819200               819200               bytes
Max nice priority         0                    0
Max realtime priority     0                    0
Max realtime timeout      unlimited            unlimited            us</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (IdeaFix)]]></author>
			<pubDate>Wed, 30 Apr 2025 08:53:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55460#p55460</guid>
		</item>
		<item>
			<title><![CDATA[Unable to set the value “nofile” in /etc/security/limits.conf]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55339#p55339</link>
			<description><![CDATA[<p>Hello guys, I am having a problem getting the system to allow me to change this value. Every time I type the command ulimit -Hn in the terminal it shows me 4096, and I modified the file <strong>/etc/security/limits.conf</strong> adding this line: <strong>username hard nofile 524288</strong>, but nothing happens, every time I reboot the PC and type the command ulimit -Hn in the terminal the value stays at 4096, I also added this line: <strong>session required pam_limits.so</strong> in these two files: <strong>/etc/pam.d/common-session</strong> and <strong>/etc/pam.d/common-session-noninteractive</strong>, what should I do in this situation?</p>]]></description>
			<author><![CDATA[dummy@example.com (Xellcom3000)]]></author>
			<pubDate>Wed, 16 Apr 2025 18:31:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55339#p55339</guid>
		</item>
	</channel>
</rss>
