title: Nginx killed for “Out of memory”?
body: <p>My nginx has 8 process, each of them take about <strong>150M</strong> memory.</p>
  <p>From time to time，my nginx get killed for this（dmesg）</p>
  <blockquote>
  <p>21228 total pagecache pages 50 pages in swap cache Swap cache stats:
  add 85, delete 35, find 63/64 Free swap  = 2031300kB Total swap =
  2031608kB 3407856 pages RAM 3180034 pages HighMem 290515 pages
  reserved 36448 pages shared 491788 pages non-shared</p>
  <p><strong>Out of memory:kill process 16373 (nginx) score 5013 or a child</strong></p>
  </blockquote>
  <p>I googled it, turns out the  <strong>Low Memory</strong> is run out, so the oom-killer begin doing its job...</p>
  <p>Here is my questions:</p>
  <ol>
  <li><p>I get <strong>16GB</strong> memory, but the Low Memory is just <strong>800M</strong> (free -lm), how can i use the rest of them? google tell me i can use a patch <strong>kernel-hugemem</strong> , but it only for centos4, Mine is <strong>centos5.2</strong>, so...</p>
  </li>
  <li><p>Is it too much for a nginx process use 150MB memory? You guys never meet such a problem?</p>
  </li>
  <li><p>The Low memory confused me, 32-bit system can use more than 3GB memory without PAE, so why the Low/Hign memory for? Is not a kernel bug?</p>
  </li>
  </ol>