The Keep-Alive extension to HTTP/1.0 and the persistent connection feature of HTTP/1.1 provide long-lived HTTP sessions which allow multiple requests to be sent over the same TCP connection.
In some cases this has been shown to result in an almost 50% speedup in latency times for HTML documents with many images.
To enable Keep-Alive connections, set KeepAlive On
HTTPÇÁ·ÎÅäÄÝ»ó Çѹø Á¢¼Ó ÈÄ ÀڷḦ ¸ðµÎ Àü¼ÛÇϸé Á¢¼ÓÀ» ²÷¾î ¹ö¸®Áö¸¸ KeepAlive On»óÅ¿¡¼´Â KeepAliveTimeOut½Ã°£ µ¿¾È Á¢¼ÓÀ» ²÷Áö¾Ê°í ´ÙÀ½ Á¢¼ÓÀ» ±â´Ù¸°´Ù.
¼ø¼ö htmlÆÄÀÏ, À̹ÌÁöÆÄÀÏ µîÀ¸·Î¸¸ ±¸¼ºµÈ ¼¹ö(µ¿ÀûÆÄÀÏÀÌ ¾ø´Â¼¹ö)¿¡ KeepAlive OnÀ¸·Î ¼³Á¤ÇÒ °æ¿ì 50%Á¤µµÀÇ ¼º´É Çâ»óÀ» º¸Àδٰí ÇÑ´Ù. ´Ü ÀÌ¿Í °°Àº ¼º´ÉÇâ»óÀ» º¸ÀÏ·Á¸é ¼¹ö°¡ ¹Ù»ÚÁö ¾Ê¾Æ¾ß ÇÑ´Ù.
¾ÆÁÖ ¹Ù»Û ¼¹ö ȯ°æ¿¡¼ KeepAlive OnÀ» ¼³Á¤ÇØ ³õÀ» °æ¿ì ¸ðµç Á¢¼ÓÀÚ ¸¶´Ù ¿¬°á À¯Áö¸¦ ÇØ ³õ¾Æ¾ß Çϱ⠶§¹®¿¡ ¾ÆÆÄÄ¡ ÇÁ·Î¼¼½º¼ö°¡ ±âÇÏ ±Þ¼öÀûÀ¸·Î ´Ã¾î³ª MaxClient°ªÀ» ÃÊ°úÇÏ°Ô µÈ´Ù.
¶ÇÇÑ On»óÅÂÀ϶§ Á¢¼ÓÀ¯Áö ÇÏ´Â ÇÁ·Î¼¼½ºµé ¶§¹®¿¡ ¸Þ¸ð¸®¸¦ ±× ¸¸Å ¸¹ÀÌ »ç¿ëÇÏ°Ô µÈ´Ù.
µû¶ó¼ KeepAlive°ªÀº ´Ü¼øÈ÷ On/Off ½Ãų°ÍÀÌ ¾Æ´Ï¶ó Á¢¼ÓÀÚ, ¸Þ¸ð¸®¿ë·®°ú ¿¬°üÇؼ °ªÀ» ¼³Á¤ÇÏ¿©¾ßÇÑ´Ù.
KeepAlive ¼³Á¤
Á¢¼ÓÀÚ°¡ ¸¹Áö¸¸ ¸Þ¸ð¸®°¡ ÃæºÐÇÏ´Ù : On
Á¢¼ÓÀÚ°¡ ¸¹Áö¸¸ ¸Þ¸ð¸® ¿©À¯°¡ ¾ø´Ù : Off
Á¢¼ÓÀÚ°¡ Àû°í ¸Þ¸ð¸®°¡ ÃæºÐÇÏ´Ù : On
Á¢¼ÓÀÚ°¡ Àû°í ¸Þ¸ð¸® ¿©À¯°¡ ¾ø´Ù : Off
- ¸Þ¸ð¸®°¡ ÃæºÐÇÏ´Ù´Â Àǹ̴ Á¢¼ÓÀÚ°¡ MaxClient °ª¿¡ µµ´ÞÇßÀ» °æ¿ì¶ó°í swap ¸Þ¸ð¸®¸¦ »ç¿ëÇÏÁö ¾Ê´Â»óŸ¦ ¸»ÇÑ´Ù.
KeepAliveÁ¤ÀÇ
ƯÁ¤ ÇÑ ÇÁ·Î¼¼½º°¡ ƯÁ¤ »ç¿ëÀÚÀÇ Áö¼ÓÀûÀÎ ¿äû ÀÛ¾÷µéÀ» °è¼ÓÇؼ ó¸®Çϵµ·Ï ÇÔ.
Áï, ù ¿äû ½Ã¿¡ ¿¾î ³õÀº Port¸¦ ²÷Áö ¾Ê°í, ÁöÁ¤µÈ KeepAliveTimeoutµ¿¾È idleÇÏ¸é ²÷´Â´Ù.
KeepAliveTimeout°ªÀÌ Ã¤¿öÁö±â Àü¿¡ ´Ù½Ã ¿äûÀÌ ¿Â´Ù¸é ´Ù½Ã KeepAliveTimeoutÀº ´Ù½Ã 0ºÎÅÍ Count¸¦ ¼öÇàÇÑ´Ù.
ÃÖÁ¾ÀûÀ¸·Î, KeepAliveTimeout ÁöÁ¤ÇÑ ½Ã°£¸¸Å idleÇÏ¸é ±×¶§, ÇØ´ç Port¿¬°áÀ» ²÷´Â´Ù.
¼³Á¤¹ý
KeepAlive [On/Off]
MaxKeepAliveRequest [ȸ¼ö]
KeepAliveTimeout [ÃÊ]
»ç¿ë ¿¹
KeepAlive On
MaxKeepAliveRequest 100
KeepAliveTimeout 60
°³ÀÎÀûÀÎ °ßÇØ
Client ¼ö°¡ ¸¹À» °æ¿ì, »ó´çÈ÷ ¹Î°¨ÇÏ°Ô ÀÛ¿ëÇÏ´Â ºÎºÐÀ̹ǷΠ½ÅÁßÈ÷ ¼³Á¤ÇÏ¿©¾ß ÇÑ´Ù.
º¸Åë ´Ü¹ß¼º ¿äûµéÀÌ ¸¹À» °æ¿ì, KeepAlive¸¦ OffÇÏ´Â °ÍÀÌ ÁÁÀ» ¼öµµ ÀÖ´Ù.
Ç㳪, KeepAlive¸¦ »ç¿ëÇϸé À¥ºê¶óÀú»ó¿¡¼ÀÇ Ã¼°¨¼Óµµ´Â »¡¶óÁø´Ù´Â°ÍÀ» ÀØÁö ¸»ÀÚ.
ÇÊÀÚÀÇ °æ¿ì, ¿¹Àü¿¡ ±×¸² ÆÄÀϵéÀÌ ¿¢¹ÚÀÌ ¶ß´Â ¹®Á¦°¡ ¹ß»ýÇÏ¿© ÇØ°áÇÏ°íÀÚ »çÀÌÆ® Áö¿øÀ» ³ª°¬¾ú´Âµ¥,
ÀÌ ¹®Á¦´Â ƯÁ¤ ³¯¿¡¸¸ ¹ß»ýÀ» ÇÏ¿´´Ù. Access·Î±×¸¦ ºÐ¼®ÇÑ °á°ú, ÇØ´ç ³¯¿¡ ¿äûÀÌ ±Þ°ÝÈ÷ ¸¹¾ÒÀ½À» È®ÀÎÇÏ¿´°í,
Errorlog»ó¿¡¼´Â ¸¹Àº ¿äûµéÀÌ À¥¼¹ö´Ü¿¡¼ ƨ°Ü¹ö¸²À» È®ÀÎÇÏ¿´´Ù.
À̶§, KeepAliveTimeoutÀÇ °ªÀº 60ÃÊ ¿´À¸¸ç, ¼ºñ½º ¼º°Ý Ư¼º»ó ¸¹Àº À̹ÌÁö ÆÄÀϵéÀÇ ¿äûÀÌ src="http://~ " Çü½ÄÀ¸·Î µÇ¾î ÀÖ¾î¼ ÀÌ À̹ÌÁö 󸮸¦ À§ÇØ ¸Å¹ø À̹ÌÁö ¿äû½Ã¸¶´Ù ¼ÒÄÏÀÌ »õ·Î »ý¼ºµÇ¾ú´ø °ÍÀÌ¿´´Ù.
±×¿¡ µû¶ó, KeepAliveTimeoutÀÇ ¼öÄ¡¸¦ 10ÃÊ ³»·Î ÁÙ¿´´Ù. ±×·¯ÀÚ ÇØ´ç ¹®Á¦´Â ÇØ°á µÇ¾ú´Ù.
Ãâó :
http://cafe.rootcenter.com/130079030932
http://mcpaint.t