new deploy: 2022-06-02T13:31:09+00:00

pages
Loïc Dachary 2022-06-02 13:31:09 +00:00 committed by dachary
parent 3e2b350c77
commit a8cf556506
12 changed files with 21 additions and 33 deletions

View File

@ -7,13 +7,12 @@
<updated>2022-06-02T00:00:00+00:00</updated> <updated>2022-06-02T00:00:00+00:00</updated>
<id>https://hostea.org/blog/atom.xml</id> <id>https://hostea.org/blog/atom.xml</id>
<entry xml:lang="en"> <entry xml:lang="en">
<title>[solved] Zombies created by Gitea version &lt;= 1.16.8</title> <title>[solved] Zombies created by Gitea</title>
<published>2022-06-02T00:00:00+00:00</published> <published>2022-06-02T00:00:00+00:00</published>
<updated>2022-06-02T00:00:00+00:00</updated> <updated>2022-06-02T00:00:00+00:00</updated>
<link href="https://hostea.org/blog/zombies/" type="text/html"/> <link href="https://hostea.org/blog/zombies/" type="text/html"/>
<id>https://hostea.org/blog/zombies/</id> <id>https://hostea.org/blog/zombies/</id>
<content type="html">&lt;p&gt;&lt;strong&gt;TL;DR: run Gitea version &amp;gt;= 1.16.9 to avoid zombies&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt; <content type="html">&lt;p&gt;The first &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;3242&quot;&gt;issue about zombie processes&lt;&#x2F;a&gt; created by Gitea was reported in 2017 and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;13987&quot;&gt;resurfaced&lt;&#x2F;a&gt; on a &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19077&quot;&gt;regular basis&lt;&#x2F;a&gt;. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:&lt;&#x2F;p&gt;
&lt;p&gt;The first &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;3242&quot;&gt;issue about zombie processes&lt;&#x2F;a&gt; created by Gitea was reported in 2017 and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;13987&quot;&gt;resurfaced&lt;&#x2F;a&gt; on a &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19077&quot;&gt;regular basis&lt;&#x2F;a&gt;. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:&lt;&#x2F;p&gt;
&lt;ul&gt; &lt;ul&gt;
&lt;li&gt;Gitea updates a mirror by spawning the process &lt;code&gt;git remote update&lt;&#x2F;code&gt;&lt;&#x2F;li&gt; &lt;li&gt;Gitea updates a mirror by spawning the process &lt;code&gt;git remote update&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git remote update&lt;&#x2F;code&gt; spawns yet another process, &lt;code&gt;git fetch&lt;&#x2F;code&gt;&lt;&#x2F;li&gt; &lt;li&gt;&lt;code&gt;git remote update&lt;&#x2F;code&gt; spawns yet another process, &lt;code&gt;git fetch&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
@ -73,7 +72,6 @@
&gt; &gt;
&lt;&#x2F;h3&gt; &lt;&#x2F;h3&gt;
&lt;p&gt;There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Process_group&quot;&gt;process group leaders&lt;&#x2F;a&gt;. In a nutshell it means that when the child is killed all its children and grand children are also killed.&lt;&#x2F;p&gt; &lt;p&gt;There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Process_group&quot;&gt;process group leaders&lt;&#x2F;a&gt;. In a nutshell it means that when the child is killed all its children and grand children are also killed.&lt;&#x2F;p&gt;
&lt;p&gt;A &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19865&quot;&gt;patch was introduced in Gitea 1.17&lt;&#x2F;a&gt; and backported to Gitea 1.16.9 so that all &lt;code&gt;git&lt;&#x2F;code&gt; commands are created as process group leaders and solve this problem for good.&lt;&#x2F;p&gt;
</content> </content>
</entry> </entry>
<entry xml:lang="en"> <entry xml:lang="en">

View File

@ -205,7 +205,7 @@
<li class="blog__post-item"> <li class="blog__post-item">
<a href="https://hostea.org/blog/zombies/" class="blog__post-link"> <a href="https://hostea.org/blog/zombies/" class="blog__post-link">
<h2 class="blog__post-title">[solved] Zombies created by Gitea version &lt;= 1.16.8</h2> <h2 class="blog__post-title">[solved] Zombies created by Gitea</h2>
<p class="blog__post-meta"> <p class="blog__post-meta">

View File

@ -33,21 +33,21 @@
<meta name="referrer" content="no-referrer-when-downgrade" /> <meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>[solved] Zombies created by Gitea version &lt;= 1.16.8 | Hostea: Managed Gitea Hosting </title> <title>[solved] Zombies created by Gitea | Hostea: Managed Gitea Hosting </title>
<meta name="referrer" content="no-referrer-when-downgrade" /> <meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="An increasing number of zombies processes are created by Gitea because it only kills its direct children on timeout." /> <meta name="description" content="An increasing number of zombies processes are created by Gitea because it only kills its direct children on timeout." />
<meta property="og:title" content="[solved] Zombies created by Gitea version &lt;= 1.16.8 | Hostea: Managed Gitea Hosting " /> <meta property="og:title" content="[solved] Zombies created by Gitea | Hostea: Managed Gitea Hosting " />
<meta property="og:type" content="article" /> <meta property="og:type" content="article" />
<meta property="og:url" content="https:&#x2F;&#x2F;hostea.org" /> <meta property="og:url" content="https:&#x2F;&#x2F;hostea.org" />
<meta property="og:description" content="An increasing number of zombies processes are created by Gitea because it only kills its direct children on timeout." /> <meta property="og:description" content="An increasing number of zombies processes are created by Gitea because it only kills its direct children on timeout." />
<meta <meta
property="og:site_name" property="og:site_name"
content="[solved] Zombies created by Gitea version &lt;= 1.16.8 | Hostea: Managed Gitea Hosting " content="[solved] Zombies created by Gitea | Hostea: Managed Gitea Hosting "
/> />
<link <link
rel="apple-touch-icon" rel="apple-touch-icon"
@ -197,7 +197,7 @@
<div class="page__container"> <div class="page__container">
<h1 class="page__group-title">[solved] Zombies created by Gitea version &lt;= 1.16.8</h1> <h1 class="page__group-title">[solved] Zombies created by Gitea</h1>
<p class="blog__post-meta"> <p class="blog__post-meta">
@ -216,8 +216,7 @@
<div class="blog__content"> <div class="blog__content">
<p><strong>TL;DR: run Gitea version &gt;= 1.16.9 to avoid zombies</strong></p> <p>The first <a href="https://github.com/go-gitea/gitea/issues/3242">issue about zombie processes</a> created by Gitea was reported in 2017 and <a href="https://github.com/go-gitea/gitea/issues/13987">resurfaced</a> on a <a href="https://github.com/go-gitea/gitea/issues/19077">regular basis</a>. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:</p>
<p>The first <a href="https://github.com/go-gitea/gitea/issues/3242">issue about zombie processes</a> created by Gitea was reported in 2017 and <a href="https://github.com/go-gitea/gitea/issues/13987">resurfaced</a> on a <a href="https://github.com/go-gitea/gitea/issues/19077">regular basis</a>. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:</p>
<ul> <ul>
<li>Gitea updates a mirror by spawning the process <code>git remote update</code></li> <li>Gitea updates a mirror by spawning the process <code>git remote update</code></li>
<li><code>git remote update</code> spawns yet another process, <code>git fetch</code></li> <li><code>git remote update</code> spawns yet another process, <code>git fetch</code></li>
@ -277,7 +276,6 @@
> >
</h3> </h3>
<p>There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are <a href="https://en.wikipedia.org/wiki/Process_group">process group leaders</a>. In a nutshell it means that when the child is killed all its children and grand children are also killed.</p> <p>There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are <a href="https://en.wikipedia.org/wiki/Process_group">process group leaders</a>. In a nutshell it means that when the child is killed all its children and grand children are also killed.</p>
<p>A <a href="https://github.com/go-gitea/gitea/pull/19865">patch was introduced in Gitea 1.17</a> and backported to Gitea 1.16.9 so that all <code>git</code> commands are created as process group leaders and solve this problem for good.</p>
</div> </div>
<br> <br>

File diff suppressed because one or more lines are too long

View File

@ -7,13 +7,12 @@
<updated>2022-06-02T00:00:00+00:00</updated> <updated>2022-06-02T00:00:00+00:00</updated>
<id>https://hostea.org/tags/gitea/atom.xml</id> <id>https://hostea.org/tags/gitea/atom.xml</id>
<entry xml:lang="en"> <entry xml:lang="en">
<title>[solved] Zombies created by Gitea version &lt;= 1.16.8</title> <title>[solved] Zombies created by Gitea</title>
<published>2022-06-02T00:00:00+00:00</published> <published>2022-06-02T00:00:00+00:00</published>
<updated>2022-06-02T00:00:00+00:00</updated> <updated>2022-06-02T00:00:00+00:00</updated>
<link href="https://hostea.org/blog/zombies/" type="text/html"/> <link href="https://hostea.org/blog/zombies/" type="text/html"/>
<id>https://hostea.org/blog/zombies/</id> <id>https://hostea.org/blog/zombies/</id>
<content type="html">&lt;p&gt;&lt;strong&gt;TL;DR: run Gitea version &amp;gt;= 1.16.9 to avoid zombies&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt; <content type="html">&lt;p&gt;The first &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;3242&quot;&gt;issue about zombie processes&lt;&#x2F;a&gt; created by Gitea was reported in 2017 and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;13987&quot;&gt;resurfaced&lt;&#x2F;a&gt; on a &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19077&quot;&gt;regular basis&lt;&#x2F;a&gt;. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:&lt;&#x2F;p&gt;
&lt;p&gt;The first &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;3242&quot;&gt;issue about zombie processes&lt;&#x2F;a&gt; created by Gitea was reported in 2017 and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;13987&quot;&gt;resurfaced&lt;&#x2F;a&gt; on a &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19077&quot;&gt;regular basis&lt;&#x2F;a&gt;. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:&lt;&#x2F;p&gt;
&lt;ul&gt; &lt;ul&gt;
&lt;li&gt;Gitea updates a mirror by spawning the process &lt;code&gt;git remote update&lt;&#x2F;code&gt;&lt;&#x2F;li&gt; &lt;li&gt;Gitea updates a mirror by spawning the process &lt;code&gt;git remote update&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git remote update&lt;&#x2F;code&gt; spawns yet another process, &lt;code&gt;git fetch&lt;&#x2F;code&gt;&lt;&#x2F;li&gt; &lt;li&gt;&lt;code&gt;git remote update&lt;&#x2F;code&gt; spawns yet another process, &lt;code&gt;git fetch&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
@ -73,7 +72,6 @@
&gt; &gt;
&lt;&#x2F;h3&gt; &lt;&#x2F;h3&gt;
&lt;p&gt;There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Process_group&quot;&gt;process group leaders&lt;&#x2F;a&gt;. In a nutshell it means that when the child is killed all its children and grand children are also killed.&lt;&#x2F;p&gt; &lt;p&gt;There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Process_group&quot;&gt;process group leaders&lt;&#x2F;a&gt;. In a nutshell it means that when the child is killed all its children and grand children are also killed.&lt;&#x2F;p&gt;
&lt;p&gt;A &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19865&quot;&gt;patch was introduced in Gitea 1.17&lt;&#x2F;a&gt; and backported to Gitea 1.16.9 so that all &lt;code&gt;git&lt;&#x2F;code&gt; commands are created as process group leaders and solve this problem for good.&lt;&#x2F;p&gt;
</content> </content>
</entry> </entry>
<entry xml:lang="en"> <entry xml:lang="en">

View File

@ -211,7 +211,7 @@
<li class="blog__post-item"> <li class="blog__post-item">
<a href="https://hostea.org/blog/zombies/" class="blog__post-link"> <a href="https://hostea.org/blog/zombies/" class="blog__post-link">
<h2 class="blog__post-title">[solved] Zombies created by Gitea version &lt;= 1.16.8</h2> <h2 class="blog__post-title">[solved] Zombies created by Gitea</h2>
<p class="blog__post-meta"> <p class="blog__post-meta">
2 2
June June

View File

@ -7,13 +7,12 @@
<updated>2022-06-02T00:00:00+00:00</updated> <updated>2022-06-02T00:00:00+00:00</updated>
<id>https://hostea.org/tags/hostea/atom.xml</id> <id>https://hostea.org/tags/hostea/atom.xml</id>
<entry xml:lang="en"> <entry xml:lang="en">
<title>[solved] Zombies created by Gitea version &lt;= 1.16.8</title> <title>[solved] Zombies created by Gitea</title>
<published>2022-06-02T00:00:00+00:00</published> <published>2022-06-02T00:00:00+00:00</published>
<updated>2022-06-02T00:00:00+00:00</updated> <updated>2022-06-02T00:00:00+00:00</updated>
<link href="https://hostea.org/blog/zombies/" type="text/html"/> <link href="https://hostea.org/blog/zombies/" type="text/html"/>
<id>https://hostea.org/blog/zombies/</id> <id>https://hostea.org/blog/zombies/</id>
<content type="html">&lt;p&gt;&lt;strong&gt;TL;DR: run Gitea version &amp;gt;= 1.16.9 to avoid zombies&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt; <content type="html">&lt;p&gt;The first &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;3242&quot;&gt;issue about zombie processes&lt;&#x2F;a&gt; created by Gitea was reported in 2017 and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;13987&quot;&gt;resurfaced&lt;&#x2F;a&gt; on a &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19077&quot;&gt;regular basis&lt;&#x2F;a&gt;. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:&lt;&#x2F;p&gt;
&lt;p&gt;The first &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;3242&quot;&gt;issue about zombie processes&lt;&#x2F;a&gt; created by Gitea was reported in 2017 and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;13987&quot;&gt;resurfaced&lt;&#x2F;a&gt; on a &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19077&quot;&gt;regular basis&lt;&#x2F;a&gt;. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:&lt;&#x2F;p&gt;
&lt;ul&gt; &lt;ul&gt;
&lt;li&gt;Gitea updates a mirror by spawning the process &lt;code&gt;git remote update&lt;&#x2F;code&gt;&lt;&#x2F;li&gt; &lt;li&gt;Gitea updates a mirror by spawning the process &lt;code&gt;git remote update&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git remote update&lt;&#x2F;code&gt; spawns yet another process, &lt;code&gt;git fetch&lt;&#x2F;code&gt;&lt;&#x2F;li&gt; &lt;li&gt;&lt;code&gt;git remote update&lt;&#x2F;code&gt; spawns yet another process, &lt;code&gt;git fetch&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
@ -73,7 +72,6 @@
&gt; &gt;
&lt;&#x2F;h3&gt; &lt;&#x2F;h3&gt;
&lt;p&gt;There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Process_group&quot;&gt;process group leaders&lt;&#x2F;a&gt;. In a nutshell it means that when the child is killed all its children and grand children are also killed.&lt;&#x2F;p&gt; &lt;p&gt;There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Process_group&quot;&gt;process group leaders&lt;&#x2F;a&gt;. In a nutshell it means that when the child is killed all its children and grand children are also killed.&lt;&#x2F;p&gt;
&lt;p&gt;A &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19865&quot;&gt;patch was introduced in Gitea 1.17&lt;&#x2F;a&gt; and backported to Gitea 1.16.9 so that all &lt;code&gt;git&lt;&#x2F;code&gt; commands are created as process group leaders and solve this problem for good.&lt;&#x2F;p&gt;
</content> </content>
</entry> </entry>
<entry xml:lang="en"> <entry xml:lang="en">

View File

@ -211,7 +211,7 @@
<li class="blog__post-item"> <li class="blog__post-item">
<a href="https://hostea.org/blog/zombies/" class="blog__post-link"> <a href="https://hostea.org/blog/zombies/" class="blog__post-link">
<h2 class="blog__post-title">[solved] Zombies created by Gitea version &lt;= 1.16.8</h2> <h2 class="blog__post-title">[solved] Zombies created by Gitea</h2>
<p class="blog__post-meta"> <p class="blog__post-meta">
2 2
June June

View File

@ -7,13 +7,12 @@
<updated>2022-06-02T00:00:00+00:00</updated> <updated>2022-06-02T00:00:00+00:00</updated>
<id>https://hostea.org/tags/problem/atom.xml</id> <id>https://hostea.org/tags/problem/atom.xml</id>
<entry xml:lang="en"> <entry xml:lang="en">
<title>[solved] Zombies created by Gitea version &lt;= 1.16.8</title> <title>[solved] Zombies created by Gitea</title>
<published>2022-06-02T00:00:00+00:00</published> <published>2022-06-02T00:00:00+00:00</published>
<updated>2022-06-02T00:00:00+00:00</updated> <updated>2022-06-02T00:00:00+00:00</updated>
<link href="https://hostea.org/blog/zombies/" type="text/html"/> <link href="https://hostea.org/blog/zombies/" type="text/html"/>
<id>https://hostea.org/blog/zombies/</id> <id>https://hostea.org/blog/zombies/</id>
<content type="html">&lt;p&gt;&lt;strong&gt;TL;DR: run Gitea version &amp;gt;= 1.16.9 to avoid zombies&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt; <content type="html">&lt;p&gt;The first &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;3242&quot;&gt;issue about zombie processes&lt;&#x2F;a&gt; created by Gitea was reported in 2017 and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;13987&quot;&gt;resurfaced&lt;&#x2F;a&gt; on a &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19077&quot;&gt;regular basis&lt;&#x2F;a&gt;. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:&lt;&#x2F;p&gt;
&lt;p&gt;The first &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;3242&quot;&gt;issue about zombie processes&lt;&#x2F;a&gt; created by Gitea was reported in 2017 and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;13987&quot;&gt;resurfaced&lt;&#x2F;a&gt; on a &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19077&quot;&gt;regular basis&lt;&#x2F;a&gt;. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:&lt;&#x2F;p&gt;
&lt;ul&gt; &lt;ul&gt;
&lt;li&gt;Gitea updates a mirror by spawning the process &lt;code&gt;git remote update&lt;&#x2F;code&gt;&lt;&#x2F;li&gt; &lt;li&gt;Gitea updates a mirror by spawning the process &lt;code&gt;git remote update&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git remote update&lt;&#x2F;code&gt; spawns yet another process, &lt;code&gt;git fetch&lt;&#x2F;code&gt;&lt;&#x2F;li&gt; &lt;li&gt;&lt;code&gt;git remote update&lt;&#x2F;code&gt; spawns yet another process, &lt;code&gt;git fetch&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
@ -73,7 +72,6 @@
&gt; &gt;
&lt;&#x2F;h3&gt; &lt;&#x2F;h3&gt;
&lt;p&gt;There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Process_group&quot;&gt;process group leaders&lt;&#x2F;a&gt;. In a nutshell it means that when the child is killed all its children and grand children are also killed.&lt;&#x2F;p&gt; &lt;p&gt;There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Process_group&quot;&gt;process group leaders&lt;&#x2F;a&gt;. In a nutshell it means that when the child is killed all its children and grand children are also killed.&lt;&#x2F;p&gt;
&lt;p&gt;A &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19865&quot;&gt;patch was introduced in Gitea 1.17&lt;&#x2F;a&gt; and backported to Gitea 1.16.9 so that all &lt;code&gt;git&lt;&#x2F;code&gt; commands are created as process group leaders and solve this problem for good.&lt;&#x2F;p&gt;
</content> </content>
</entry> </entry>
<entry xml:lang="en"> <entry xml:lang="en">

View File

@ -211,7 +211,7 @@
<li class="blog__post-item"> <li class="blog__post-item">
<a href="https://hostea.org/blog/zombies/" class="blog__post-link"> <a href="https://hostea.org/blog/zombies/" class="blog__post-link">
<h2 class="blog__post-title">[solved] Zombies created by Gitea version &lt;= 1.16.8</h2> <h2 class="blog__post-title">[solved] Zombies created by Gitea</h2>
<p class="blog__post-meta"> <p class="blog__post-meta">
2 2
June June

View File

@ -7,13 +7,12 @@
<updated>2022-06-02T00:00:00+00:00</updated> <updated>2022-06-02T00:00:00+00:00</updated>
<id>https://hostea.org/tags/troubleshoot/atom.xml</id> <id>https://hostea.org/tags/troubleshoot/atom.xml</id>
<entry xml:lang="en"> <entry xml:lang="en">
<title>[solved] Zombies created by Gitea version &lt;= 1.16.8</title> <title>[solved] Zombies created by Gitea</title>
<published>2022-06-02T00:00:00+00:00</published> <published>2022-06-02T00:00:00+00:00</published>
<updated>2022-06-02T00:00:00+00:00</updated> <updated>2022-06-02T00:00:00+00:00</updated>
<link href="https://hostea.org/blog/zombies/" type="text/html"/> <link href="https://hostea.org/blog/zombies/" type="text/html"/>
<id>https://hostea.org/blog/zombies/</id> <id>https://hostea.org/blog/zombies/</id>
<content type="html">&lt;p&gt;&lt;strong&gt;TL;DR: run Gitea version &amp;gt;= 1.16.9 to avoid zombies&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt; <content type="html">&lt;p&gt;The first &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;3242&quot;&gt;issue about zombie processes&lt;&#x2F;a&gt; created by Gitea was reported in 2017 and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;13987&quot;&gt;resurfaced&lt;&#x2F;a&gt; on a &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19077&quot;&gt;regular basis&lt;&#x2F;a&gt;. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:&lt;&#x2F;p&gt;
&lt;p&gt;The first &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;3242&quot;&gt;issue about zombie processes&lt;&#x2F;a&gt; created by Gitea was reported in 2017 and &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;13987&quot;&gt;resurfaced&lt;&#x2F;a&gt; on a &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;issues&#x2F;19077&quot;&gt;regular basis&lt;&#x2F;a&gt;. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:&lt;&#x2F;p&gt;
&lt;ul&gt; &lt;ul&gt;
&lt;li&gt;Gitea updates a mirror by spawning the process &lt;code&gt;git remote update&lt;&#x2F;code&gt;&lt;&#x2F;li&gt; &lt;li&gt;Gitea updates a mirror by spawning the process &lt;code&gt;git remote update&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;git remote update&lt;&#x2F;code&gt; spawns yet another process, &lt;code&gt;git fetch&lt;&#x2F;code&gt;&lt;&#x2F;li&gt; &lt;li&gt;&lt;code&gt;git remote update&lt;&#x2F;code&gt; spawns yet another process, &lt;code&gt;git fetch&lt;&#x2F;code&gt;&lt;&#x2F;li&gt;
@ -73,7 +72,6 @@
&gt; &gt;
&lt;&#x2F;h3&gt; &lt;&#x2F;h3&gt;
&lt;p&gt;There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Process_group&quot;&gt;process group leaders&lt;&#x2F;a&gt;. In a nutshell it means that when the child is killed all its children and grand children are also killed.&lt;&#x2F;p&gt; &lt;p&gt;There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are &lt;a href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Process_group&quot;&gt;process group leaders&lt;&#x2F;a&gt;. In a nutshell it means that when the child is killed all its children and grand children are also killed.&lt;&#x2F;p&gt;
&lt;p&gt;A &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;go-gitea&#x2F;gitea&#x2F;pull&#x2F;19865&quot;&gt;patch was introduced in Gitea 1.17&lt;&#x2F;a&gt; and backported to Gitea 1.16.9 so that all &lt;code&gt;git&lt;&#x2F;code&gt; commands are created as process group leaders and solve this problem for good.&lt;&#x2F;p&gt;
</content> </content>
</entry> </entry>
<entry xml:lang="en"> <entry xml:lang="en">

View File

@ -211,7 +211,7 @@
<li class="blog__post-item"> <li class="blog__post-item">
<a href="https://hostea.org/blog/zombies/" class="blog__post-link"> <a href="https://hostea.org/blog/zombies/" class="blog__post-link">
<h2 class="blog__post-title">[solved] Zombies created by Gitea version &lt;= 1.16.8</h2> <h2 class="blog__post-title">[solved] Zombies created by Gitea</h2>
<p class="blog__post-meta"> <p class="blog__post-meta">
2 2
June June