<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.leese-family.de/index.php?action=history&amp;feed=atom&amp;title=Linux%2Ftoo_many_open_files</id>
	<title>Linux/too many open files - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.leese-family.de/index.php?action=history&amp;feed=atom&amp;title=Linux%2Ftoo_many_open_files"/>
	<link rel="alternate" type="text/html" href="https://wiki.leese-family.de/index.php?title=Linux/too_many_open_files&amp;action=history"/>
	<updated>2026-06-30T17:13:54Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Ringo&#039;s Wiki</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://wiki.leese-family.de/index.php?title=Linux/too_many_open_files&amp;diff=19&amp;oldid=prev</id>
		<title>Ringo: Die Seite wurde neu angelegt: „== &quot;too many open files&quot;-Problem ==  Anzahl der offene Dateien, die durch einen bestimmten Prozess belegt werden, ermitteln: * &#039;&#039;lsof -p &lt;pid&gt; | wc -l&#039;&#039;  Die a…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.leese-family.de/index.php?title=Linux/too_many_open_files&amp;diff=19&amp;oldid=prev"/>
		<updated>2019-03-19T10:47:43Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „== &amp;quot;too many open files&amp;quot;-Problem ==  Anzahl der offene Dateien, die durch einen bestimmten Prozess belegt werden, ermitteln: * &amp;#039;&amp;#039;lsof -p &amp;lt;pid&amp;gt; | wc -l&amp;#039;&amp;#039;  Die a…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== &amp;quot;too many open files&amp;quot;-Problem ==&lt;br /&gt;
&lt;br /&gt;
Anzahl der offene Dateien, die durch einen bestimmten Prozess belegt werden, ermitteln:&lt;br /&gt;
* &amp;#039;&amp;#039;lsof -p &amp;lt;pid&amp;gt; | wc -l&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Die aktuellen limits eines Prozesses kann man mit folgender Bash-Funktion ermitteln:&lt;br /&gt;
&lt;br /&gt;
  return-limits() {&lt;br /&gt;
      for process in $@; do&lt;br /&gt;
          process_pids=`ps -C $process -o pid --no-headers | cut -d &amp;quot; &amp;quot; -f 2`&lt;br /&gt;
          if [ -z $@ ]; then&lt;br /&gt;
              echo &amp;quot;[no $process running]&amp;quot;&lt;br /&gt;
          else&lt;br /&gt;
              for pid in $process_pids; do&lt;br /&gt;
                  echo &amp;quot;[$process #$pid -- limits]&amp;quot;&lt;br /&gt;
                  cat /proc/$pid/limits&lt;br /&gt;
              done&lt;br /&gt;
          fi&lt;br /&gt;
      done&lt;br /&gt;
  }&lt;br /&gt;
Bsp.: &amp;#039;&amp;#039;return-limits mongod&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Limit                     Soft Limit           Hard Limit           Units&lt;br /&gt;
Max cpu time              unlimited            unlimited            seconds&lt;br /&gt;
Max file size             unlimited            unlimited            bytes&lt;br /&gt;
Max data size             unlimited            unlimited            bytes&lt;br /&gt;
Max stack size            8720000              unlimited            bytes&lt;br /&gt;
Max core file size        0                    unlimited            bytes&lt;br /&gt;
Max resident set          unlimited            unlimited            bytes&lt;br /&gt;
Max processes             192276               192276               processes&lt;br /&gt;
Max open files            1024                 4096                 files&lt;br /&gt;
Max locked memory         40960000             40960000             bytes&lt;br /&gt;
Max address space         unlimited            unlimited            bytes&lt;br /&gt;
Max file locks            unlimited            unlimited            locks&lt;br /&gt;
Max pending signals       192276               192276               signals&lt;br /&gt;
Max msgqueue size         819200               819200               bytes&lt;br /&gt;
Max nice priority         30                   30&lt;br /&gt;
Max realtime priority     65                   65&lt;br /&gt;
Max realtime timeout      unlimited            unlimited            us&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ringo</name></author>
	</entry>
</feed>