<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryuichi1208</author_name>
  <author_url>https://blog.hatena.ne.jp/ryuichi1208/</author_url>
  <blog_title>地方エンジニアの学習日記</blog_title>
  <blog_url>https://ryuichi1208.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>突然思った。なんで？ulimitをユーザプロセス が変更する際はハードリミット以下で制限されるがworker_rlimit_nofileではこのハードリミットを超えることができる。 これはなんでって思ったので調べた。結論から言うとNginxは基本masterプロセスはrootで実行するがこのroot -&gt; 一般ユーザでデーモン化するまでの間でulimtを設定するからだ。 nginxのworker_rlimit_nofileって？ nginx ではプロセス毎のファイルディスクリプタ上限数を指定する設定項目 worker_rlimit_nofile が用意されている。 この値はMaxClients…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryuichi1208.hateblo.jp%2Fentry%2F2020%2F09%2F15%2F194442&quot; title=&quot;Nginxがユーザプロセスでulimitのハードを超えれるのはなぜか - 地方エンジニアの学習日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-09-15 19:44:42</published>
  <title>Nginxがユーザプロセスでulimitのハードを超えれるのはなぜか</title>
  <type>rich</type>
  <url>https://ryuichi1208.hateblo.jp/entry/2020/09/15/194442</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
