1<?xml version="1.0" encoding="UTF-8"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head><!-- 4 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 5 This file is generated from xml source: DO NOT EDIT 6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 7 --> 8<title>マルチプロセッシングモジュール (MPM) - Apache HTTP サーバ</title> 9<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> 10<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> 11<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" /> 12<script src="/style/scripts/prettify.js" type="text/javascript"> 13</script> 14 15<link href="/images/favicon.ico" rel="shortcut icon" /></head> 16<body id="manual-page"><div id="page-header"> 17<p class="menu"><a href="/mod/">モジュール</a> | <a href="/mod/directives.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">用語</a> | <a href="/sitemap.html">サイトマップ</a></p> 18<p class="apache">Apache HTTP サーバ バージョン 2.2</p> 19<img alt="" src="/images/feather.gif" /></div> 20<div class="up"><a href="./"><img title="<-" alt="<-" src="/images/left.gif" /></a></div> 21<div id="path"> 22<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP サーバ</a> > <a href="http://httpd.apache.org/docs/">ドキュメンテーション</a> > <a href="./">バージョン 2.2</a></div><div id="page-content"><div id="preamble"><h1>マルチプロセッシングモジュール (MPM)</h1> 23<div class="toplang"> 24<p><span>翻訳済み言語: </span><a href="/de/mpm.html" hreflang="de" rel="alternate" title="Deutsch"> de </a> | 25<a href="/en/mpm.html" hreflang="en" rel="alternate" title="English"> en </a> | 26<a href="/es/mpm.html" hreflang="es" rel="alternate" title="Español"> es </a> | 27<a href="/fr/mpm.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | 28<a href="/ja/mpm.html" title="Japanese"> ja </a> | 29<a href="/ko/mpm.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | 30<a href="/tr/mpm.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a> | 31<a href="/zh-cn/mpm.html" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p> 32</div> 33 34<p>この文書ではマルチプロセッシングモジュールがどのようなもので、 35Apache HTTP サーバでどのように使用されるかについて解説しています。</p> 36</div> 37<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#introduction">はじめに</a></li> 38<li><img alt="" src="/images/down.gif" /> <a href="#choosing">MPM を選ぶ</a></li> 39<li><img alt="" src="/images/down.gif" /> <a href="#defaults">MPM デフォルト値</a></li> 40</ul><ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div> 41<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 42<div class="section"> 43<h2><a name="introduction" id="introduction">はじめに</a></h2> 44 45 <p>Apache HTTP サーバは異なる幅広い環境、多種多様なプラットホームで 46 動作するように、パワフルで柔軟性に富んだ設計になっています。 47 異なるプラットホーム・異なる環境ではしばしば、 48 異なる機能が必要になったり、 49 同じ機能でも効率のために異なる実装が必要になったりします。 50 Apache ではモジュール化された設計により幅広い環境に適応してきました。 51 この設計のおかげで、管理者は 52 コンパイル時または実行時にどのモジュールをロードするか選ぶことによって、 53 どの機能をサーバに取り込むか選択することができます。</p> 54 55 <p>Apache 2.0 では、 56 このモジュール化された設計をサーバの基本機能にまで拡張しました。 57 サーバには精選されたマルチプロセッシングモジュール (MPM) 58 が付いてきて、これらはマシンのネットワークポートをバインドしたり、 59 リクエストを受け付けたり、リクエストを扱うよう子プロセスに割り当てたり、 60 といった役割を持ちます。</p> 61 62 <p>モジュール化された設計をサーバのこのレベルまで拡張することで 63 二つの重要な利点が生まれます:</p> 64 65 <ul> 66 <li>Apache は幅広いオペレーティングシステムを 67 より美しく効率的にサポートできます。 68 特に Windows 版の Apache は随分効率的になりました。 69 なぜなら <code class="module"><a href="/mod/mpm_winnt.html">mpm_winnt</a></code> 70 によって、Apache 1.3 で用いられていた POSIX 71 レイヤの代わりにネイティブのネットワーク機能を 72 利用できるからです。 73 特別化された MPM 74 を実装した他のオペレーティングシステムでも、 75 同様にこの利点は生まれます。</li> 76 77 <li>サーバは特定のサイト向けに、より上手にカスタマイズできます。 78 例えば、非常に大きなスケーラビリティを必要とするサイトでは、 79 <code class="module"><a href="/mod/worker.html">worker</a></code> や <code class="module"><a href="/mod/event.html">event</a></code> といったスレッド化された 80 MPM を利用できる一方で、安定性や古いソフトウェアとの互換性を 81 必要とするサイトでは <code class="module"><a href="/mod/prefork.html">prefork</a></code> 82 が利用できます。</li> 83 </ul> 84 85 <p>ユーザレベルでは、MPM は他の Apache 86 モジュールと同等に見えます。 87 主な違いは、いつでも唯一の MPM 88 がロードされなければならないという点です。 89 利用可能な MPM は 90 <a href="mod/">module インデックス</a>にあります。</p> 91 92</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 93<div class="section"> 94<h2><a name="choosing" id="choosing">MPM を選ぶ</a></h2> 95 96 <p>MPM は設定中に選択して、サーバ内部にコンパイルされなければ 97 なりません。 98 コンパイラは、スレッドが使用されている場合に様々な機能を最適化できますが、 99 そのためにはそもそもスレッドが使われているということを知る必要があります。</p> 100 101 <p>望みの MPM を実際に選ぶためには、<code class="program"><a href="/programs/configure.html">configure</a></code> スクリプトで 102 <code>--with-mpm=<em>NAME</em></code> 引数を用いてください。 103 <em>NAME</em> は望みの MPM の名前です。</p> 104 105 <p>サーバコンパイル後は、どの MPM が選択されたかを 106 <code>/httpd -l</code> で確かめることができます。 107 このコマンドは、MPM 108 を含め、サーバにコンパイルで組み込まれたモジュール全てを 109 列挙します。</p> 110</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 111<div class="section"> 112<h2><a name="defaults" id="defaults">MPM デフォルト値</a></h2> 113 114<p>次表に様々な OS 向けのデフォルトの MPM 一覧を掲載しています。 115コンパイル時に意図的に他を選択しなければ、自動的にこれらの MPM 116が選択されます。</p> 117 118<table> 119 120<tr><td>BeOS</td><td><code class="module"><a href="/mod/beos.html">beos</a></code></td></tr> 121<tr><td>Netware</td><td><code class="module"><a href="/mod/mpm_netware.html">mpm_netware</a></code></td></tr> 122<tr><td>OS/2</td><td><code class="module"><a href="/mod/mpmt_os2.html">mpmt_os2</a></code></td></tr> 123<tr><td>Unix</td><td><code class="module"><a href="/mod/prefork.html">prefork</a></code></td></tr> 124<tr><td>Windows</td><td><code class="module"><a href="/mod/mpm_winnt.html">mpm_winnt</a></code></td></tr> 125</table> 126</div></div> 127<div class="bottomlang"> 128<p><span>翻訳済み言語: </span><a href="/de/mpm.html" hreflang="de" rel="alternate" title="Deutsch"> de </a> | 129<a href="/en/mpm.html" hreflang="en" rel="alternate" title="English"> en </a> | 130<a href="/es/mpm.html" hreflang="es" rel="alternate" title="Español"> es </a> | 131<a href="/fr/mpm.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | 132<a href="/ja/mpm.html" title="Japanese"> ja </a> | 133<a href="/ko/mpm.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | 134<a href="/tr/mpm.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a> | 135<a href="/zh-cn/mpm.html" hreflang="zh-cn" rel="alternate" title="Simplified Chinese"> zh-cn </a></p> 136</div><div class="top"><a href="#page-header"><img src="/images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">コメント</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div> 137<script type="text/javascript"><!--//--><![CDATA[//><!-- 138var comments_shortname = 'httpd'; 139var comments_identifier = 'http://httpd.apache.org/docs/2.2/mpm.html'; 140(function(w, d) { 141 if (w.location.hostname.toLowerCase() == "httpd.apache.org") { 142 d.write('<div id="comments_thread"><\/div>'); 143 var s = d.createElement('script'); 144 s.type = 'text/javascript'; 145 s.async = true; 146 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; 147 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); 148 } 149 else { 150 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); 151 } 152})(window, document); 153//--><!]]></script></div><div id="footer"> 154<p class="apache">Copyright 2013 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p> 155<p class="menu"><a href="/mod/">モジュール</a> | <a href="/mod/directives.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">用語</a> | <a href="/sitemap.html">サイトマップ</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- 156if (typeof(prettyPrint) !== 'undefined') { 157 prettyPrint(); 158} 159//--><!]]></script> 160</body></html>