Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
apache2-doc /
manual /
ja /
mod /
Delete
Unzip
Name
Size
Permission
Date
Action
core.html
258.54
KB
-rw-r--r--
2026-06-12 05:08
directive-dict.html
20.42
KB
-rw-r--r--
2026-06-12 05:08
directives.html
58.25
KB
-rw-r--r--
2026-06-12 05:08
event.html
28.64
KB
-rw-r--r--
2026-06-12 05:08
index.html
25.6
KB
-rw-r--r--
2026-06-12 05:08
mod_access_compat.html
30.34
KB
-rw-r--r--
2026-06-12 05:08
mod_actions.html
14.2
KB
-rw-r--r--
2026-06-12 05:08
mod_alias.html
31.39
KB
-rw-r--r--
2026-06-12 05:08
mod_allowmethods.html
7.79
KB
-rw-r--r--
2026-06-12 05:08
mod_asis.html
9.48
KB
-rw-r--r--
2026-06-12 05:08
mod_auth_basic.html
16.11
KB
-rw-r--r--
2026-06-12 05:08
mod_auth_digest.html
20.06
KB
-rw-r--r--
2026-06-12 05:08
mod_auth_form.html
50.26
KB
-rw-r--r--
2026-06-12 05:08
mod_authn_anon.html
18.34
KB
-rw-r--r--
2026-06-12 05:08
mod_authn_core.html
16.45
KB
-rw-r--r--
2026-06-12 05:08
mod_authn_dbd.html
15.01
KB
-rw-r--r--
2026-06-12 05:08
mod_authn_dbm.html
12.84
KB
-rw-r--r--
2026-06-12 05:08
mod_authn_file.html
12.18
KB
-rw-r--r--
2026-06-12 05:08
mod_authn_socache.html
18.79
KB
-rw-r--r--
2026-06-12 05:08
mod_authnz_fcgi.html
26.93
KB
-rw-r--r--
2026-06-12 05:08
mod_authnz_ldap.html
86.06
KB
-rw-r--r--
2026-06-12 05:08
mod_authz_core.html
39.59
KB
-rw-r--r--
2026-06-12 05:08
mod_authz_dbd.html
18.13
KB
-rw-r--r--
2026-06-12 05:08
mod_authz_dbm.html
12.7
KB
-rw-r--r--
2026-06-12 05:08
mod_authz_groupfile.html
9.63
KB
-rw-r--r--
2026-06-12 05:08
mod_authz_host.html
13.12
KB
-rw-r--r--
2026-06-12 05:08
mod_authz_owner.html
12.58
KB
-rw-r--r--
2026-06-12 05:08
mod_authz_user.html
7.09
KB
-rw-r--r--
2026-06-12 05:08
mod_autoindex.html
65.16
KB
-rw-r--r--
2026-06-12 05:08
mod_brotli.html
22.65
KB
-rw-r--r--
2026-06-12 05:08
mod_buffer.html
8.76
KB
-rw-r--r--
2026-06-12 05:08
mod_cache.html
53.04
KB
-rw-r--r--
2026-06-12 05:08
mod_cache_disk.html
18.31
KB
-rw-r--r--
2026-06-12 05:08
mod_cache_socache.html
18.21
KB
-rw-r--r--
2026-06-12 05:08
mod_cern_meta.html
10.83
KB
-rw-r--r--
2026-06-12 05:08
mod_cgi.html
21.13
KB
-rw-r--r--
2026-06-12 05:08
mod_cgid.html
11.98
KB
-rw-r--r--
2026-06-12 05:08
mod_charset_lite.html
15.11
KB
-rw-r--r--
2026-06-12 05:08
mod_data.html
7.2
KB
-rw-r--r--
2026-06-12 05:08
mod_dav.html
21.93
KB
-rw-r--r--
2026-06-12 05:08
mod_dav_fs.html
10.38
KB
-rw-r--r--
2026-06-12 05:08
mod_dav_lock.html
10.24
KB
-rw-r--r--
2026-06-12 05:08
mod_dbd.html
24.89
KB
-rw-r--r--
2026-06-12 05:08
mod_deflate.html
32.67
KB
-rw-r--r--
2026-06-12 05:08
mod_dialup.html
7.2
KB
-rw-r--r--
2026-06-12 05:08
mod_dir.html
19.5
KB
-rw-r--r--
2026-06-12 05:08
mod_dumpio.html
10.1
KB
-rw-r--r--
2026-06-12 05:08
mod_echo.html
7.59
KB
-rw-r--r--
2026-06-12 05:08
mod_env.html
10.93
KB
-rw-r--r--
2026-06-12 05:08
mod_example_hooks.html
11.01
KB
-rw-r--r--
2026-06-12 05:08
mod_expires.html
18.09
KB
-rw-r--r--
2026-06-12 05:08
mod_ext_filter.html
22.51
KB
-rw-r--r--
2026-06-12 05:08
mod_file_cache.html
15.2
KB
-rw-r--r--
2026-06-12 05:08
mod_filter.html
33.35
KB
-rw-r--r--
2026-06-12 05:08
mod_headers.html
24.9
KB
-rw-r--r--
2026-06-12 05:08
mod_heartbeat.html
9.29
KB
-rw-r--r--
2026-06-12 05:08
mod_heartmonitor.html
11.92
KB
-rw-r--r--
2026-06-12 05:08
mod_http2.html
75.84
KB
-rw-r--r--
2026-06-12 05:08
mod_ident.html
10.86
KB
-rw-r--r--
2026-06-12 05:08
mod_imagemap.html
21.06
KB
-rw-r--r--
2026-06-12 05:08
mod_include.html
55.39
KB
-rw-r--r--
2026-06-12 05:08
mod_info.html
14.92
KB
-rw-r--r--
2026-06-12 05:08
mod_isapi.html
23.44
KB
-rw-r--r--
2026-06-12 05:08
mod_lbmethod_bybusyness.html
7.6
KB
-rw-r--r--
2026-06-12 05:08
mod_lbmethod_byrequests.html
12.3
KB
-rw-r--r--
2026-06-12 05:08
mod_lbmethod_bytraffic.html
7.95
KB
-rw-r--r--
2026-06-12 05:08
mod_lbmethod_heartbeat.html
8.02
KB
-rw-r--r--
2026-06-12 05:08
mod_ldap.html
50.89
KB
-rw-r--r--
2026-06-12 05:08
mod_log_config.html
33.74
KB
-rw-r--r--
2026-06-12 05:08
mod_log_debug.html
9.95
KB
-rw-r--r--
2026-06-12 05:08
mod_log_forensic.html
14.05
KB
-rw-r--r--
2026-06-12 05:08
mod_logio.html
10.07
KB
-rw-r--r--
2026-06-12 05:08
mod_lua.html
93.06
KB
-rw-r--r--
2026-06-12 05:08
mod_macro.html
15.29
KB
-rw-r--r--
2026-06-12 05:08
mod_md.html
109.91
KB
-rw-r--r--
2026-06-12 05:08
mod_mime.html
71.07
KB
-rw-r--r--
2026-06-12 05:08
mod_mime_magic.html
16.52
KB
-rw-r--r--
2026-06-12 05:08
mod_negotiation.html
22.4
KB
-rw-r--r--
2026-06-12 05:08
mod_nw_ssl.html
9.27
KB
-rw-r--r--
2026-06-12 05:08
mod_privileges.html
29.36
KB
-rw-r--r--
2026-06-12 05:08
mod_proxy.html
93.29
KB
-rw-r--r--
2026-06-12 05:08
mod_proxy_ajp.html
32.16
KB
-rw-r--r--
2026-06-12 05:08
mod_proxy_balancer.html
18.7
KB
-rw-r--r--
2026-06-12 05:08
mod_proxy_connect.html
8.94
KB
-rw-r--r--
2026-06-12 05:08
mod_proxy_express.html
13.19
KB
-rw-r--r--
2026-06-12 05:08
mod_proxy_fcgi.html
22.14
KB
-rw-r--r--
2026-06-12 05:08
mod_proxy_fdpass.html
7.2
KB
-rw-r--r--
2026-06-12 05:08
mod_proxy_ftp.html
18.84
KB
-rw-r--r--
2026-06-12 05:08
mod_proxy_hcheck.html
17.43
KB
-rw-r--r--
2026-06-12 05:08
mod_proxy_html.html
34.16
KB
-rw-r--r--
2026-06-12 05:08
mod_proxy_http.html
11.63
KB
-rw-r--r--
2026-06-12 05:08
mod_proxy_http2.html
10.05
KB
-rw-r--r--
2026-06-12 05:08
mod_proxy_scgi.html
14.49
KB
-rw-r--r--
2026-06-12 05:08
mod_proxy_uwsgi.html
8.15
KB
-rw-r--r--
2026-06-12 05:08
mod_proxy_wstunnel.html
10.73
KB
-rw-r--r--
2026-06-12 05:08
mod_ratelimit.html
6.72
KB
-rw-r--r--
2026-06-12 05:08
mod_reflector.html
8.28
KB
-rw-r--r--
2026-06-12 05:08
mod_remoteip.html
26.54
KB
-rw-r--r--
2026-06-12 05:08
mod_reqtimeout.html
12.49
KB
-rw-r--r--
2026-06-12 05:08
mod_request.html
9.03
KB
-rw-r--r--
2026-06-12 05:08
mod_rewrite.html
82.27
KB
-rw-r--r--
2026-06-12 05:08
mod_sed.html
11.53
KB
-rw-r--r--
2026-06-12 05:08
mod_session.html
35.31
KB
-rw-r--r--
2026-06-12 05:08
mod_session_cookie.html
13.55
KB
-rw-r--r--
2026-06-12 05:08
mod_session_crypto.html
17.73
KB
-rw-r--r--
2026-06-12 05:08
mod_session_dbd.html
25.2
KB
-rw-r--r--
2026-06-12 05:08
mod_setenvif.html
21.52
KB
-rw-r--r--
2026-06-12 05:08
mod_slotmem_plain.html
7.76
KB
-rw-r--r--
2026-06-12 05:08
mod_slotmem_shm.html
8.36
KB
-rw-r--r--
2026-06-12 05:08
mod_so.html
16.07
KB
-rw-r--r--
2026-06-12 05:08
mod_socache_dbm.html
5.82
KB
-rw-r--r--
2026-06-12 05:08
mod_socache_dc.html
5.87
KB
-rw-r--r--
2026-06-12 05:08
mod_socache_memcache.html
8.34
KB
-rw-r--r--
2026-06-12 05:08
mod_socache_redis.html
10
KB
-rw-r--r--
2026-06-12 05:08
mod_socache_shmcb.html
5.9
KB
-rw-r--r--
2026-06-12 05:08
mod_speling.html
14.29
KB
-rw-r--r--
2026-06-12 05:08
mod_ssl.html
200.72
KB
-rw-r--r--
2026-06-12 05:08
mod_status.html
11.25
KB
-rw-r--r--
2026-06-12 05:08
mod_substitute.html
14.37
KB
-rw-r--r--
2026-06-12 05:08
mod_suexec.html
8.7
KB
-rw-r--r--
2026-06-12 05:08
mod_systemd.html
7.57
KB
-rw-r--r--
2026-06-12 05:08
mod_unique_id.html
18.17
KB
-rw-r--r--
2026-06-12 05:08
mod_unixd.html
13.54
KB
-rw-r--r--
2026-06-12 05:08
mod_userdir.html
12.83
KB
-rw-r--r--
2026-06-12 05:08
mod_usertrack.html
19.68
KB
-rw-r--r--
2026-06-12 05:08
mod_version.html
10.58
KB
-rw-r--r--
2026-06-12 05:08
mod_vhost_alias.html
21.12
KB
-rw-r--r--
2026-06-12 05:08
mod_watchdog.html
7.73
KB
-rw-r--r--
2026-06-12 05:08
mod_xml2enc.html
15.3
KB
-rw-r--r--
2026-06-12 05:08
module-dict.html
10.23
KB
-rw-r--r--
2026-06-12 05:08
mpm_common.html
68.66
KB
-rw-r--r--
2026-06-12 05:08
mpm_netware.html
9.82
KB
-rw-r--r--
2026-06-12 05:08
mpm_winnt.html
7.91
KB
-rw-r--r--
2026-06-12 05:08
mpmt_os2.html
7.5
KB
-rw-r--r--
2026-06-12 05:08
overrides.html
69.49
KB
-rw-r--r--
2026-06-12 05:08
prefork.html
16.85
KB
-rw-r--r--
2026-06-12 05:08
quickreference.html
197.1
KB
-rw-r--r--
2026-06-12 05:08
worker.html
16.42
KB
-rw-r--r--
2026-06-12 05:08
Save
Rename
<!DOCTYPE html SYSTEM "about:legacy-compat"> <html lang="ja"><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta content="width=device-width, initial-scale=1" name="viewport"> <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX This file is generated from xml source: DO NOT EDIT XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> <title>mpm_common - Apache HTTP サーバ バージョン 2.4</title> <link href="../../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet"> <link href="../../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size"> <link href="../../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css"><link rel="stylesheet" type="text/css" href="../../style/css/prettify.css"> <script src="../../style/scripts/prettify.min.js"> </script> <link href="../../images/favicon.png" rel="shortcut icon"></head> <body> <div id="page-header"> <p class="menu"><a href="../mod/index.html">モジュール</a> | <a href="../mod/quickreference.html">ディレクティブ</a> | <a href="https://cwiki.apache.org/confluence/display/httpd/FAQ">FAQ</a> | <a href="../glossary.html">用語</a> | <a href="../sitemap.html">サイトマップ</a> | <a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2">Report a bug</a></p> <p class="apache">Apache HTTP サーバ バージョン 2.4</p> <img alt="" src="../../images/feather.png"></div> <div class="up"><a href="./index.html"><img title="<-" alt="<-" src="../../images/left.gif"></a></div> <div id="path"> <a href="https://www.apache.org/">Apache</a> > <a href="https://httpd.apache.org/">HTTP サーバ</a> > <a href="https://httpd.apache.org/docs/">ドキュメンテーション</a> > <a href="../index.html">バージョン 2.4</a> > <a href="./index.html">モジュール</a></div> <div id="page-content"> <div id="preamble"><h1>Apache MPM 共通ディレクティブ</h1> <button aria-label="Toggle language list" class="lang-toggle"><svg xmlns="http://www.w3.org/2000/svg" stroke-width="2" stroke="currentColor" fill="none" viewBox="0 0 24 24" height="16" width="16"><circle r="10" cy="12" cx="12"/><line y2="12" x2="22" y1="12" x1="2"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg></button> <div class="toplang"> <p><span>翻訳済み言語: </span><a href="../../de/mod/mpm_common.html" hreflang="de" rel="alternate" title="Deutsch"> de </a> | <a href="../../en/mod/mpm_common.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../../fr/mod/mpm_common.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | <a href="../../ja/mod/mpm_common.html" title="Japanese"> ja </a> | <a href="../../tr/mod/mpm_common.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> </div> <div class="outofdate">この日本語訳はすでに古くなっている 可能性があります。 最近更新された内容を見るには英語版をご覧下さい。 </div> <table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td>二つ以上のマルチプロセッシングモジュール (MPM) で実装されているディレクティブのコレクション</td></tr> <tr><th><a href="module-dict.html#Status">ステータス:</a></th><td>MPM</td></tr></table> </div> <div id="quickview"><h3 class="directives">ディレクティブ</h3> <ul id="toc"> <li><img alt="" src="../../images/down.gif"> <a href="#coredumpdirectory">CoreDumpDirectory</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#enableexceptionhook">EnableExceptionHook</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#gracefulshutdowntimeout">GracefulShutdownTimeout</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#listen">Listen</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#listenbacklog">ListenBackLog</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#listencoresbucketsratio">ListenCoresBucketsRatio</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#listentcpdeferaccept">ListenTCPDeferAccept</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#maxconnectionsperchild">MaxConnectionsPerChild</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#maxmemfree">MaxMemFree</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#maxrequestworkers">MaxRequestWorkers</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#maxsparethreads">MaxSpareThreads</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#minsparethreads">MinSpareThreads</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#pidfile">PidFile</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#receivebuffersize">ReceiveBufferSize</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#scoreboardfile">ScoreBoardFile</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#sendbuffersize">SendBufferSize</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#serverlimit">ServerLimit</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#startservers">StartServers</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#startthreads">StartThreads</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#threadlimit">ThreadLimit</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#threadsperchild">ThreadsPerChild</a></li> <li><img alt="" src="../../images/down.gif"> <a href="#threadstacksize">ThreadStackSize</a></li> </ul> <h3>Bugfix checklist</h3><ul class="seealso"><li><a href="https://www.apache.org/dist/httpd/CHANGES_2.4">httpd changelog</a></li><li><a href="https://bz.apache.org/bugzilla/buglist.cgi?bug_status=__open__&list_id=144532&product=Apache%20httpd-2&query_format=specific&order=changeddate%20DESC%2Cpriority%2Cbug_severity&component=mpm_common">Known issues</a></li><li><a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2&component=mpm_common">Report a bug</a></li></ul></div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="coredumpdirectory"><span id="CoreDumpDirectory">CoreDumpDirectory</span> ディレクティブ <a title="Permanent link" href="#coredumpdirectory" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>Apache がコアダンプする前に移動を試みるディレクトリ </td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CoreDumpDirectory <var>directory</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>デフォルトの設定は説明文を読んでください</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/beos.html">beos</a></code>, <code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code>, <code class="module"><a href="../mod/perchild.html">perchild</a></code>, <code class="module"><a href="../mod/prefork.html">prefork</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code></td></tr> </table> <p>Apache がコアダンプする前に移動を試みるディレクトリを制御します。 デフォルト値は <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code> ディレクトリですが、このディレクトリはサーバの実行されているユーザ権限で 書き込み可能であるべきではないので、通常はコアダンプは書き込まれません。 デバッグのためにコアダンプが必要であれば、 このディレクティブを使って他の位置にコアダンプを書き出すようにできます。</p> <div class="note"><h3>Linux でのコアダンプ</h3> <p>Apache が root として起動されて、別のユーザの権限に以降した場合は Linux のカーネルはディレクトリがプロセスの権限で書き込み可能な場合でさえも コアダンプを<em>無効</em>にします。Apache (2.0.46 以降) は Linux 2.4 以降ではコアダンプを行なうように再指定しますが、それは <code class="directive">CoreDumpDirectory</code> を明示的に設定したときに 限ります。</p> </div> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="enableexceptionhook"><span id="EnableExceptionHook">EnableExceptionHook</span> ディレクティブ <a title="Permanent link" href="#enableexceptionhook" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>クラッシュの後に例外ハンドラを実行するフックを有効にする</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>EnableExceptionHook On|Off</code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>EnableExceptionHook Off</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/perchild.html">perchild</a></code>, <code class="module"><a href="../mod/prefork.html">prefork</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code></td></tr> <tr><th><a href="directive-dict.html#Compatibility">互換性:</a></th><td>2.0.49 以降</td></tr> </table> <p>安全上の理由から、<code>--enable-exception-hook</code> configure オプションを有効にした場合にのみ、このディレクティブを利用できます。 外部モジュールをプラグインして、子がクラッシュした後に何か実行できるような フックを有効にします。</p> <p>このような外部モジュールは、既に二つ存在していて、 <code>mod_whatkilledus</code> と <code>mod_backtrace</code> がこのフックを活用します。これらの詳細については Jeff Trawick さんの <a href="http://www.apache.org/~trawick/exception_hook.html">EnableExceptionHook site</a> を参照してください。</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="gracefulshutdowntimeout"><span id="GracefulShutdownTimeout">GracefulShutdownTimeout</span> ディレクティブ <a title="Permanent link" href="#gracefulshutdowntimeout" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>穏やかな停止をかけた後、終了するまで待つ時間</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>GracefulShutDownTimeout <var>seconds</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>GracefulShutDownTimeout 0</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/prefork.html">prefork</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code>, <code class="module"><a href="../mod/event.html">event</a></code></td></tr> <tr><th><a href="directive-dict.html#Compatibility">互換性:</a></th><td>2.2 以降</td></tr> </table> <p><code class="directive">GracefulShutdownTimeout</code> には サーバーが "graceful-stop" シグナルを受け取ってから現在の リクエストの処理を最大で何秒間続けるかを指定します。</p> <p>この値をゼロに設定すると、処理中として残っているリクエストが 全て完了するまでサーバーは終了しません。</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="listen"><span id="Listen">Listen</span> ディレクティブ <a title="Permanent link" href="#listen" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>サーバが listen するIP アドレスとポート番号</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>Listen [<var>IP-address</var>:]<var>portnumber</var> [<var>protocol</var>]</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/beos.html">beos</a></code>, <code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/mpm_netware.html">mpm_netware</a></code>, <code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code>, <code class="module"><a href="../mod/mpmt_os2.html">mpmt_os2</a></code>, <code class="module"><a href="../mod/perchild.html">perchild</a></code>, <code class="module"><a href="../mod/prefork.html">prefork</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code>, <code class="module"><a href="../mod/event.html">event</a></code></td></tr> <tr><th><a href="directive-dict.html#Compatibility">互換性:</a></th><td>Apache 2.0 から必須ディレクティブ。<var>protocol</var> 引数は 2.1.5 で追加。</td></tr> </table> <p><code class="directive">Listen</code> ディレクティブは Apache が特定の IP アドレスやポート番号だけを listen するように指定します。 デフォルトでは全ての IP インターフェースのリクエストに応答します。 <code class="directive">Listen</code> ディレクティブは 現在は必須のディレクティブとなりました。 もし設定ファイルになければ、サーバは起動に失敗します。 これは以前のバージョンの Apache から変更のあった部分です。</p> <p><code class="directive">Listen</code> ディレクティブでは、特定のポートあるいは アドレスとポートの組み合わせから入ってくるリクエストに対して 応答するように指定します。 もしポート番号だけが指定された場合は、サーバは全インターフェースの 指定されたポート番号に対して listen します。 IP アドレスがポートとともに指定された場合は、 サーバは指定されたポートとインターフェースに対して listen します。</p> <p>複数のアドレスとポートに対して listen するように、 複数の <code class="directive">Listen</code> ディレクティブを使うこともできます。 サーバは列挙されたアドレスとポート全てからのリクエストに対して 応答します。</p> <p>例えば、サーバが 80 番ポートと 8000 番ポートの両方の コネクションを受け入れる場合は、次のようにします。</p> <div class="example"><p><code> Listen 80<br> Listen 8000 </code></p></div> <p>二つの特定のインターフェースとポート番号からのコネクションを 受け入れるようにするには、次のようにします。</p> <div class="example"><p><code> Listen 192.170.2.1:80<br> Listen 192.170.2.5:8000 </code></p></div> <p>IPv6 アドレスは角括弧で囲まなければなりません。 例えば次の例のようにです。</p> <div class="example"><p><code> Listen [2001:db8::a00:20ff:fea7:ccea]:80 </code></p></div> <p><var>protocol</var> オプション引数は通常の設定では必要ありません。 無指定の場合、443 番ポートには <code>https</code> が、他のポートには <code>http</code> がデフォルト値として使用されます。 protocol 指定は、どのモジュールがリクエストを処理するかを決定し、 <code class="directive"><a href="../mod/core.html#acceptfilter">AcceptFilter</a></code> によるプロトコル特有の最適化を行うようにします。</p> <p>非標準なポートで運用している際にのみ protocol 指定が必要になります。 たとえば <code>https</code> なサイトを 8443 番ポートで運用している場合 :</p> <div class="example"><p><code> Listen 192.170.2.1:8443 https </code></p></div> <div class="note"><h3>エラー条件</h3> 同一 IP アドレスとポートの組に、複数の <code class="directive">Listen</code> ディレクティブを指定してしまうと、<code>Address already in use</code> というエラーメッセージを受けることになります。 </div> <h3>参照</h3> <ul> <li><a href="../dns-caveats.html">DNS の問題</a></li> <li><a href="../bind.html">Apache が使用するアドレスとポートの設定</a></li> </ul> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="listenbacklog"><span id="ListenBackLog">ListenBackLog</span> ディレクティブ <a title="Permanent link" href="#listenbacklog" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>保留状態のコネクションのキューの最大長</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>ListenBacklog <var>backlog</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>ListenBacklog 511</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/beos.html">beos</a></code>, <code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/mpm_netware.html">mpm_netware</a></code>, <code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code>, <code class="module"><a href="../mod/mpmt_os2.html">mpmt_os2</a></code>, <code class="module"><a href="../mod/perchild.html">perchild</a></code>, <code class="module"><a href="../mod/prefork.html">prefork</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code></td></tr> </table> <p>保留状態のコネクションのキューの最大長です。 一般的には調整する必要はありませんし、調整は望ましくありません。 しかし、TCP SYN フラッドアタックの状況下におかれる場合に、 増やした方が望ましいシステムもあります。 <code>listen(2)</code> システムコールのバックログパラメータを ご覧下さい。</p> <p>この値は OS により、小さな数に抑えられます。 値は OS 毎に異なっています。また多くの OS では、 バックログとして指定されている値ちょうどまで使っているわけではなく、 設定されている値に基づいて (通常は設定値よりも大きな値を) 使っていることに注意してください。</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="listencoresbucketsratio"><span id="ListenCoresBucketsRatio">ListenCoresBucketsRatio</span> ディレクティブ <a title="Permanent link" href="#listencoresbucketsratio" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>Ratio between the number of CPU cores (online) and the number of listeners' buckets</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>ListenCoresBucketsRatio <var>ratio</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>ListenCoresBucketsRatio 0 (disabled)</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/event.html">event</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code>, <code class="module"><a href="../mod/prefork.html">prefork</a></code></td></tr> <tr><th><a href="directive-dict.html#Compatibility">互換性:</a></th><td>Available in Apache HTTP Server 2.4.17, with a kernel supporting the socket option <code>SO_REUSEPORT</code> and distributing new connections evenly across listening processes' (or threads') sockets using it (eg. Linux 3.9 and later, but not the current implementations of <code>SO_REUSEPORT</code> in *BSDs.</td></tr> </table><p>このディレクティブの解説文書は まだ翻訳されていません。英語版をご覧ください。 </p></div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="listentcpdeferaccept"><span id="ListenTCPDeferAccept">ListenTCPDeferAccept</span> ディレクティブ <a title="Permanent link" href="#listentcpdeferaccept" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>Value set for the socket option TCP_DEFER_ACCEPT if it is set</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>ListenTCPDeferAccept <var>integer</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>ListenTCPDeferAccept 30</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/event.html">event</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code>, <code class="module"><a href="../mod/prefork.html">prefork</a></code></td></tr> <tr><th><a href="directive-dict.html#Compatibility">互換性:</a></th><td>Available in Apache HTTP Server 2.5.1 and later</td></tr> </table><p>このディレクティブの解説文書は まだ翻訳されていません。英語版をご覧ください。 </p></div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="maxconnectionsperchild"><span id="MaxConnectionsPerChild">MaxConnectionsPerChild</span> ディレクティブ <a title="Permanent link" href="#maxconnectionsperchild" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>Limit on the number of connections that an individual child server will handle during its life</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>MaxConnectionsPerChild <var>number</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>MaxConnectionsPerChild 0</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/event.html">event</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code>, <code class="module"><a href="../mod/prefork.html">prefork</a></code>, <code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code>, <code class="module"><a href="../mod/mpm_netware.html">mpm_netware</a></code>, <code class="module"><a href="../mod/mpmt_os2.html">mpmt_os2</a></code></td></tr> <tr><th><a href="directive-dict.html#Compatibility">互換性:</a></th><td>Available Apache HTTP Server 2.3.9 and later. The old name <code>MaxRequestsPerChild</code> is still supported.</td></tr> </table><p>このディレクティブの解説文書は まだ翻訳されていません。英語版をご覧ください。 </p></div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="maxmemfree"><span id="MaxMemFree">MaxMemFree</span> ディレクティブ <a title="Permanent link" href="#maxmemfree" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td><code>free()</code> が呼ばれない限り、 主メモリアロケータが保持し続けられるメモリの最大量</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>MaxMemFree <var>KBytes</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>MaxMemFree 0</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/beos.html">beos</a></code>, <code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/mpm_netware.html">mpm_netware</a></code>, <code class="module"><a href="../mod/prefork.html">prefork</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code>, <code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code></td></tr> </table> <p><code class="directive">MaxMemFree</code> ディレクティブは <code>free()</code> が呼ばれない限り、 主アロケータが保持できる空のメモリの最大値をキロバイト単位で設定します。 設定されていないか、零に設定されているときは、無制限になります。</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="maxrequestworkers"><span id="MaxRequestWorkers">MaxRequestWorkers</span> ディレクティブ <a title="Permanent link" href="#maxrequestworkers" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>Maximum number of connections that will be processed simultaneously</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>MaxRequestWorkers <var>number</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>See usage for details</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/event.html">event</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code>, <code class="module"><a href="../mod/prefork.html">prefork</a></code></td></tr> </table><p>このディレクティブの解説文書は まだ翻訳されていません。英語版をご覧ください。 </p></div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="maxsparethreads"><span id="MaxSpareThreads">MaxSpareThreads</span> ディレクティブ <a title="Permanent link" href="#maxsparethreads" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>アイドルスレッドの最大数</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>MaxSpareThreads <var>number</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>詳細は使用法をご覧下さい。</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/beos.html">beos</a></code>, <code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/mpm_netware.html">mpm_netware</a></code>, <code class="module"><a href="../mod/mpmt_os2.html">mpmt_os2</a></code>, <code class="module"><a href="../mod/perchild.html">perchild</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code></td></tr> </table> <p>アイドルなスレッドの最大数です。異なる MPM ではそれぞれ、 このディレクティブは異なる取り扱われ方をされます。</p> <p><code class="module"><a href="../mod/perchild.html">perchild</a></code> では、 デフォルトは <code>MaxSpareThreads 10</code> です。 この MPM はアイドルスレッド数を、それぞれの子プロセスごとに監視します。 子プロセスにアイドルスレッドが多すぎる場合は、 サーバはその子プロセスに含まれるスレッドを終了し始めます。</p> <p><code class="module"><a href="../mod/worker.html">worker</a></code>, <code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code> では、 デフォルトは <code>MaxSpareThreads 250</code> です。 この MPM はアイドルスレッド数をサーバ全体で監視します。 サーバでアイドルスレッド数が多すぎる場合は、 この数字よりも少ない数になるまで子プロセスを終了します。</p> <p><code class="module"><a href="../mod/mpm_netware.html">mpm_netware</a></code> では、 デフォルトは <code>MaxSpareThreads 100</code> です。 この MPM はシングルプロセスで実行されますので、 スペアスレッド数もサーバ全体で勘定します。</p> <p><code class="module"><a href="../mod/beos.html">beos</a></code> と <code class="module"><a href="../mod/mpmt_os2.html">mpmt_os2</a></code> は <code class="module"><a href="../mod/mpm_netware.html">mpm_netware</a></code> と似た挙動をします。 <code class="module"><a href="../mod/beos.html">beos</a></code> でのデフォルト値は <code>MaxSpareThreads 50</code> です。<code class="module"><a href="../mod/mpmt_os2.html">mpmt_os2</a></code> でのデフォルト値は <code>10</code> です。</p> <div class="note"><h3>制限事項</h3> <p><code class="directive">MaxSpareThreads</code> の取る値には制限があります。 Apache は次の規則に従って自動的に補正します。</p> <ul> <li><code class="module"><a href="../mod/perchild.html">perchild</a></code> では、 <code class="directive">MaxSpareThreads</code> が <code class="directive"><a href="#threadlimit">ThreadLimit</a></code> と等しいかそれ以下である必要があります。</li> <li><code class="module"><a href="../mod/mpm_netware.html">mpm_netware</a></code> は <code class="directive"><a href="#minsparethreads">MinSpareThreads</a></code> よりも大きい必要があります。</li> <li><code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code> では、 <code class="directive"><a href="#minsparethreads">MinSpareThreads</a></code> と <code class="directive"><a href="#threadsperchild">ThreadsPerChild</a></code> で決まる総和と等しいか大きい必要があります。</li> </ul> </div> <h3>参照</h3> <ul> <li><code class="directive"><a href="#minsparethreads">MinSpareThreads</a></code></li> <li><code class="directive"><a href="#startservers">StartServers</a></code></li> </ul> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="minsparethreads"><span id="MinSpareThreads">MinSpareThreads</span> ディレクティブ <a title="Permanent link" href="#minsparethreads" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>リクエストに応答することのできる アイドルスレッド数の最小数</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>MinSpareThreads <var>number</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>詳細は使用方法をご覧下さい。</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/beos.html">beos</a></code>, <code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/mpm_netware.html">mpm_netware</a></code>, <code class="module"><a href="../mod/mpmt_os2.html">mpmt_os2</a></code>, <code class="module"><a href="../mod/perchild.html">perchild</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code></td></tr> </table> <p>リクエストに応答するスレッド数の最小値です。 異なる MPM ではそれぞれ、 このディレクティブは異なる取り扱われ方をします。</p> <p><code class="module"><a href="../mod/perchild.html">perchild</a></code> では、 デフォルトは <code>MinSpareThreads 5</code> で、 アイドルスレッド数を子プロセス毎に監視します。 もし子プロセスに十分な数のスレッドがなければ、 サーバはその子プロセスに新しいスレッドを作り始めます。 ですから、<code class="directive"><a href="../mod/perchild.html#numservers">NumServers</a></code> を <code>10</code> に、<code class="directive">MinSpareThreads</code> を <code>5</code> にした場合は、最小でも 50 のアイドルスレッドが システム上にあることになります。</p> <p><code class="module"><a href="../mod/worker.html">worker</a></code>, <code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code> では、 デフォルトは <code>MinSpareThreads 75</code> で、 アイドルスレッド数をサーバ全体で監視します。 もしサーバに十分な数のアイドルスレッドがなければ、 アイドルスレッド数がこの数 <var>number</var> よりも大きくなるまで 新しい子プロセスが生成されます。</p> <p><code class="module"><a href="../mod/mpm_netware.html">mpm_netware</a></code> では、 デフォルトは <code>MinSpareThreads 10</code> で、 シングルプロセス MPM ですので、サーバ全体で管理されます。</p> <p><code class="module"><a href="../mod/beos.html">beos</a></code> と <code class="module"><a href="../mod/mpmt_os2.html">mpmt_os2</a></code> は、 <code class="module"><a href="../mod/mpm_netware.html">mpm_netware</a></code>によく似ています。 <code class="module"><a href="../mod/beos.html">beos</a></code> でのデフォルトは <code>MinSpareThreads 1</code> です。<code class="module"><a href="../mod/mpmt_os2.html">mpmt_os2</a></code> でのデフォルトは <code>5</code> です。</p> <h3>参照</h3> <ul> <li><code class="directive"><a href="#maxsparethreads">MaxSpareThreads</a></code></li> <li><code class="directive"><a href="#startservers">StartServers</a></code></li> </ul> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="pidfile"><span id="PidFile">PidFile</span> ディレクティブ <a title="Permanent link" href="#pidfile" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>デーモンのプロセス ID をサーバが記録するためのファイル</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>PidFile <var>filename</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>PidFile logs/httpd.pid</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/beos.html">beos</a></code>, <code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code>, <code class="module"><a href="../mod/mpmt_os2.html">mpmt_os2</a></code>, <code class="module"><a href="../mod/perchild.html">perchild</a></code>, <code class="module"><a href="../mod/prefork.html">prefork</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code></td></tr> </table> <p><code class="directive">PidFile</code> ディレクティブで、 デーモンのプロセス ID をサーバが記録するファイルを設定します。 ファイル名が絶対パスでない場合は、 <code class="directive"><a href="../mod/core.html#serverroot">ServerRoot</a></code> からの相対的なものとして扱われます。</p> <div class="example"><h3>例</h3><p><code> PidFile /var/run/apache.pid </code></p></div> <p>サーバが <code class="directive"><a href="../mod/core.html#errorlog">ErrorLog</a></code> や <code class="directive"><a href="../mod/mod_log_config.html#transferlog">TransferLog</a></code> を閉じて開き直したり、設定ファイルを 再読込したりさせるために、サーバにシグナルを送ることができると 便利なことがあります。 これは SIGHUP (kill -1) シグナルを <code class="directive">PidFile</code> に書かれているプロセス ID に送ることでできます。</p> <p><code class="directive">PidFile</code> には、ログファイルの設置位置や <a href="../misc/security_tips.html#serverroot">セキュリティ</a> と全く同じ注意点があります。</p> <div class="note"><h3>注意</h3> <p>Apache 2 では、 <code class="program"><a href="../programs/apachectl.html">apache2ctl</a></code> スクリプトのみを使用してサーバの (再) 起動や停止を 行なうことを推奨しています。</p> </div> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="receivebuffersize"><span id="ReceiveBufferSize">ReceiveBufferSize</span> ディレクティブ <a title="Permanent link" href="#receivebuffersize" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>TCP 受信バッファサイズ</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>ReceiveBufferSize <var>bytes</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>ReceiveBufferSize 0</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/beos.html">beos</a></code>, <code class="module"><a href="../mod/mpm_netware.html">mpm_netware</a></code>, <code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code>, <code class="module"><a href="../mod/mpmt_os2.html">mpmt_os2</a></code>, <code class="module"><a href="../mod/prefork.html">prefork</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code></td></tr> </table> <p>サーバは TCP 受信バッファサイズを指定されたバイト数に設定します。</p> <p><code>0</code>にした場合、OS のデフォルト値が使用されます。</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="scoreboardfile"><span id="ScoreBoardFile">ScoreBoardFile</span> ディレクティブ <a title="Permanent link" href="#scoreboardfile" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>子プロセスと連携するためのデータを保存する ファイルの位置</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>ScoreBoardFile <var>file-path</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>ScoreBoardFile logs/apache_status</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/beos.html">beos</a></code>, <code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code>, <code class="module"><a href="../mod/perchild.html">perchild</a></code>, <code class="module"><a href="../mod/prefork.html">prefork</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code></td></tr> </table> <p>Apache は親プロセスと子プロセス間の通信にスコアボードを用います。 この通信機能にファイルを必要とするアーキテクチャもあります。 ファイルが指定されていなければ、Apache はまずメモリ上 (匿名共有メモリ) にスコアボードを作ろうとし、それが失敗すると ディスク上にファイル (ファイルベースの共有メモリ) を作ろうとします。 このディレクティブを指定すると、Apache は必ずディスクにファイルを生成します。</p> <div class="example"><h3>例</h3><p><code> ScoreBoardFile /var/run/apache_status </code></p></div> <p>ファイルベースの共有メモリは、サードパーティー製のアプリケーションで スコアボードに直接アクセスする必要がある場合に役に立ちます。</p> <p><code class="directive">ScoreBoardFile</code> を使う場合、 RAM ディスク上に置くとスピードが向上するでしょう。 しかし、ログファイルの設置位置や <a href="../misc/security_tips.html">セキュリティ</a> と同様の注意点があるので、注意してください。</p> <h3>参照</h3> <ul> <li><a href="../stopping.html">Apache の停止と再起動</a></li> </ul> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="sendbuffersize"><span id="SendBufferSize">SendBufferSize</span> ディレクティブ <a title="Permanent link" href="#sendbuffersize" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>TCP バッファサイズ</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>SendBufferSize <var>bytes</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>SendBufferSize 0</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/beos.html">beos</a></code>, <code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/mpm_netware.html">mpm_netware</a></code>, <code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code>, <code class="module"><a href="../mod/mpmt_os2.html">mpmt_os2</a></code>, <code class="module"><a href="../mod/perchild.html">perchild</a></code>, <code class="module"><a href="../mod/prefork.html">prefork</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code></td></tr> </table> <p>サーバは TCP 送信バッファサイズを指定されたバイト数に設定します。 高速で高レイテンシな環境で (<em>例</em> 100ms 程度、大陸横断高速通信路など) 古い一般的な OS のデフォルト値を増やすのに非常に便利です。</p> <p><code>0</code>にした場合、OS のデフォルト値が使用されます。</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="serverlimit"><span id="ServerLimit">ServerLimit</span> ディレクティブ <a title="Permanent link" href="#serverlimit" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>設定可能なサーバプロセス数の上限</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>ServerLimit <var>number</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>詳細は使用法を参照</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/perchild.html">perchild</a></code>, <code class="module"><a href="../mod/prefork.html">prefork</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code></td></tr> </table> <p><code class="module"><a href="../mod/prefork.html">prefork</a></code> MPM の場合は、このディレクティブは Apache プロセス稼働中における <code class="directive"><a href="#maxclients">MaxClients</a></code> に設定可能な上限値を設定することになります <span class="transnote">(<em>訳注:</em> prefork の場合は同時クライアント数 = サーバプロセス数なので)</span>。 <code class="module"><a href="../mod/worker.html">worker</a></code> MPM の場合には、このディレクティブは <code class="directive"><a href="#threadlimit">ThreadLimit</a></code> ディレクティブと組み合わせて、 Apache プロセス稼働中における <code class="directive"><a href="#maxclients">MaxClients</a></code> に設定可能な上限値を設定することになります。 このディレクティブを変更して再起動<span class="transnote">(<em>訳注:</em> apache2ctl restart)</span>しても無視されますが、 <code class="directive"><a href="#maxclients">MaxClients</a></code> は再起動で変更することができます。 </p> <p>このディレクティブを使用する際は特に注意してください。 <code class="directive">ServerLimit</code> が必要以上に大きな値に 設定された場合は、余計な未使用共有メモリが割り当てられます。 <code class="directive">ServerLimit</code> と <code class="directive"><a href="#maxclients">MaxClients</a></code> がシステムの扱える範囲を越えた設定値になっていると、 Apache は起動しないか、起動しても不安定になるでしょう。</p> <p><code class="module"><a href="../mod/prefork.html">prefork</a></code> MPM では、 <code class="directive"><a href="#maxclients">MaxClients</a></code> を 256 (デフォルト) よりも大きな値に設定する必要がある時にだけ使用してください。 希望の <code class="directive"><a href="#maxclients">MaxClients</a></code> 数とくらべて、必要以上に大きな値を指定することは避けてください。</p> <p><code class="module"><a href="../mod/worker.html">worker</a></code>, <code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code> MPM では、 <code class="directive"><a href="#maxclients">MaxClients</a></code> と <code class="directive"><a href="#threadsperchild">ThreadsPerChild</a></code> の設定で 16 サーバプロセス (デフォルト) 以上必要になる場合にのみ使用してください。希望の <code class="directive"><a href="#maxclients">MaxClients </a></code> と <code class="directive"><a href="#threadsperchild">ThreadsPerChild</a></code> とくらべて、必要となるサーバプロセス数以上に大きな値を 設定することは避けてください。</p> <p><code class="module"><a href="../mod/perchild.html">perchild</a></code> MPM では、 <code class="directive"><a href="../mod/perchild.html#numservers">NumServers</a></code> を 8 (デフォルト) よろいも大きな値に設定する必要があるときにのみ使用してください。</p> <div class="note"><h3>注意</h3> <p><code>ServerLimit 20000</code> という制限付きでコンパイルされています (<code class="module"><a href="../mod/prefork.html">prefork</a></code> MPM では <code>200000</code>) 。 これはスペルミスによって誤って酷い状況になるのを、 回避するための処置です。</p> </div> <h3>参照</h3> <ul> <li><a href="../stopping.html">Apache の停止と再起動</a></li> </ul> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="startservers"><span id="StartServers">StartServers</span> ディレクティブ <a title="Permanent link" href="#startservers" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>起動時に生成される子サーバプロセスの数</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>StartServers <var>number</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>詳細は使用方法を参照</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/mpmt_os2.html">mpmt_os2</a></code>, <code class="module"><a href="../mod/prefork.html">prefork</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code></td></tr> </table> <p><code class="directive">StartServers</code> ディレクティブは、 起動時に生成される子サーバプロセスの数を設定します。 プロセス数は負荷に応じて動的に制御されますので、 通常はこの値を調整する理由はあまりないでしょう。</p> <p>デフォルト値は MPM ごとに異なります。 <code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code> は <code>StartServers 3</code> です。 <code class="module"><a href="../mod/prefork.html">prefork</a></code> は <code>5</code> で、 <code class="module"><a href="../mod/mpmt_os2.html">mpmt_os2</a></code> は <code>2</code> です。</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="startthreads"><span id="StartThreads">StartThreads</span> ディレクティブ <a title="Permanent link" href="#startthreads" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>起動時に生成されるスレッドの数</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>StartThreads <var>number</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>詳細は使用方法を参照</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/beos.html">beos</a></code>, <code class="module"><a href="../mod/mpm_netware.html">mpm_netware</a></code>, <code class="module"><a href="../mod/perchild.html">perchild</a></code></td></tr> </table> <p>起動時に生成されるスレッドの数です。 スレッド数は負荷に応じて動的に制御されますので、 通常はこの値を調整する理由はあまりないでしょう。</p> <p><code class="module"><a href="../mod/perchild.html">perchild</a></code> でのデフォルトは <code>StartThreads 5</code> で、このディレクティブは起動時に プロセス毎のスレッド数を追跡します。</p> <p><code class="module"><a href="../mod/mpm_netware.html">mpm_netware</a></code> でのデフォルトは <code>StartThreads 50</code> で、 この場合プロセスは一つしかないので、 起動時にリクエストに応答するスレッドの総数となります。</p> <p><code class="module"><a href="../mod/beos.html">beos</a></code> でのデフォルトは <code>StartThreads 10</code> です。 また、起動時に生成されるスレッドの総数にも反映されます。</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="threadlimit"><span id="ThreadLimit">ThreadLimit</span> ディレクティブ <a title="Permanent link" href="#threadlimit" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>設定可能な子プロセス毎のスレッド数の上限を 設定します</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>ThreadLimit <var>number</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>詳細は使用方法を参照</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code>, <code class="module"><a href="../mod/perchild.html">perchild</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code></td></tr> <tr><th><a href="directive-dict.html#Compatibility">互換性:</a></th><td>Apache 2.0.41 とそれ以降の <code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code> で利用可能</td></tr> </table> <p>このディレクティブは Apache プロセス稼働中における <code class="directive"><a href="#threadsperchild">ThreadsPerChild</a></code> に設定可能な上限値を設定します。再起動時にこのディレクティブの値を 変更しても無視されますが、 <code class="directive"><a href="#threadsperchild">ThreadsPerChild</a></code> は再起動中に、このディレクティブで指定された上限値まで 変更することができます。</p> <p>このディレクティブを使用する際は特に注意してください。 <code class="directive">ThreadLimit</code> が <code class="directive"><a href="#threadsperchild">ThreadsPerChild</a></code> よりもずっと大きな値に設定された場合は、 余計な未使用共有メモリが割り当てられてしまいます。 <code class="directive">ThreadLimit</code> が <code class="directive"><a href="#threadsperchild">ThreadsPerChild</a></code> の両方がシステムの扱える範囲を超えている場合は、 Apache は起動しないか、起動したとしても不安定になるでしょう。 このディレクティブの値は今使用している Apache の <code class="directive"><a href="#threadsperchild">ThreadsPerChild</a></code> の予想上限値を 超えた値には設定しないでください。 </p> <p><code class="directive">ThreadLimit</code> のデフォルト値は <code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code> のときは <code>1920</code> で、 他の場合は <code>64</code> です。</p> <div class="note"><h3>注意</h3> <p><code>ThreadLimit 20000</code> (<code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code> の場合は <code>ThreadLimit 15000</code> ) という制限付きでコンパイルされています。 これはスペルミスによって誤って酷い状況になるのを、 回避するための処置です。</p> </div> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="threadsperchild"><span id="ThreadsPerChild">ThreadsPerChild</span> ディレクティブ <a title="Permanent link" href="#threadsperchild" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>子プロセスそれぞれに生成されるスレッド数</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>ThreadsPerChild <var>number</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>詳細は使用方法を参照</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code></td></tr> </table> <p>このディレクティブは、それぞれの子プロセスで生成される スレッド数を設定します。 子プロセスは開始時にこれらのスレッドを生成して、 その後は生成しません。<code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code> のような、 子プロセスが一つしかないような MPM を利用しているのであれば、 この値はサーバの負荷全体を十分取り扱える程度に、 大きくなければなりません。<code class="module"><a href="../mod/worker.html">worker</a></code> のような、 子プロセスが複数あるような MPM を利用しているのであれば、 サーバの通常負荷を十分扱える程度に、 <em>スレッド総数</em>が多くなければなりません。</p> <p><code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code>での <code class="directive">ThreadsPerChild</code> のデフォルト値は <code>64</code> で、他の場合は <code>25</code> です。</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../../images/up.gif"></a></div> <div class="directive-section"><h2 id="threadstacksize"><span id="ThreadStackSize">ThreadStackSize</span> ディレクティブ <a title="Permanent link" href="#threadstacksize" class="permalink">¶</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>クライアントのコネクションを受け持つスレッドが使用する スタックのバイト数</td></tr> <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>ThreadStackSize <var>size</var></code></td></tr> <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>NetWare では 65536。他の OS では違った値</code></td></tr> <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル</td></tr> <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>MPM</td></tr> <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td><code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/mpm_netware.html">mpm_netware</a></code>, <code class="module"><a href="../mod/mpm_winnt.html">mpm_winnt</a></code>, <code class="module"><a href="../mod/perchild.html">perchild</a></code>, <code class="module"><a href="../mod/threadpool.html">threadpool</a></code>, <code class="module"><a href="../mod/worker.html">worker</a></code></td></tr> <tr><th><a href="directive-dict.html#Compatibility">互換性:</a></th><td>2.1 以降</td></tr> </table> <p>クライアントコネクションを受け持ち、コネクション処理に必要なモジュールの 呼び出しを行なっているスレッドの、(自動変数用の) スタックサイズは <code class="directive">ThreadStackSize</code> ディレクティブで指定します。 大抵の場合 OS の指定しているスタックサイズのデフォルト値は 適切なものですが、調整が必要になる場合もあります:</p> <ul> <li>スレッドスタックサイズのデフォルト値が比較的小さく設定されている プラットホーム (例えば HP-UX) では、自動変数用の領域で大きな容量を 使用するサードパーティ製モジュールのために Apache がクラッシュする 場合もあります。そのモジュールは他のプラットホームでは スタックサイズが大きいために、快調に動作するかもしれません。 このタイプのクラッシュは、<code class="directive">ThreadStackSize</code> で OS のデフォルト値より大きな値を指定することで解決します。 サードパーティ製モジュールでこの処置が必要であると記載されている 場合か、Apache の出力するメッセージでスレッドスタックサイズが 小さすぎると指摘されている場合にのみ、この調整をしてください。</li> <li>デフォルトスレッドスタックサイズが、Web サーバ用途に必要な量よりも 明らかに大きすぎる場合、<code class="directive">ThreadStackSize</code> を OS のデフォルト値よりも小さな値にすることで、子プロセスあたりの スレッド数をより多く持たせられるようになります。 このタイプの調整は、テスト環境でウェブサーバを完全に テストできる場合に限って行なうべきです。 まれに多数のスタックが要求されるリクエストを受けることがあるかも しれないからです。 Web サーバの設定を変更すると、現在の <code class="directive">ThreadStackSize</code> の設定が取り消される場合があります。</li> </ul> </div> </div> <div class="bottomlang"> <p><span>翻訳済み言語: </span><a href="../../de/mod/mpm_common.html" hreflang="de" rel="alternate" title="Deutsch"> de </a> | <a href="../../en/mod/mpm_common.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../../fr/mod/mpm_common.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | <a href="../../ja/mod/mpm_common.html" title="Japanese"> ja </a> | <a href="../../tr/mod/mpm_common.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> </div><div id="footer"> <p class="apache">Copyright 2026 The Apache Software Foundation.<br>この文書は <a href="https://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p> <p class="menu"><a href="../mod/index.html">モジュール</a> | <a href="../mod/quickreference.html">ディレクティブ</a> | <a href="https://cwiki.apache.org/confluence/display/httpd/FAQ">FAQ</a> | <a href="../glossary.html">用語</a> | <a href="../sitemap.html">サイトマップ</a> | <a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2">Report a bug</a></p></div><script><!--//--><![CDATA[//><!-- if (typeof(prettyPrint) !== 'undefined') { prettyPrint(); } var langToggle = document.querySelector('.lang-toggle'); var topLang = document.querySelector('.toplang'); if (langToggle && topLang) { langToggle.addEventListener('click', function() { topLang.classList.toggle('open'); }); } var qv = document.getElementById('quickview'); if (qv) { document.body.appendChild(qv); var qvBtn = document.createElement('button'); qvBtn.className = 'qv-toggle'; qvBtn.setAttribute('aria-label', 'Toggle page navigation'); qvBtn.innerHTML = '☰'; document.body.appendChild(qvBtn); qvBtn.addEventListener('click', function() { var isOpen = qv.classList.toggle('open'); if (isOpen) { qv.style.top = window.scrollY + 10 + 'px'; } }); window.addEventListener('scroll', function() { qv.classList.remove('open'); }); } //--><!]]></script> </body></html>