]> granicus.if.org Git - apache/blob - docs/manual/programs/ab.xml.ko
f040856824c67d3c6bc91ecef35b1384744ea8c3
[apache] / docs / manual / programs / ab.xml.ko
1 <?xml version='1.0' encoding='EUC-KR' ?>
2 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
4 <!-- English Revision: 1.4 -->
5
6 <!--
7  Copyright 2004 The Apache Software Foundation
8
9  Licensed under the Apache License, Version 2.0 (the "License");
10  you may not use this file except in compliance with the License.
11  You may obtain a copy of the License at
12
13      http://www.apache.org/licenses/LICENSE-2.0
14
15  Unless required by applicable law or agreed to in writing, software
16  distributed under the License is distributed on an "AS IS" BASIS,
17  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  See the License for the specific language governing permissions and
19  limitations under the License.
20 -->
21
22 <manualpage metafile="ab.xml.meta">
23 <parentdocument href="./">Programs</parentdocument>
24
25 <title>ab - ¾ÆÆÄÄ¡ À¥¼­¹ö ¼º´É°Ë»ç µµ±¸</title>
26
27 <summary>
28     <p><code>ab</code>´Â ¾ÆÆÄÄ¡ ÇÏÀÌÆÛÅؽºÆ® Àü¼Û ÇÁ·ÎÅäÄÝ (HTTP)
29     ¼­¹öÀÇ ¼º´ÉÀ» °Ë»çÇÏ´Â(benchmarking) µµ±¸ÀÌ´Ù. ÇöÀç ¾ÆÆÄÄ¡°¡
30     ¾î¶»°Ô µ¿ÀÛÇÏ´ÂÁö ¾Ë·ÁÁØ´Ù. Æ¯È÷ ¾ÆÆÄÄ¡°¡ ÇöÀç Ãʴ砸ÀÇ
31     ¿äûÀ» ¼­ºñ½ºÇÏ´ÂÁö ¾Ë·ÁÁØ´Ù.</p>
32 </summary>
33 <seealso><a href="httpd.html">httpd</a></seealso>
34
35 <section id="synopsis"><title>°³¿ä</title>
36     <p><code><strong>ab</strong>
37     [ -<strong>A</strong> <var>auth-username</var>:<var>password</var> ]
38     [ -<strong>c</strong> <var>concurrency</var> ]
39     [ -<strong>C</strong> <var>cookie-name</var>=<var>value</var> ]
40     [ -<strong>d</strong> ]
41     [ -<strong>e</strong> <var>csv-file</var> ]
42     [ -<strong>g</strong> <var>gnuplot-file</var> ]
43     [ -<strong>h</strong> ]
44     [ -<strong>H</strong> <var>custom-header</var> ]
45     [ -<strong>i</strong> ]
46     [ -<strong>k</strong> ]
47     [ -<strong>n</strong> <var>requests</var> ]
48     [ -<strong>p</strong> <var>POST-file</var> ]
49     [ -<strong>P</strong> <var>proxy-auth-username</var>:<var>password</var> ]
50     [ -<strong>q</strong> ]
51     [ -<strong>s</strong> ]
52     [ -<strong>S</strong> ]
53     [ -<strong>t</strong> <var>timelimit</var> ]
54     [ -<strong>T</strong> <var>content-type</var> ]
55     [ -<strong>v</strong> <var>verbosity</var>]
56     [ -<strong>V</strong> ]
57     [ -<strong>w</strong> ]
58     [ -<strong>x</strong> <var>&lt;table&gt;-attributes</var> ]
59     [ -<strong>X</strong> <var>proxy</var>[:<var>port</var>] ]
60     [ -<strong>y</strong> <var>&lt;tr&gt;-attributes</var> ]
61     [ -<strong>z</strong> <var>&lt;td&gt;-attributes</var> ]
62     [http://]<var>hostname</var>[:<var>port</var>]/<var>path</var></code></p>
63 </section>
64
65 <section id="options"><title>¿É¼Ç</title>
66     <dl>
67     <dt><code>-A <var>auth-username</var>:<var>password</var></code></dt>
68     <dd>¼­¹ö¿¡°Ô BASIC Authentication Á¤º¸¸¦ Á¦°øÇÑ´Ù.
69     <code>:</code>À¸·Î ±¸ºÐÇÑ »ç¿ëÀÚ¸í°ú ¾ÏÈ£¸¦ base64 ÀÎÄÚµùÇÏ¿©
70     Àü¼ÛÇÑ´Ù. ¼­¹ö°¡ Á¤º¸¸¦ ¿ä±¸ÇÏ´ÂÁö (<em>¿¹¸¦ µé¾î</em>,
71     401 ÀÎÁõ Çʿ並 º¸³»´ÂÁö) °ü°è¾øÀÌ ¹®ÀÚ¿­À» Àü¼ÛÇÑ´Ù.</dd>
72
73     <dt><code>-c <var>concurrency</var></code></dt>
74     <dd>µ¿½Ã¿¡ ¿äûÇϴ ¿äû¼ö. ±âº»ÀûÀ¸·Î Çѹø¿¡ ÇÑ ¿äû¸¸À»
75     º¸³½´Ù.</dd>
76
77     <dt><code>-C <var>cookie-name</var>=<var>value</var></code></dt>
78     <dd>¿äû¿¡ <code>Cookie:</code> Çì´õ¸¦ Ãß°¡ÇÑ´Ù. ¾Æ±Ô¸ÕÆ®´Â
79     º¸Åë <code><var>name</var>=<var>value</var></code>¿Í °°Àº
80     ½ÖÀÌ´Ù. ÀÌ ¿É¼ÇÀº ¿©·¯¹ø »ç¿ëÇÒ ¼ö ÀÖ´Ù.</dd>
81
82     <dt><code>-d</code></dt>
83     <dd>"percentage served within XX [ms] table"À» Ãâ·ÂÇÏÁö
84     ¾Ê´Â´Ù. (ȣȯ¼ºÀ» À§ÇØ).</dd>
85
86     <dt><code>-e <var>csv-file</var></code></dt>
87     <dd>¿äûÀ» Ã³¸®Çϴµ¥ °É¸° (¹Ð¸®ÃÊ ´ÜÀ§) ½Ã°£µéÀÇ (1%¿¡¼­
88     100%) ´©Àû¹éºÐÀ²À» ½°Ç¥·Î ±¸ºÐÇÑ Çü½Ä(CSV)À¸·Î Ãâ·ÂÇÑ´Ù.
89     °á°ú¸¦ À̹̠'Á¤¸®'ÇÏ¿´±â¶§¹®¿¡ 'gnuplot' ÆÄÀϺ¸´Ù º¸Åë ´õ
90     À¯¿ëÇÏ´Ù.</dd>
91
92     <dt><code>-g <var>gnuplot-file</var></code></dt>
93     <dd>ÃøÁ¤ÇÑ ¸ðµç °ªÀ» 'gnuplot' È¤Àº TSV (Tab separate values,
94     ÅÇÀ¸·Î ±¸ºÐÇÑ °ª) ÆÄÀÏ¿¡ ±â·ÏÇÑ´Ù. Gnuplot, IDL, Mathematica,
95     Igor, ½ÉÁö¾î Excell °°Àº ÇÁ·Î±×·¥¿¡¼­µµ ÀÌ·± ÆÄÀÏÀ» ½±°Ô
96     ÀÐÀ» ¼ö ÀÖ´Ù. ÆÄÀÏÀǠù¹ø° ÁÙ¿¡ Ç׸ñÀ̸§ÀÌ ³ª¿Â´Ù. </dd>
97
98     <dt><code>-h</code></dt>
99     <dd>»ç¿ë¹ýÀ» Ãâ·ÂÇÑ´Ù.</dd>
100
101     <dt><code>-H <var>custom-header</var></code></dt>
102     <dd>¿äû¿¡ Çì´õ¸¦ Ãß°¡ÇÑ´Ù. ¾Æ±Ô¸ÕÆ®´Â º¸Åë ÄÝ·ÐÀ¸·Î ±¸ºÐÇÑ
103     ½ÖÀΠ(<em>¿¹¸¦ µé¾î</em>,
104     <code>"Accept-Encoding: zip/zop;8bit"</code>) À¯È¿ÇÑ
105     Çì´õÁÙÀÌ´Ù.</dd>
106
107     <dt><code>-i</code></dt>
108     <dd><code>GET</code> ´ë½Å <code>HEAD</code> ¿äûÀ» ÇÑ´Ù.</dd>
109
110     <dt><code>-k</code></dt>
111     <dd>HTTP KeepAlive ±â´ÉÀ» »ç¿ëÇÑ´Ù. <em>¿¹¸¦ µé¾î</em>,
112     ÇÑ HTTP ¼¼¼Ç¿¡¼­ ¿©·¯ ¿äûÀ» ÇÑ´Ù. ±âº»ÀûÀ¸·Î KeepAlive¸¦
113     »ç¿ëÇÏÁö ¾Ê´Â´Ù.</dd>
114
115     <dt><code>-n <var>requests</var></code></dt>
116     <dd>¼º´ÉÀ» °Ë»çÇϱâÀ§ÇØ º¸³»´Â ¿äû¼ö. ±âº»°ªÀ¸·Î ¿äûÀ»
117     Çѹø¸¸ º¸³»±â¶§¹®¿¡ ÀϹÝÀûÀΠ¼º´É°Ë»ç °á°ú¸¦ ¾òÀ» ¼ö ¾ø´Ù.</dd>
118
119     <dt><code>-p <var>POST-file</var></code></dt>
120     <dd>POST ÀÚ·á ÆÄÀÏ.</dd>
121
122     <dt><code>-P <var>proxy-auth-username</var>:<var>password</var></code></dt>
123     <dd>ÇÁ·Ï½Ã¸¦ ÅëÇØ BASIC Authentication Á¤º¸¸¦ Á¦°øÇÑ´Ù.
124     <code>:</code>·Î ±¸ºÐÇÑ »ç¿ëÀÚ¸í°ú ¾ÏÈ£¸¦ base64 ÀÎÄÚµùÇÏ¿©
125     Àü¼ÛÇÑ´Ù. ÇÁ·Ï½Ã°¡ Á¤º¸¸¦ ¿ä±¸ÇÏ´ÂÁö (<em>¿¹¸¦ µé¾î</em>,
126     401 ÀÎÁõ Çʿ並 º¸³»´ÂÁö) °ü°è¾øÀÌ ¹®ÀÚ¿­À» Àü¼ÛÇÑ´Ù.</dd>
127
128     <dt><code>-q</code></dt>
129     <dd>150°³ ÀÌ»ó ¿äûÀ» º¸³¾¶§ <code>ab</code>´Â 10% È¤Àº
130     ¸Å 100 ¿äû´ç <code>Ç¥ÁØ¿À·ù</code>¿¡ ÁøÇà»óȲÀ» Ãâ·ÂÇÑ´Ù.
131     <code>-q</code> ¿É¼ÇÀº ÀÌ ¹®±¸¸¦ Ãâ·ÂÇÏÁö ¾Ê´Â´Ù.</dd>
132
133     <dt><code>-s</code></dt>
134     <dd>±â´ÉÀ» Ãß°¡ÇÏ¿© ÄÄÆÄÀÏÇÏ¿´´Ù¸é (<code>ab -h</code>·Î
135     È®ÀÎÇÒ ¼ö ÀÖ´Ù) <code>http</code> ÇÁ·ÎÅäÄÝ ´ë½Å SSLÀ» »ç¿ëÇÑ
136     <code>https</code> ÇÁ·ÎÅäÄÝÀ» »ç¿ëÇÑ´Ù. ÀÌ ±â´ÉÀº ½ÇÇèÀûÀÌ°í
137     <em>¸Å¿ì</em> ±âÃÊÀûÀÌ´Ù. ¾Æ¸¶µµ »ç¿ëÀ» ²¨·ÁÇÒ °ÍÀÌ´Ù.</dd>
138
139     <dt><code>-S</code></dt>
140     <dd>Áß°£°ª°ú Ç¥ÁØÆíÂ÷¸¦ Ãâ·ÂÇÏÁö ¾Ê°í, Æò±Õ°ú Áß°£°ªÀÇ Â÷ÀÌ°¡
141     Ç¥ÁØÆíÂ÷º¸´Ù Å©´õ¶óµµ °æ°í/¿À·ù¸¦ Ãâ·ÂÇÏÁö ¾Ê´Â´Ù.
142     ÃÖ¼Ò/Æò±Õ/ÃÖ´ë °ªÀ» Ãâ·ÂÇÑ´Ù. (ȣȯ¼ºÀ» À§ÇØ).</dd>
143
144     <dt><code>-t <var>timelimit</var></code></dt>
145     <dd>¼º´ÉÀ» °Ë»çÇϴ ÃÖ´ë ÃÊ´ÜÀ§ ½Ã°£. ³»ºÎÀûÀ¸·Î
146     <code>-n 50000</code>À» °¡Á¤ÇÑ´Ù. Á¤ÇØÁø ½Ã°£µ¿¾È ¼­¹ö ¼º´ÉÀ»
147     °Ë»çÇÒ¶§ »ç¿ëÇÑ´Ù. ±âº»ÀûÀ¸·Î ½Ã°£Á¦ÇÑ ¾øÀÌ °Ë»çÇÑ´Ù.</dd>
148
149     <dt><code>-T <var>content-type</var></code></dt>
150     <dd>POST ÀÚ·áÀÇ Content-type Çì´õ.</dd>
151
152     <dt><code>-v <var>verbosity</var></code></dt>
153     <dd>Ãâ·ÂÀÇ ÀÚ¼¼ÇÔ ¼öÁØÀ» ÁöÁ¤ÇÑ´Ù. <code>4</code> ÀÌ»óÀ̸é
154     Çì´õ¿¡ ´ëÇÑ Á¤º¸¸¦, <code>3</code> ÀÌ»óÀ̸é (404, 202, µî)
155     ÀÀ´äÄڵ带, <code>2</code> ÀÌ»óÀ̸頰æ°í(warning)¿Í
156     Á¤º¸(info)¸¦ Ãâ·ÂÇÑ´Ù.</dd>
157
158     <dt><code>-V</code></dt>
159     <dd>¹öÀüÀ» Ãâ·ÂÇÏ°í Á¾·áÇÑ´Ù.</dd>
160
161     <dt><code>-w</code></dt>
162     <dd>°á°ú¸¦ HTML Ç¥·Î Ãâ·ÂÇÑ´Ù. ±âº»ÀûÀ¸·Î Ç¥¸¦ Èò ¹è°æ¿¡
163     µÎ ¿­·Î ÀÛ¼ºÇÑ´Ù.</dd>
164
165     <dt><code>-x <var>&lt;table&gt;-attributes</var></code></dt>
166     <dd><code>&lt;table&gt;</code>ÀÇ ¼Ó¼ºÀ¸·Î »ç¿ëÇÒ ¹®ÀÚ¿­.
167     ¼Ó¼ºÀ» <code>&lt;table <var>¿©±â¿¡</var> &gt;</code>
168     Ãß°¡ÇÑ´Ù.</dd>
169
170     <dt><code>-X <var>proxy</var>[:<var>port</var>]</code></dt>
171     <dd>ÇÁ·Ï½Ã ¼­¹ö¸¦ »ç¿ëÇÏ¿© ¿äûÇÑ´Ù.</dd>
172
173     <dt><code>-y <var>&lt;tr&gt;-attributes</var></code></dt>
174     <dd><code>&lt;tr&gt;</code>ÀÇ ¼Ó¼ºÀ¸·Î »ç¿ëÇÒ ¹®ÀÚ¿­.</dd>
175
176     <dt><code>-z <var>&lt;td&gt;-attributes</var></code></dt>
177     <dd><code>&lt;td&gt;</code>ÀÇ ¼Ó¼ºÀ¸·Î »ç¿ëÇÒ ¹®ÀÚ¿­.</dd>
178     </dl>
179 </section>
180
181 <section id="bugs"><title>¹ö±×</title>
182     <p>Á¤ÀûÀ¸·Î ±æÀÌ°¡ °íÁ¤µÈ ¹öÆÛ¸¦ ¸¹ÀÌ »ç¿ëÇÑ´Ù. ¸í·ÉÇà
183     ¾Æ±Ô¸ÕÆ®, ¼­¹öÀÇ ÀÀ´ä Çì´õ, ´Ù¸¥ ¿ÜºÎ ÀԷµéÀ» °°ÀÌ
184     ÀоîµéÀ̸鼭 ¹®Á¦°¡ ¹ß»ýÇÒ ¼ö ÀÖ´Ù.</p>
185
186     <p>ÀÌ ÇÁ·Î±×·¥Àº HTTP/1.x¸¦ ¿ÏÀüÈ÷ ±¸ÇöÇÏÁö ¾Ê´Â´Ù; ´ÜÁö
187     '±â´ëÇÏ´Â' Çü½ÄÀÇ ÀÀ´ä¸¸À» ¹Þ´Â´Ù. <code>strstr(3)</code>À»
188     ¸Å¿ì ¸¹ÀÌ »ç¿ë±â¶§¹®¿¡ ¼Óµµ°¡ ¹®Á¦°¡ µÉ ¼ö ÀÖ´Ù; <em>Áï</em>,
189     ¼­¹ö ¼º´Éº¸´Ù´Â <code>ab</code> ¼º´ÉÀ» ÃøÁ¤ÇÏ°Ô µÉ ¼öµµ
190     ÀÖ´Ù.</p>
191 </section>
192
193 </manualpage>