<?xml version='1.0' encoding='EUC-KR' ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
<!-- English Revision: 421174 -->

<!--
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional information regarding copyright ownership.
 The ASF licenses this file to You under the Apache License, Version 2.0
 (the "License"); you may not use this file except in compliance with
 the License.  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->

<manualpage metafile="fd-limits.xml.meta">
<parentdocument href="./">°¡»óÈ£½ºÆ®</parentdocument>
  <title>ÆÄÀÏ±â¼úÀÚ(file descriptor) ÇÑ°è</title>

<summary>

    <p>°¡»óÈ£½ºÆ®¸¦ ¸¹ÀÌ »ç¿ëÇÏ°í °¢ °¡»óÈ£½ºÆ®¿¡ ¼­·Î ´Ù¸¥
    ·Î±×ÆÄÀÏÀ» ÁöÁ¤ÇÏ¸é, ¾ÆÆÄÄ¡°¡ »ç¿ë°¡´ÉÇÑ ÆÄÀÏ±â¼úÀÚ(file
    descriptor, ÈçÈ÷ <cite>ÆÄÀÏÇÚµé(file handle)</cite>ÀÌ¶ó°í
    ºÎ¸§)¸¦ ´Ù ½á¹ö¸± ¼ö ÀÖ´Ù. ¾ÆÆÄÄ¡°¡ »ç¿ëÇÏ´Â ÆÄÀÏ±â¼úÀÚÀÇ
    ÃÑ °³¼ö´Â ¿À·ù ·Î±×ÆÄÀÏ´ç ÇÑ°³, ´Ù¸¥ ·Î±×ÆÄÀÏ Áö½Ã¾î´ç
    ÇÑ°³, Ãß°¡·Î ³»ºÎ¿ëµµ·Î 10-20°³¸¦ ´õÇÑ ¼ö´Ù. À¯´Ð½º ¿î¿µÃ¼Á¦´Â
    ÇÁ·Î¼¼½º°¡ »ç¿ëÇÒ ¼ö ÀÖ´Â ÆÄÀÏ±â¼úÀÚ °³¼ö¸¦ Á¦ÇÑÇÑ´Ù. ÀÌ ÇÑ°è´Â
    º¸Åë 64°³·Î, º¸Åë ÀÌº¸´Ù Å« hard-limit±îÁö ´Ã¸± ¼ö ÀÖ´Ù.</p>

    <p>¾ÆÆÄÄ¡´Â ÀÌ ÇÑ°è¸¦ ÇÊ¿äÇÑ¸¸Å­ ´Ã¸®·Á°í ÇÏÁö¸¸, ½ÇÆÐÇÏ´Â
    °æ¿ì°¡ ÀÖ´Ù:</p>

    <ol>
      <li>½Ã½ºÅÛÀÌ <code>setrlimit()</code> ½Ã½ºÅÛÈ£ÃâÀ»
      Á¦°øÇÏÁö ¾Ê´Â´Ù.</li>

      <li>(Solaris 2.3°ú °°ÀÌ) ½Ã½ºÅÛ¿¡¼­
      <code>setrlimit(RLIMIT_NOFILE)</code> ÇÔ¼ö°¡ µ¿ÀÛÇÏÁö
      ¾Ê´Â´Ù.</li>

      <li>ÇÊ¿äÇÑ ÆÄÀÏ±â¼úÀÚ °³¼ö°¡ hard limit º¸´Ù ¸¹´Ù.</li>
      
      <li>(Solaris 2) ½Ã½ºÅÛÀÌ stdio ½ºÆ®¸²À» 256ÀÌÇÏÀÇ
      ÆÄÀÏ±â¼úÀÚ¸¸À» »ç¿ëÇÏµµ·Ï Á¦ÇÑÇÏ´Â µî ÆÄÀÏ±â¼úÀÚ¿¡
      Á¦¾àÀ» °¡ÇÑ´Ù.</li>
    </ol>

	<p>ÀÌ °æ¿ì ÇØ°áÃ¥Àº:</p>

    <ul>
      <li>·Î±×ÆÄÀÏ °³¼ö¸¦ ÁÙÀÎ´Ù. <directive type="section"
      module="core">VirtualHost</directive> ¼½¼Ç¿¡¼­ ·Î±×ÆÄÀÏÀ»
      ÁöÁ¤ÇÏÁö ¾Ê°í ÁÖ ·Î±×ÆÄÀÏÀ» »ç¿ëÇÑ´Ù. (´õ ÀÚ¼¼ÇÑ ¹æ¹ýÀº
      ¾Æ·¡ <a href="#splitlogs">·Î±×ÆÄÀÏ ³ª´©±â</a>¸¦ Âü°íÇÏ¶ó.)</li>

      <li>
        »ç¿ëÇÏ´Â ½Ã½ºÅÛÀÌ (À§ÀÇ) 1¹øÂ°³ª 2¹øÂ° °æ¿ì¿¡ ÇØ´çÇÑ´Ù¸é,
        ´ÙÀ½°ú °°Àº ½ºÅ©¸³Æ®·Î ¾ÆÆÄÄ¡¸¦ ½ÃÀÛÇÏ±â Àü¿¡ ÆÄÀÏ±â¼úÀÚ
        ÇÑ°è¸¦ ´Ã¸°´Ù.

        <example>
          <code>#!/bin/sh<br />
           ulimit -S -n 100<br />
           exec httpd</code>
        </example>
      </li>
    </ul>

    <p>ÆÄÀÏ±â¼úÀÚ ¹®Á¦¿Í °¢ ¿î¿µÃ¼Á¦¿¡¼­ÀÇ ÇØ°á¹æ¹ý¿¡ ´ëÇÑ
    ÀÚ¼¼ÇÑ ³»¿ëÀº <a href="../misc/descriptors.html">ÆÄÀÏ±â¼úÀÚ¿Í
    ¾ÆÆÄÄ¡</a> ¹®¼­¸¦ Âü°íÇÏ¶ó.</p>

</summary>

<section id="splitlogs"><title>·Î±×ÆÄÀÏ ³ª´©±â</title>

<p>¿©·¯ °¡»óÈ£½ºÆ®°¡ °°Àº ·Î±×ÆÄÀÏÀ» »ç¿ëÇÑ´Ù¸é ³ªÁß¿¡ °¢
°¡»óÈ£½ºÆ®ÀÇ Åë°èºÐ¼®À» À§ÇØ ·Î±×ÆÄÀÏÀ» ³ª´©°í ½ÍÀ» °ÍÀÌ´Ù.
ÀÌ ÀÛ¾÷Àº ´ÙÀ½°ú °°ÀÌ ÇÒ ¼ö ÀÖ´Ù.</p>

<p>¸ÕÀú ·Î±× Ç×¸ñ¿¡ °¡»óÈ£½ºÆ® Á¤º¸¸¦ Ãß°¡ÇÑ´Ù. ÀÌ¸¦ À§ÇØ
<directive module="mod_log_config">LogFormat</directive>
Áö½Ã¾î¿Í <code>%v</code> º¯¼ö¸¦ »ç¿ëÇÑ´Ù. ÀÌ º¯¼ö¸¦ ·Î±×
Çü½Ä¹®ÀÚ¿­ ¾Õ¿¡ Ãß°¡ÇÑ´Ù:</p>

<example>
LogFormat "%v %h %l %u %t \"%r\" %&gt;s %b" vhost<br />
CustomLog logs/multiple_vhost_log vhost
</example>

<p>±×·¯¸é common ·Î±×Çü½Ä ¾Õ¿¡ (<directive
module="core">ServerName</directive> Áö½Ã¾î¿¡ ³ª¿À´Â) Á¤±Ô
°¡»óÈ£½ºÆ®¸¦ Æ÷ÇÔÇÏ¿© ·Î±×ÆÄÀÏÀ» ±â·ÏÇÑ´Ù. (·Î±×ÆÄÀÏ
»ç¿ëÀÚÁ¤ÀÇ¿¡ °üÇÑ ³»¿ëÀº <directive
module="mod_log_config">»ç¿ëÀÚÁ¤ÀÇ ·Î±×Çü½Ä</directive>À»
Âü°íÇÏ¶ó.)</p>

<p>·Î±×ÆÄÀÏÀ» (°¡»óÈ£½ºÆ®´ç ÇÑ ÆÄÀÏ¾¿) ³ª´©°í ½Í´Ù¸é <code><a
href="../programs/other.html">split-logfile</a></code> ÇÁ·Î±×·¥À»
»ç¿ëÇÑ´Ù. ÀÌ ÇÁ·Î±×·¥Àº ¾ÆÆÄÄ¡ ¹èÆ÷º»ÀÇ <code>support</code>
µð·ºÅä¸®¿¡ ÀÖ´Ù.</p>

<p>´ÙÀ½°ú °°ÀÌ ÇÁ·Î±×·¥À» ½ÇÇàÇÑ´Ù:</p>

<example>
split-logfile &lt; /logs/multiple_vhost_log
</example>

<p>°¡»óÈ£½ºÆ® ·Î±×ÆÄÀÏÀ» °¡Áö°í ÀÌ ÇÁ·Î±×·¥À» ½ÇÇàÇÏ¸é ·Î±×ÆÄÀÏ¿¡
³ª¿À´Â °¢ °¡»óÈ£½ºÆ®´ç ÆÄÀÏÀ» ÇÏ³ª¾¿ ¸¸µç´Ù. °¢°¢ÀÇ ÆÄÀÏ¸íÀº
<code>hostname.log</code>ÀÌ´Ù.</p>

</section>
</manualpage>

