nginx - óÀ½ Á¢¼Ó½Ã ¼Óµµ°¡ ´ÊÀº °ÍÀÇ ÇØ°á¹æ¹ýÀÌ ¹«¾ùÀΰ¡¿ä?
ȸ¿øK 2016-03 2016-03-22 22:46:32 Á¶È¸ 7952 Ãßõ 0
웹브라우져에서 nginx를 처음 접속하면 속도가 상당히 늦더라구요.
구글에서 찾아보니, 엄청나게 많은 문서들이 있는데...
기술적인 이야기들만 있고
실제로 뭘 하라는 것인지는 애매하더라구요.
https://www.google.co.kr/?gfe_rd=cr&ei=P0zxVp-mGtPU8Ae35YGADA#newwindow=1&q=Slow+first+connect+through+nginx
nginx의 첫 접속을 빠르게 하는 방법. 조언 부탁드립니다.
¹Ý¸é¿¡ apache´Â Ç×»ó ¶°ÀÖÁÒ.
apacheµµ prefork°¡ ¾Æ´Ñ event¸¦ ¾²°í ÀÖ±¸¿ä (2CPU »çÀÌƮó·³...)
¾ÛÀ̵ç À¥À̵ç óÀ½ access°¡ ÀÌ·¸°Ô ´ÊÀ¸¸é »ó´çÈ÷ Â¥ÁõÀÌ ³¯ °Í °°¾Æ¼¿ä.
root 6547 1 0 06:14 ? 00:00:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx 6548 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6549 6547 0 06:14 ? 00:00:02 nginx: worker process
nginx 6550 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6551 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6552 6547 0 06:14 ? 00:00:02 nginx: worker process
nginx 6553 6547 0 06:14 ? 00:00:02 nginx: worker process
nginx 6554 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6555 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6556 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6557 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6558 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6559 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6560 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6561 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6562 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6563 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6564 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6565 6547 0 06:14 ? 00:00:02 nginx: worker process
nginx 6566 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6567 6547 0 06:14 ? 00:00:02 nginx: worker process
nginx 6568 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6569 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6570 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6571 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6572 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6573 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6574 6547 0 06:14 ? 00:00:02 nginx: worker process
nginx 6575 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6576 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6577 6547 0 06:14 ? 00:00:02 nginx: worker process
nginx 6578 6547 0 06:14 ? 00:00:03 nginx: worker process
nginx 6579 6547 0 06:14 ? 00:00:03 nginx: worker process
root 7873 7851 0 20:22 pts/0 00:00:00 grep --color=auto nginx
ÃÖ±Ù Á¦°¡ ´ã´çÇÏ´Â ¼ºñ½ºµéµµ frontend ´Â nginx °¡ ´ë´Ù¼öÀε¥, ü°¨»ó ´À¸®´Ù´Â ³»¿ë Á¢¼ö°¡ ¾ø¾î¼¿ä
(´ëºÎºÐ xx ms ¾È¿¡ ÃÖÃÊ response µé¾î¿À´Â »óȲÀ̶ó)
ÀÌÈÄ¿¡´Â ¾ÆÁÖ ºü¸£±¸¿ä.
ÀÌ·± »óȲÀ̱¸¿ä. php-fpm µîÀÇ Æ©´×Àº ¸ðµÎ ´Ù ÇÑ °Í °°½À´Ï´Ù.
http://stackoverflow.com/questions/32114788/slow-first-connect-through-nginx
¼¹öÀÇ ½Ã°£ÀÌ ¾ÕÀ¸·Î ¸¹ÀÌ °¡ ÀÖ¾ú´Ù°í ÇÕ´Ï´Ù. -..-...
¼¹ö¿¡¼ rdate¸¦ ¸ÅÀÏ µ¹°Ô Çص״µ¥¿Ö ÀÌ·±ÀÏÀÌ???