From: Takashi Sato This document supplements the
The act of opening a file can itself be a source of delay, particularly on network filesystems. By maintaining a cache of open file descriptors for commonly served files, Apache can avoid this delay. Currently Apache - provides two different implementations of File-Handle Caching.
+ provides one implementation of File-Handle Caching.CacheEnable fd /-
As with all of
Firstly, an operating system can only cache files it knows about. If - you are running Apache as a proxy server, the files you are caching are - not locally stored but remotely served. If you still want the unbeatable - speed of in-memory caching, Apache's own memory caching is needed.
-Caching of this type is enabled via;
- --# Enable memory caching -CacheEnable mem / - -# Limit the size of the cache to 1 Megabyte -MCacheSize 1024-
Typically the module will be configured as so;
diff --git a/docs/manual/mod/mod_cache.xml b/docs/manual/mod/mod_cache.xml index 56981bbaca3..2a31747e564 100644 --- a/docs/manual/mod/mod_cache.xml +++ b/docs/manual/mod/mod_cache.xml @@ -41,20 +41,11 @@ href="http://www.ietf.org/rfc/rfc2616.txt">RFC 2616 compliant HTTP content cache that can be used to cache either local or proxied content.Content is stored in and retrieved from the cache using URI based keys. Content with
@@ -68,7 +59,6 @@
The mem
- instructs disk
instructs
fd
instructs
-
In the event that the URL space overlaps between different
When acting as a forward proxy server, url-string can also be used to specify remote sites and proxy protocols which caching should be enabled for.
diff --git a/docs/manual/mod/mod_mem_cache.html b/docs/manual/mod/mod_mem_cache.html deleted file mode 100644 index 987152e84a7..00000000000 --- a/docs/manual/mod/mod_mem_cache.html +++ /dev/null @@ -1,13 +0,0 @@ -# GENERATED FROM XML -- DO NOT EDIT - -URI: mod_mem_cache.html.en -Content-Language: en -Content-type: text/html; charset=ISO-8859-1 - -URI: mod_mem_cache.html.ja.utf8 -Content-Language: ja -Content-type: text/html; charset=UTF-8 - -URI: mod_mem_cache.html.ko.euc-kr -Content-Language: ko -Content-type: text/html; charset=EUC-KR diff --git a/docs/manual/mod/mod_mem_cache.html.en b/docs/manual/mod/mod_mem_cache.html.en deleted file mode 100644 index d3ee104787f..00000000000 --- a/docs/manual/mod/mod_mem_cache.html.en +++ /dev/null @@ -1,240 +0,0 @@ - - - -Apache HTTP Server Version 2.3
-Description: | Content cache keyed to URIs |
---|---|
Status: | Extension |
Module Identifier: | mem_cache_module |
Source File: | mod_mem_cache.c |
This module requires the service of mod_cache
. It acts as a support module for mod_cache
and provides a memory based storage manager.
- mod_mem_cache
can be configured to operate in two
- modes: caching open file descriptors or caching objects in heap storage.
- mod_mem_cache
is most useful when used to cache locally
- generated content or to cache backend server content for mod_proxy
configured for ProxyPass
(aka reverse proxy).
Content is stored in and retrieved from the cache using URI based - keys. Content with access protection is not cached.
- -mod_disk_cache
- should be the preferred choice. This is explained further in the Caching Guide. In particular,
- this module's cache is per-process.Description: | The maximum number of objects allowed to be placed in the -cache |
---|---|
Syntax: | MCacheMaxObjectCount value |
Default: | MCacheMaxObjectCount 1009 |
Context: | server config |
Status: | Extension |
Module: | mod_mem_cache |
The MCacheMaxObjectCount
directive sets the
- maximum number of objects to be cached. The value is used to create the
- open hash table. If a new object needs to be inserted in the cache and
- the maximum number of objects has been reached, an object will be
- removed to allow the new object to be cached. The object to be removed
- is selected using the algorithm specified by MCacheRemovalAlgorithm
.
- MCacheMaxObjectCount 13001
-
Description: | The maximum size (in bytes) of a document allowed in the -cache |
---|---|
Syntax: | MCacheMaxObjectSize bytes |
Default: | MCacheMaxObjectSize 10000 |
Context: | server config |
Status: | Extension |
Module: | mod_mem_cache |
The MCacheMaxObjectSize
directive sets the
- maximum allowable size, in bytes, of a document for it to be considered
- cacheable.
- MCacheMaxObjectSize 6400000
-
The value of MCacheMaxObjectSize
must be
- greater than the value specified by the MCacheMinObjectSize
directive.
Description: | Maximum amount of a streamed response to buffer in memory -before declaring the response uncacheable |
---|---|
Syntax: | MCacheMaxStreamingBuffer size_in_bytes |
Default: | MCacheMaxStreamingBuffer the smaller of 100000 or MCacheMaxObjectSize |
Context: | server config |
Status: | Extension |
Module: | mod_mem_cache |
The MCacheMaxStreamingBuffer
directive
- specifies the maximum number of bytes of a streamed response to
- buffer before deciding that the response is too big to cache.
- A streamed response is one in which the entire content is not
- immediately available and in which the Content-Length
- may not be known. Sources of streaming responses include proxied
- responses and the output of CGI scripts. By default, a streamed
- response will not be cached unless it has a
- Content-Length
header. The reason for this is to
- avoid using a large amount of memory to buffer a partial response
- that might end up being too large to fit in the cache.
- The MCacheMaxStreamingBuffer
directive allows
- buffering of streamed responses that don't contain a
- Content-Length
up to the specified maximum amount of
- space. If the maximum buffer space is reached, the buffered
- content is discarded and the attempt to cache is abandoned.
Using a nonzero value for MCacheMaxStreamingBuffer
- will not delay the transmission of the response to the client.
- As soon as mod_mem_cache
copies a block of streamed
- content into a buffer, it sends the block on to the next output
- filter for delivery to the client.
- # Enable caching of streamed responses up to 64KB:
- MCacheMaxStreamingBuffer 65536
-
Description: | The minimum size (in bytes) of a document to be allowed in the -cache |
---|---|
Syntax: | MCacheMinObjectSize bytes |
Default: | MCacheMinObjectSize 1 |
Context: | server config |
Status: | Extension |
Module: | mod_mem_cache |
The MCacheMinObjectSize
directive sets the
- minimum size in bytes of a document for it to be considered
- cacheable.
- MCacheMinObjectSize 10000
-
Description: | The algorithm used to select documents for removal from the -cache |
---|---|
Syntax: | MCacheRemovalAlgorithm LRU|GDSF |
Default: | MCacheRemovalAlgorithm GDSF |
Context: | server config |
Status: | Extension |
Module: | mod_mem_cache |
The MCacheRemovalAlgorithm
directive specifies
- the algorithm used to select documents for removal from the cache.
- Two choices are available:
LRU
(Least Recently Used)LRU
removes the documents that have not been accessed
- for the longest time.GDSF
(GreadyDual-Size)GDSF
assigns a priority to cached documents based
- on the cost of a cache miss and the size of the document. Documents
- with the lowest priority are removed first.
- MCacheRemovalAlgorithm GDSF
- MCacheRemovalAlgorithm LRU
-
Description: | The maximum amount of memory used by the cache in -KBytes |
---|---|
Syntax: | MCacheSize KBytes |
Default: | MCacheSize 100 |
Context: | server config |
Status: | Extension |
Module: | mod_mem_cache |
The MCacheSize
directive sets the maximum
- amount of memory to be used by the cache, in KBytes (1024-byte units).
- If a new object needs to be inserted in the cache and the size of the
- object is greater than the remaining memory, objects will be removed
- until the new object can be cached. The object to be removed is
- selected using the algorithm specified by MCacheRemovalAlgorithm
.
- MCacheSize 700000
-
The MCacheSize
value must be greater than
- the value specified by the MCacheMaxObjectSize
directive.
Apache HTTP ãµã¼ã ãã¼ã¸ã§ã³ 2.3
-説æ: | URI ããã¼ã«ããã³ã³ãã³ãã®ãã£ãã·ã¥ |
---|---|
ã¹ãã¼ã¿ã¹: | Extension |
ã¢ã¸ã¥ã¼ã«èå¥å: | mem_cache_module |
ã½ã¼ã¹ãã¡ã¤ã«: | mod_mem_cache.c |
ãã®ã¢ã¸ã¥ã¼ã«ã¯ mod_cache
ãå¿
è¦ã¨ãã¾ãã
- ãã㯠mod_cache
ã®ãµãã¼ãã¢ã¸ã¥ã¼ã«ã¨ãã¦
- åä½ããã¡ã¢ãªã使ç¨ããã¹ãã¬ã¼ã¸ç®¡çæ©æ§ãæä¾ãã¾ãã
- mod_mem_cache
ã¯äºã¤ã®ã¢ã¼ãã®ã©ã¡ããã§åä½ããããã«
- è¨å®ã§ãã¾ã: ãã¡ã¤ã«è¨è¿°åã®ãã£ãã·ã¥ããã¼ãä¸ã®ãªãã¸ã§ã¯ãã®
- ãã£ãã·ã¥ã§ãããã¼ã«ã«ã§çæãããã³ã³ãã³ãã«å¯¾ãã¦ãã£ãã·ã¥ããã¨ããã
- mod_proxy
ã使ã£ã¦ ProxyPass
(ã¤ã¾ããªãã¼ã¹ãããã·åã) ã«è¨å®ããã¨ãã®ããã¯ã¨ã³ããµã¼ãã®ã³ã³ãã³ãã«å¯¾ãã¦
- ãã£ãã·ã¥ãããã¨ãã«ãããã¸ã广çã§ãã
ã³ã³ãã³ãã®ãã£ãã·ã¥ã¸ã®ä¿åã¨åå¾ã¯ URI ã«åºã¥ãããã¼ã使ããã¾ãã - ã¢ã¯ã»ã¹ä¿è·ã®ããããã¦ããã³ã³ãã³ãã¯ãã£ãã·ã¥ããã¾ããã
- -mod_disk_cache
- ã®ã»ãã好ã¾ããã§ãããããã®ä»¶ã«é¢ãã詳細ãªèª¬æã¯ Caching Guide ã«ããã¾ããç¹ã«éè¦ãªãã¤ã³ãã¯ã
- ãã®ã¢ã¸ã¥ã¼ã«ã®ãã£ãã·ã¥ã¯åããã»ã¹ãã¨ã§ãããã¨ã§ãã説æ: | ãã£ãã·ã¥ã«ä¿ç®¡ããããªãã¸ã§ã¯ãã®æå¤§æ° |
---|---|
æ§æ: | MCacheMaxObjectCount value |
ããã©ã«ã: | MCacheMaxObjectCount 1009 |
ã³ã³ããã¹ã: | ãµã¼ãè¨å®ãã¡ã¤ã« |
ã¹ãã¼ã¿ã¹: | Extension |
ã¢ã¸ã¥ã¼ã«: | mod_mem_cache |
MCacheMaxObjectCount
ãã£ã¬ã¯ãã£ãã¯
- ãã£ãã·ã¥ããããªãã¸ã§ã¯ãã®æå¤§æ°ãæå®ãã¾ãã
- ãã®å¤ã¯ããã·ã¥ãã¼ãã«ã使ããã¨ãã«ä½¿ããã¾ãã
- æ°ãããªãã¸ã§ã¯ããæ¿å
¥ããã¨ãã«ããªãã¸ã§ã¯ãã®æå¤§æ°ã«
- éãã¦ãã¾ã£ã¦ããã¨ããæ°ãããªãã¸ã§ã¯ãããã£ãã·ã¥ã§ããããã«ã
- ãªãã¸ã§ã¯ããä¸ã¤æ¶å»ãã¾ãããªãã¸ã§ã¯ãã¯
- MCacheRemovalAlgorithm
- ã§æå®ãããã¢ã«ã´ãªãºã ã«å¾ã£ã¦åé¤ããã¾ãã
- MCacheMaxObjectCount 13001
-
説æ: | ãã£ãã·ã¥ã«ä¿ç®¡ã§ããããã¥ã¡ã³ãã®æå¤§ãµã¤ãº (ãã¤ã) |
---|---|
æ§æ: | MCacheMaxObjectSize bytes |
ããã©ã«ã: | MCacheMaxObjectSize 10000 |
ã³ã³ããã¹ã: | ãµã¼ãè¨å®ãã¡ã¤ã« |
ã¹ãã¼ã¿ã¹: | Extension |
ã¢ã¸ã¥ã¼ã«: | mod_mem_cache |
MCacheMaxObjectSize
ã¯ããã¥ã¡ã³ãã
- ãã£ãã·ã¥ãããã©ãããå¤å®ãããæå¤§ã®ãµã¤ãºããã¤ãæ°ã§è¨å®ãã¾ãã
- MCacheMaxObjectSize 6400000
-
MCacheMaxObjectSize
ã®å¤ã¯ MCacheMinObjectSize
- ã§æå®ããå¤ããã大ãããªããã°ãªãã¾ããã
説æ: | ã¹ããªã¼ã ããã¦ããå¿çããã£ãã·ã¥ä¸è½ã¨æ±ºå®ããã¾ã§ã« -ã¡ã¢ãªã«ãããã¡ããæå¤§é |
---|---|
æ§æ: | MCacheMaxStreamingBuffer size_in_bytes |
ããã©ã«ã: | MCacheMaxStreamingBuffer of 100000 ã MCacheMaxObjectSize ã®å°ãæ¹ |
ã³ã³ããã¹ã: | ãµã¼ãè¨å®ãã¡ã¤ã« |
ã¹ãã¼ã¿ã¹: | Extension |
ã¢ã¸ã¥ã¼ã«: | mod_mem_cache |
MCacheMaxStreamingBuffer
ãã£ã¬ã¯ãã£ãã¯ã
- ãµã¤ãºã大ãããã¦ãã£ãã·ã¥ã§ããªãã¨å¤æããã¾ã§ã®ã
- ã¹ããªã¼ã å¿çã®ãããã¡ã®ããã®æå¤§ãã¤ãæ°ãæå®ãã¾ãã
- ã¹ããªã¼ã å¿çã¨ã¯ãã³ã³ãã³ãã®å
¨ä½ãããã«ã¯å¾ãããã
- Content-Length
ãããããªãå¿çãæãã¾ãã
- ã¹ããªã¼ã å¿çãè¡ãªããããªãã®ã«ã¯ãããã·ãããå¿çãã
- CGI ã¹ã¯ãªããã®åºåãªã©ãããã¾ããããã©ã«ãã§ã¯ã¹ããªã¼ã ã®å¿çã¯
- Content-Length
ããªãéããã£ãã·ã¥ããã¾ããã
- ãã®ãããªåä½ã«ãªã£ã¦ããçç±ã¯ãçµå±ãã£ãã·ã¥ã«åã¾ããããªãã¨
- 夿ãããã¨ã«ãªã£ã¦ãã¾ããããªããµã¤ãºã®å¤§ããªå¿çã®ãããã¡ãªã³ã°ã«ã
- 大éã®ã¡ã¢ãªãæ¶è²»ãããã®ãé¿ããããã§ãã
- MCacheMaxStreamingBuffer
ãã£ã¬ã¯ãã£ãã使ãã¨ã
- Content-Length
ãå«ã¾ãªãå¿çã«å¯¾ãã¦æå®ãããæå¤§éã¾ã§
- ãããã¡ããããã«ã§ãã¾ãããããã¡ã使ãåãã¨ããããã¡ä¸ã®
- ã³ã³ãã³ãã¯æ¨ã¦ããããã£ãã·ã¥åä½ã䏿¢ãã¾ãã
MCacheMaxStreamingBuffer
ã«éé¶ã®å¤ã
- 使ã£ã¦ããã¯ã©ã¤ã¢ã³ãã¸ã®å¿çã®è»¢éã«ç¹ã«é
å»¶ã¯çºçãã¾ããã
- mod_mem_cache
ã¯ã¹ããªã¼ã ã³ã³ãã³ãã®æçã
- ãããã¡ã«ã³ãã¼ããå¾ãå³åº§ã«ããã®é¨åãã¯ã©ã¤ã¢ã³ãã¸ã®é
éã®
- 次段ã®åºåãã£ã«ã¿ã«éãã¾ãã
- # Enable caching of streamed responses up to 64KB:
- MCacheMaxStreamingBuffer 65536
-
説æ: | ãã£ãã·ã¥ã«ä¿ç®¡ãããããã¥ã¡ã³ãã®æå°ãµã¤ãº (ãã¤ã) |
---|---|
æ§æ: | MCacheMinObjectSize bytes |
ããã©ã«ã: | MCacheMinObjectSize 1 |
ã³ã³ããã¹ã: | ãµã¼ãè¨å®ãã¡ã¤ã« |
ã¹ãã¼ã¿ã¹: | Extension |
ã¢ã¸ã¥ã¼ã«: | mod_mem_cache |
MCacheMinObjectSize
ãã£ã¬ã¯ãã£ãã¯ãããã¥ã¡ã³ãã
- ãã£ãã·ã¥ãããã©ãããå¤å®ãããæå°ã®ãµã¤ãºããã¤ãæ°ã§è¨å®ãã¾ãã
- MCacheMinObjectSize 10000
-
説æ: | ãã£ãã·ã¥ããåé¤ããããã¥ã¡ã³ããé¸ã¶ããã®ã¢ã«ã´ãªãºã |
---|---|
æ§æ: | MCacheRemovalAlgorithm LRU|GDSF |
ããã©ã«ã: | MCacheRemovalAlgorithm GDSF |
ã³ã³ããã¹ã: | ãµã¼ãè¨å®ãã¡ã¤ã« |
ã¹ãã¼ã¿ã¹: | Extension |
ã¢ã¸ã¥ã¼ã«: | mod_mem_cache |
MCacheRemovalAlgorithm
ãã£ã¬ã¯ãã£ãã¯ã
- ãã£ãã·ã¥ããåé¤ããããã¥ã¡ã³ãã鏿ããããã®ã¢ã«ã´ãªãºã ã
- æå®ãã¾ãã鏿è¢ã¯äºã¤ããã¾ã:
LRU
(Least Recently Used)LRU
ä¸çªé·ãã¢ã¯ã»ã¹ããã¦ããªãããã¥ã¡ã³ããåé¤ãã¾ãã
- GDSF
(GreadyDual-Size)GDSF
ã¯ãã£ãã·ã¥ãã¹ã®ã³ã¹ãã¨ããã¥ã¡ã³ãã®ãµã¤ãºããã¨ã«ã
- ããã¥ã¡ã³ãã®ãã£ãã·ã¥ã«å¯¾ãã¦åªå
度ãã¤ãã¾ãã
- åªå
度ã®ä¸çªä½ãããã¥ã¡ã³ããæåã«åé¤ããã¾ãã
- MCacheRemovalAlgorithm GDSF
- MCacheRemovalAlgorithm LRU
-
説æ: | ãã£ãã·ã¥ã«ä½¿ãããã¡ã¢ãªã®æå¤§éããã¤ãåä½ã§æå® |
---|---|
æ§æ: | MCacheSize KBytes |
ããã©ã«ã: | MCacheSize 100 |
ã³ã³ããã¹ã: | ãµã¼ãè¨å®ãã¡ã¤ã« |
ã¹ãã¼ã¿ã¹: | Extension |
ã¢ã¸ã¥ã¼ã«: | mod_mem_cache |
MCacheSize
ãã£ã¬ã¯ãã£ãã¯ãã£ãã·ã¥ã«
- 使ãããã¡ã¢ãªã®å¤§ããããããã¤ã (1024 ãã¤ãåä½) ã§è¨å®ãã¾ãã
- æ°ãããªãã¸ã§ã¯ãããã£ãã·ã¥ã«æ¿å
¥ãããã¨ã«ãªãããªãã¸ã§ã¯ãã®
- ãµã¤ãºãæ®ãã®ã¡ã¢ãªãã大ããå ´åã¯ããã®æ°ãããªãã¸ã§ã¯ãã®æ¿å
¥ã
- å¯è½ã«ãªãã¾ã§ãå¤ããªãã¸ã§ã¯ããåé¤ããã¦ããã¾ãã
- ãªãã¸ã§ã¯ã㯠MCacheRemovalAlgorithm
- ã§æå®ããã¢ã«ã´ãªãºã ã«å¾ã£ã¦åé¤ããã¾ãã
- MCacheSize 700000
-
MCacheSize
ã®å¤ã¯ MCacheMaxObjectSize
ãã£ã¬ã¯ãã£ãã§æå®ããå¤ãã
- 大ãããªããã°ãªãã¾ããã
Apache HTTP Server Version 2.3
-¼³¸í: | URI¸¦ Ű·Î »ç¿ëÇÏ¿© ³»¿ëÀ» ij½¬ÇÑ´Ù. |
---|---|
»óÅÂ: | Experimental |
¸ðµâ¸í: | mem_cache_module |
¼Ò½ºÆÄÀÏ: | mod_mem_cache.c |
ÀÌ ¸ðµâÀ» »ç¿ëÇÏ·Á¸é mod_cache
°¡
- ÇÊ¿äÇÏ´Ù. ÀÌ ¸ðµâÀº mod_cache
¸¦
- Áö¿øÇÏ¸ç ¸Þ¸ð¸®±â¹Ý ÀúÀå°ü¸®ÀÚ¸¦ Á¦°øÇÑ´Ù.
- mod_mem_cache
´Â ÆÄÀϱâ¼úÀÚ¸¦ ij½¬¿¡ ÀúÀåÇϰųª
- °´Ã¼¸¦ Èü °ø°£¿¡ ij½¬ÇÏ´Â µÎ°¡Áö ¹æ½ÄÀ¸·Î µ¿ÀÛÇÑ´Ù.
- mod_mem_cache
´Â Á÷Á¢ ¼¹ö°¡ »ý¼ºÇÑ ÆäÀÌÁö¸¦
- ij½¬Çϰųª ProxyPass
·Î
- ¼³Á¤ÇÑ (¿ªÇÁ·Ï½Ã(reverse proxy))
- mod_proxy
ÀÇ µÞ´Ü ¼¹ö³»¿ëÀ» ij½¬ÇÒ¶§ ÁÖ·Î
- »ç¿ëÇÑ´Ù.
³»¿ëÀº URI¸¦ Ű·Î »ç¿ëÇÏ¿© ij½¬¿¡ ÀúÀåÇÏ°í °¡Á®¿Â´Ù. - Á¢±ÙÀ» Á¦¾îÇÏ´Â ³»¿ëÀº ij½¬¿¡ ÀúÀåÇÏÁö ¾Ê´Â´Ù.
-¼³¸í: | ij½¬¿¡ ÀúÀåÇÒ ¼ö ÀÖ´Â ÃÖ´ë °´Ã¼°³¼ö |
---|---|
¹®¹ý: | MCacheMaxObjectCount value |
±âº»°ª: | MCacheMaxObjectCount 1009 |
»ç¿ëÀå¼Ò: | ÁÖ¼¹ö¼³Á¤ |
»óÅÂ: | Experimental |
¸ðµâ: | mod_mem_cache |
MCacheMaxObjectCount
Áö½Ã¾î´Â
- ij½¬ÇÒ ¼ö ÀÖ´Â ÃÖ´ë °´Ã¼°³¼ö¸¦ ¼³Á¤ÇÑ´Ù. ÀÌ °ªÀº ÇØ½¬Å×À̺íÀ»
- ¸¸µé¶§ »ç¿ëÇÑ´Ù. »õ·Î¿î °´Ã¼¸¦ ij½¬¿¡ Ãß°¡ÇØ¾ß Çϴµ¥ ÃÖ´ë
- °´Ã¼°³¼ö¿¡ µµ´ÞÇÏ¿´´Ù¸é, »õ·Î¿î °´Ã¼¸¦ ij½¬ÇÒ ¼ö ÀÖµµ·Ï
- ´Ù¸¥ °´Ã¼¸¦ Á¦°ÅÇÑ´Ù. MCacheRemovalAlgorithm
À¸·Î
- ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» »ç¿ëÇÏ¿© Á¦°ÅÇÒ °´Ã¼¸¦ ¼±ÅÃÇÑ´Ù.
- MCacheMaxObjectCount 13001
-
¼³¸í: | ij½¬¿¡ ÀúÀåÇÒ ¹®¼ÀÇ ÃÖ´ë Å©±â (¹ÙÀÌÆ® ´ÜÀ§) |
---|---|
¹®¹ý: | MCacheMaxObjectSize bytes |
±âº»°ª: | MCacheMaxObjectSize 10000 |
»ç¿ëÀå¼Ò: | ÁÖ¼¹ö¼³Á¤ |
»óÅÂ: | Experimental |
¸ðµâ: | mod_mem_cache |
MCacheMaxObjectSize
Áö½Ã¾î´Â ij½¬¿¡
- ÀúÀåÇÒ ¹®¼ÀÇ ÃÖ´ë Å©±â¸¦ ¹ÙÀÌÆ® ´ÜÀ§·Î ÁöÁ¤ÇÑ´Ù.
- MCacheMaxObjectSize 6400000
-
MCacheMaxObjectSize
°ªÀº MCacheMinObjectSize
- Áö½Ã¾î·Î ÁöÁ¤ÇÑ °ªº¸´Ù Ä¿¾ß ÇÑ´Ù.
¼³¸í: | ÀÀ´äÀ» ij½¬¾ÈÇÑ´Ù°í °áÁ¤Çϱâ Àü±îÁö ¸Þ¸ð¸® ¹öÆÛ¿¡ -ÀúÀåÇÒ ½ºÆ®¸² ÀÀ´äÀÇ ÃÖ´ë Å©±â |
---|---|
¹®¹ý: | MCacheMaxStreamingBuffer size_in_bytes |
±âº»°ª: | MCacheMaxStreamingBuffer 100000°ú MCacheMaxObjectSize
-Áß¿¡ ÀÛÀº °ª |
»ç¿ëÀå¼Ò: | ÁÖ¼¹ö¼³Á¤ |
»óÅÂ: | Experimental |
¸ðµâ: | mod_mem_cache |
MCacheMaxStreamingBuffer
Áö½Ã¾î´Â
- ÀÀ´äÀÌ ³Ê¹« Ä¿¼ ij½¬ÇÒ ¼ö ¾øÀ»¶§±îÁö ¹öÆÛ¿¡ ÀúÀåÇÒ ½ºÆ®¸²
- ÀÀ´äÀÇ ÃÖ´ë ¹ÙÀÌÆ®¼ö¸¦ ¼³Á¤ÇÑ´Ù. ½ºÆ®¸² ÀÀ´ä(streamed response)Àº
- Àüü ³»¿ëÀ» Áï½Ã ¾Ë ¼ö ¾ø°í Content-Length
µµ
- ¸ð¸£´Â ÀÀ´äÀÌ´Ù. ÇÁ·Ï½ÃµÈ ÀÀ´äÀ̳ª CGI ½ºÅ©¸³Æ®ÀÇ Ãâ·ÂÀÌ
- ½ºÆ®¸² ÀÀ´ä¿¡ ¼ÓÇÑ´Ù. ±âº»ÀûÀ¸·Î Content-Length
- Çì´õ°¡ ¾ø´Ù¸é ½ºÆ®¸² ÀÀ´äÀ» ij½¬¿¡ ÀúÀåÇÏÁö ¾Ê´Â´Ù.
- ÀÌÀ¯´Â ij½¬¿¡ ÀúÀåÇϱ⿡ ³Ê¹« Å« ÀÀ´äÀÇ ÀϺθ¦ ¹öÆÛ¿¡
- ÀúÀåÇϱâÀ§ÇØ ¸¹Àº ¸Þ¸ð¸®¸¦ ³¶ºñÇÏÁö ¾Ê±âÀ§ÇؼÀÌ´Ù.
- MCacheMaxStreamingBuffer
Áö½Ã¾î¸¦
- »ç¿ëÇϸé Content-Length
°¡ ¾ø´Â ½ºÆ®¸² ÀÀ´äÀ»
- ÁöÁ¤ÇÑ Å©±â±îÁö¸¸ ¹öÆÛ¿¡ ÀúÀåÇÑ´Ù. ÃÖ´ë Å©±â¸¦ ³Ñ¾î¼¸é
- ¹öÆÛ ³»¿ëÀ» ¹ö¸®°í ij½¬ÇÏÁö ¾Ê´Â´Ù.
MCacheMaxStreamingBuffer
¿¡ 0ÀÌ
- ¾Æ´Ñ °ªÀ» ¼³Á¤ÇÏ¿©µµ Ŭ¶óÀÌ¾ðÆ®·Î ÀÀ´äÀ» ´Ê°Ô º¸³»Áö ¾Ê´Â´Ù.
- mod_mem_cache
´Â ½ºÆ®¸² ÀÀ´äÀÇ ÀϺθ¦
- ¹öÆÛ¿¡ º¹»çÇÏÀÚ¸¶ÀÚ Å¬¶óÀÌ¾ðÆ®·Î º¸³»±âÀ§ÇØ ´ÙÀ½ Ãâ·ÂÇÊÅÍ·Î
- º¸³½´Ù.
- # ½ºÆ®¸² ÀÀ´äÀ» 64KB±îÁö ij½¬ÇÑ´Ù:
- MCacheMaxStreamingBuffer 65536
-
¼³¸í: | ij½¬¿¡ ÀúÀåÇÒ ¹®¼ÀÇ ÃÖ¼Ò Å©±â (¹ÙÀÌÆ® ´ÜÀ§) |
---|---|
¹®¹ý: | MCacheMinObjectSize bytes |
±âº»°ª: | MCacheMinObjectSize 0 |
»ç¿ëÀå¼Ò: | ÁÖ¼¹ö¼³Á¤ |
»óÅÂ: | Experimental |
¸ðµâ: | mod_mem_cache |
MCacheMinObjectSize
Áö½Ã¾î´Â ij½¬¿¡
- ÀúÀåÇÒ ¹®¼ÀÇ ÃÖ¼Ò Å©±â¸¦ ¹ÙÀÌÆ® ´ÜÀ§·Î ÁöÁ¤ÇÑ´Ù.
- MCacheMinObjectSize 10000
-
¼³¸í: | ij½¬¿¡¼ Á¦°ÅÇÒ ¹®¼¸¦ ã´Â ¾Ë°í¸®Áò |
---|---|
¹®¹ý: | MCacheRemovalAlgorithm LRU|GDSF |
±âº»°ª: | MCacheRemovalAlgorithm GDSF |
»ç¿ëÀå¼Ò: | ÁÖ¼¹ö¼³Á¤ |
»óÅÂ: | Experimental |
¸ðµâ: | mod_mem_cache |
MCacheRemovalAlgorithm
Áö½Ã¾î´Â
- ij½¬¿¡¼ Á¦°ÅÇÒ ¹®¼¸¦ ã´Â ¾Ë°í¸®ÁòÀ» ÁöÁ¤ÇÑ´Ù.
LRU
(Least Recently Used)LRU
´Â °¡Àå ¿À·¡µ¿¾È Á¢±ÙÇÏÁö ¾ÊÀº ¹®¼¸¦
- ¸ÕÀú Á¦°ÅÇÑ´Ù.GDSF
(GreadyDual-Size)GDSF
´Â ij½¬ ½ÇÆÐ(cache miss) ºñ¿ë°ú ¹®¼ÀÇ
- Å©±â¸¦ °¡Áö°í ij½¬ÇÑ ¹®¼¿¡ ¿ì¼±¼øÀ§¸¦ ºÎ¿©ÇÑ´Ù. °¡Àå
- ¿ì¼±¼øÀ§°¡ ³·Àº ¹®¼¸¦ ¸ÕÀú Á¦°ÅÇÑ´Ù.
- MCacheRemovalAlgorithm GDSF
- MCacheRemovalAlgorithm LRU
-
¼³¸í: | ij½¬¿¡ »ç¿ëÇÒ ÃÖ´ë ¸Þ¸ð¸®·® (KByte ´ÜÀ§) |
---|---|
¹®¹ý: | MCacheSize KBytes |
±âº»°ª: | MCacheSize 100 |
»ç¿ëÀå¼Ò: | ÁÖ¼¹ö¼³Á¤ |
»óÅÂ: | Experimental |
¸ðµâ: | mod_mem_cache |
MCacheSize
Áö½Ã¾î´Â ij½¬¿¡ »ç¿ëÇÒ
- ÃÖ´ë ¸Þ¸ð¸®·®À» KByte ´ÜÀ§·Î (1024 ¹ÙÀÌÆ® ´ÜÀ§) ¼³Á¤ÇÑ´Ù.
- »õ·Î¿î °´Ã¼À» ij½¬¿¡ Ãß°¡ÇØ¾ß Çϴµ¥ °´Ã¼ÀÇ Å©±â°¡ ³²Àº
- ¸Þ¸ð¸®º¸´Ù Å©´Ù¸é »õ·Î¿î °´Ã¼À» ij½¬ÇÒ ¼ö ÀÖÀ»¶§±îÁö ´Ù¸¥
- °´Ã¼¸¦ Á¦°ÅÇÑ´Ù. MCacheRemovalAlgorithm
À¸·Î
- ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» »ç¿ëÇÏ¿© Á¦°ÅÇÒ °´Ã¼¸¦ ¼±ÅÃÇÑ´Ù.
- MCacheSize 700000
-
MCacheSize
°ªÀº MCacheMaxObjectSize
- Áö½Ã¾î·Î ÁöÁ¤ÇÑ °ªº¸´Ù Ä¿¾ß ÇÑ´Ù.
This module requires the service of
Content is stored in and retrieved from the cache using URI based - keys. Content with access protection is not cached.
- -The
The
The
The
The
The value of
The
LRU
(Least Recently Used)LRU
removes the documents that have not been accessed
- for the longest time.GDSF
(GreadyDual-Size)GDSF
assigns a priority to cached documents based
- on the cost of a cache miss and the size of the document. Documents
- with the lowest priority are removed first.The Content-Length
- may not be known. Sources of streaming responses include proxied
- responses and the output of CGI scripts. By default, a streamed
- response will not be cached unless it has a
- Content-Length
header. The reason for this is to
- avoid using a large amount of memory to buffer a partial response
- that might end up being too large to fit in the cache.
- The Content-Length
up to the specified maximum amount of
- space. If the maximum buffer space is reached, the buffered
- content is discarded and the attempt to cache is abandoned.
Using a nonzero value for
ãã®ã¢ã¸ã¥ã¼ã«ã¯
ã³ã³ãã³ãã®ãã£ãã·ã¥ã¸ã®ä¿åã¨åå¾ã¯ URI ã«åºã¥ãããã¼ã使ããã¾ãã - ã¢ã¯ã»ã¹ä¿è·ã®ããããã¦ããã³ã³ãã³ãã¯ãã£ãã·ã¥ããã¾ããã
- -LRU
(Least Recently Used)LRU
ä¸çªé·ãã¢ã¯ã»ã¹ããã¦ããªãããã¥ã¡ã³ããåé¤ãã¾ãã
- GDSF
(GreadyDual-Size)GDSF
ã¯ãã£ãã·ã¥ãã¹ã®ã³ã¹ãã¨ããã¥ã¡ã³ãã®ãµã¤ãºããã¨ã«ã
- ããã¥ã¡ã³ãã®ãã£ãã·ã¥ã«å¯¾ãã¦åªå
度ãã¤ãã¾ãã
- åªå
度ã®ä¸çªä½ãããã¥ã¡ã³ããæåã«åé¤ããã¾ããContent-Length
ãããããªãå¿çãæãã¾ãã
- ã¹ããªã¼ã å¿çãè¡ãªããããªãã®ã«ã¯ãããã·ãããå¿çãã
- CGI ã¹ã¯ãªããã®åºåãªã©ãããã¾ããããã©ã«ãã§ã¯ã¹ããªã¼ã ã®å¿çã¯
- Content-Length
ããªãéããã£ãã·ã¥ããã¾ããã
- ãã®ãããªåä½ã«ãªã£ã¦ããçç±ã¯ãçµå±ãã£ãã·ã¥ã«åã¾ããããªãã¨
- 夿ãããã¨ã«ãªã£ã¦ãã¾ããããªããµã¤ãºã®å¤§ããªå¿çã®ãããã¡ãªã³ã°ã«ã
- 大éã®ã¡ã¢ãªãæ¶è²»ãããã®ãé¿ããããã§ãã
- Content-Length
ãå«ã¾ãªãå¿çã«å¯¾ãã¦æå®ãããæå¤§éã¾ã§
- ãããã¡ããããã«ã§ãã¾ãããããã¡ã使ãåãã¨ããããã¡ä¸ã®
- ã³ã³ãã³ãã¯æ¨ã¦ããããã£ãã·ã¥åä½ã䏿¢ãã¾ãã
ÀÌ ¸ðµâÀ» »ç¿ëÇÏ·Á¸é
³»¿ëÀº URI¸¦ Ű·Î »ç¿ëÇÏ¿© ij½¬¿¡ ÀúÀåÇÏ°í °¡Á®¿Â´Ù. - Á¢±ÙÀ» Á¦¾îÇÏ´Â ³»¿ëÀº ij½¬¿¡ ÀúÀåÇÏÁö ¾Ê´Â´Ù.
-LRU
(Least Recently Used)LRU
´Â °¡Àå ¿À·¡µ¿¾È Á¢±ÙÇÏÁö ¾ÊÀº ¹®¼¸¦
- ¸ÕÀú Á¦°ÅÇÑ´Ù.GDSF
(GreadyDual-Size)GDSF
´Â ij½¬ ½ÇÆÐ(cache miss) ºñ¿ë°ú ¹®¼ÀÇ
- Å©±â¸¦ °¡Áö°í ij½¬ÇÑ ¹®¼¿¡ ¿ì¼±¼øÀ§¸¦ ºÎ¿©ÇÑ´Ù. °¡Àå
- ¿ì¼±¼øÀ§°¡ ³·Àº ¹®¼¸¦ ¸ÕÀú Á¦°ÅÇÑ´Ù.Content-Length
µµ
- ¸ð¸£´Â ÀÀ´äÀÌ´Ù. ÇÁ·Ï½ÃµÈ ÀÀ´äÀ̳ª CGI ½ºÅ©¸³Æ®ÀÇ Ãâ·ÂÀÌ
- ½ºÆ®¸² ÀÀ´ä¿¡ ¼ÓÇÑ´Ù. ±âº»ÀûÀ¸·Î Content-Length
- Çì´õ°¡ ¾ø´Ù¸é ½ºÆ®¸² ÀÀ´äÀ» ij½¬¿¡ ÀúÀåÇÏÁö ¾Ê´Â´Ù.
- ÀÌÀ¯´Â ij½¬¿¡ ÀúÀåÇϱ⿡ ³Ê¹« Å« ÀÀ´äÀÇ ÀϺθ¦ ¹öÆÛ¿¡
- ÀúÀåÇϱâÀ§ÇØ ¸¹Àº ¸Þ¸ð¸®¸¦ ³¶ºñÇÏÁö ¾Ê±âÀ§ÇؼÀÌ´Ù.
- Content-Length
°¡ ¾ø´Â ½ºÆ®¸² ÀÀ´äÀ»
- ÁöÁ¤ÇÑ Å©±â±îÁö¸¸ ¹öÆÛ¿¡ ÀúÀåÇÑ´Ù. ÃÖ´ë Å©±â¸¦ ³Ñ¾î¼¸é
- ¹öÆÛ ³»¿ëÀ» ¹ö¸®°í ij½¬ÇÏÁö ¾Ê´Â´Ù.
--enable-cern-meta
--enable-mem-cache
--enable-mime-magic