Linuxãµã¼ãä¸ã§ãã¹ãéã³ãã¯ã·ã§ã³ãéç´è¡¨ç¤ºãããã¼ã« lstf ãã¤ãã£ã - ããããã¡ã¢ ã«ã¦ç´¹ä»ããlstfã®ãã¹ãä¸ã®TCPã³ãã¯ã·ã§ã³æ
å ±ã®åå¾å¦çã«ããã¦ã/proc/net/tcpãèªã¿ã ã代ããã«ãNetlinkã½ã±ãããå©ç¨ãããã¨ã§ãå®è¡é度ã1.6åã«ãªã£ããlstfã®ãã¼ã¸ã§ã³0.4.0ã§ä½¿ããããã«ãªãã å®é¨ ç´40,000æ¥ç¶ããWebãµã¼ãä¸ã«ã¦ãlstfã³ãã³ãã®å®è¡æéãåå解決æéãå«ã¾ãã«æ¯è¼ããã å®é¨ç°å¢ã¯EC2ã®c4.2xlargeãDebian 8.10ãLinuxã«ã¼ãã«3.16ã§ããããªãã¼ã¹ãããã·ã¨ãã¦nginxãåä½ãã¦ããã æ¥ç¶æ°ã¯æ¬¡ã®ã³ãã³ãããã ããã40,000æ¥ç¶ã§ãããã¨ã確èªããã [y_uuki@hoge ~]$ ss -tan | wc -l 39264 /proc/net/tcpãèªãå®è£
ã§ã¯ã次ã®ãã
{{#tags}}- {{label}}
{{/tags}}