<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Set &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/set/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Mon, 17 Aug 2020 09:21:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.13</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Set &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Set Unlimited Users and File descriptions on Linux server</title>
		<link>https://help.hostry.com/knowledge-base/how-to-set-unlimited-users-and-file-descriptions-on-linux-server/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-set-unlimited-users-and-file-descriptions-on-linux-server/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Mon, 17 Aug 2020 09:21:22 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1929</guid>

					<description><![CDATA[Linux has a unique system for installing and changing the maximum number of user processes, uilimit. The default number of file descriptors that any process can open is 1024 per process. Installing unlimited users and descriptions on the server When you do this task, you get the error &#8220;too many [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Linux has a unique system for installing and changing the maximum number of user processes, <em><strong><a href="https://ss64.com/bash/ulimit.html">uilimit</a></strong></em>. The default number of file descriptors that any process can open is 1024 per process.</p>



<h2 id="installing-unlimited-users-and-descriptions-on-the-server" >Installing unlimited users and descriptions on the server</h2>



<p>When you do this task, you get the error &#8220;too many files open limit&#8221;. This means that there is a limitation on opening Linux files according to the user&#8217;s session. To do this, add a line to /etc/sysctl.conf and run sysctl -p:</p>



<pre class="wp-block-preformatted">fs.file-max = 80000</pre>



<p>Next, we check the default constraints. This can be done with the following command:</p>



<pre class="wp-block-preformatted">cat /proc/sys/fs/ file-max</pre>



<p>file-max is the maximum file descriptor. This is a kernel setting applied at the system level. Also you can check the default values ​​for the root user.</p>



<pre class="wp-block-preformatted">ulimit -a</pre>



<p>It is also possible to set hard and soft limits by editing this vim file /etc/security/limits.conf</p>



<pre class="wp-block-preformatted">* hard nofile 600000
* soft nofile 600000</pre>



<p>Set hard and soft limits for Linux user</p>



<pre class="wp-block-preformatted">linux hard nofile 600000
linux soft nofile 600000</pre>



<p>Then run the following command to make the changes</p>



<pre class="wp-block-code"><code>sysctl -p</code></pre>



<p>It is also possible to check how many files are open at the moment using following command</p>



<pre class="wp-block-code"><code>lsof | wc -l</code></pre>



<p>You can check how many file descriptions are currently in use with the following command:</p>



<pre class="wp-block-code"><code>more /proc/sys/fs/file-nr</code></pre>



<p>Check the file descriptor limit for the currently open file using the following commands</p>



<pre class="wp-block-preformatted">more /proc/sys/fs/file-max
sysctl -a | grep fs.file-max</pre>



<p>After making the changes, you need to log out and log back in. </p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-set-unlimited-users-and-file-descriptions-on-linux-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
