{"id":124594,"date":"2018-10-29T10:24:59","date_gmt":"2018-10-29T02:24:59","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=124594"},"modified":"2018-10-23T09:32:13","modified_gmt":"2018-10-23T01:32:13","slug":"description-monitoring-tools","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/description-monitoring-tools.html","title":{"rendered":"Linux\u76d1\u63a7\u5de5\u5177\u8bb2\u89e3"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u672c\u6587\u4e3b\u8981\u8bb0\u5f55\u4e00\u4e0b Linux\u7cfb\u7edf\u4e0a\u4e00\u4e9b\u5e38\u7528\u7684\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177\uff0c\u975e\u5e38\u597d\u7528\u3002\u6b63\u6240\u8c13\u78e8\u5200\u4e0d\u8bef\u780d\u67f4\u5de5\uff0c\u82b1\u70b9\u65f6\u95f4\u603b\u7ed3\u4e00\u4e0b\u662f\u503c\u5f97\u7684\uff01<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u672c\u6587\u5185\u5bb9\u8111\u56fe\u5982\u4e0b\uff1a<\/p>\n

\"\"<\/div>\n
\n
top \u547d\u4ee4<\/strong><\/div>\n

top \u547d\u4ee4\u6211\u60f3\u5927\u5bb6\u90fd\u633a\u719f\u6089\u5427\uff01Linux \u4e0b\u7684 top \u547d\u4ee4\u6709\u70b9\u7c7b\u4f3c\u4e8e Windows\u4e0b\u7684\u4efb\u52a1\u7ba1\u7406\u5668\uff0c\u80fd\u591f\u5b9e\u65f6\u52a8\u6001\u5730\u76d1\u63a7\u5e76\u663e\u793a\u7cfb\u7edf\u4e2d\u5404\u4e2a\u8fdb\u7a0b\u7684\u8d44\u6e90\u5360\u7528\u72b6\u51b5\uff0c\u662f Linux\u4e0b\u5e38\u7528\u7684\u6027\u80fd\u76d1\u63a7\u548c\u5206\u6790\u5de5\u5177\u3002<\/p>\n

\u4e00\u4e2a\u5e38\u89c1\u7684top\u547d\u4ee4\u7684\u6267\u884c\u89c6\u56fe\u5982\u4e0b\uff1a<\/p>\n

\"\"<\/div>\n

\u4e0b\u9762\u6211\u4eec\u8be6\u7ec6\u5728\u56fe\u4e2d\u6807\u6ce8\u51fa\u6bcf\u4e2a\u6307\u6807\u7684\u542b\u4e49\uff0c\u8ba4\u771f\u770b\u56fe\u5bf9\u6bd4\u7406\u89e3\u5427\uff08\u5fc5\u8981\u65f6\u53ef\u4fdd\u5b58\u8be5\u56fe\u5907\u67e5\u54e6\uff09\uff1a<\/p>\n

\"\"<\/p>\n

\u600e\u4e48\u6837\uff0c\u7406\u89e3\u8d77\u6765\u591f\u76f4\u89c2\u4e86\u5427\uff0c\u81f3\u4e8e top\u547d\u4ee4\u7684\u5176\u4ed6\u4e00\u4e9b\u5e26\u53c2\u6570\u7528\u6cd5\u81ea\u884chelp\u5427\uff0c\u592a\u591a\u4e86\uff0c\u4e0d\u518d\u8d58\u8ff0\u4e86\uff01<\/p>\n


\n
htop \u547d\u4ee4<\/strong><\/div>\n

htop \u662f Linux\u4e0b\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7684\u8fdb\u7a0b\u6d4f\u89c8\u5668\uff0c\u53ef\u4ee5\u5b8c\u5168\u66ff\u4ee3\u4e0a\u4e00\u5c0f\u8282\u4e2d\u6240\u8bb2\u7684 top\u547d\u4ee4\uff0c\u4e0e top\u547d\u4ee4\u5bf9\u6bd4\uff0chtop\u547d\u4ee4\u6709\u5982\u4e0b\u4f18\u70b9\uff1a<\/p>\n

    \n
  • \u76f4\u63a5\u652f\u6301\u9f20\u6807\u70b9\u51fb\u64cd\u4f5c\uff08 \u5c31\u95ee\u4f606\u4e0d6\uff01\uff09<\/li>\n
  • \u753b\u9762\u53ef\u4ee5\u6c34\u5e73\u5782\u76f4\u6eda\u52a8\uff0c\u66f4\u50cf\u4e00\u4e2a\u7a97\u53e3<\/li>\n
  • \u53ef\u4ee5\u8ddf\u8e2a\u8fdb\u7a0b\uff0c\u663e\u793a\u8fdb\u7a0b\u6253\u5f00\u7684\u6587\u4ef6<\/li>\n
  • \u652f\u6301\u8fdb\u7a0b\u7684\u6811\u72b6\u56fe\u663e\u793a<\/li>\n
  • \u652f\u6301\u6309\u7167\u540d\u79f0\u67e5\u627e\u8fdb\u7a0b<\/li>\n<\/ul>\n

    \u603b\u4e4b\u53ef\u89c6\u5316\u65b9\u9762\u505a\u5f9766\u7684\uff0c\u6211\u4eec\u6765\u4f53\u9a8c\u4e00\u4e0b\uff1a<\/p>\n

    \"\"<\/p>\n

    \u5c31\u8be5\u56fe\u6765\u8bf4\uff0c\u5206\u6210\u4e09\u90e8\u5206\uff1a<\/p>\n

      \n
    • \u9876\u90e8\u662f\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5\u6982\u89c8\uff0c\u8fd9\u8fdb\u5ea6\u6761\u770b\u7740\u5c31\u633a\u9177\u70ab<\/li>\n
    • \u4e2d\u95f4\u662f\u8fdb\u7a0b\u8868\uff0c\u548ctop\u547d\u4ee4\u7684\u7c7b\u4f3c<\/li>\n
    • \u4e0b\u9762\u662f\u64cd\u4f5c\u6307\u5f15\u548c\u5feb\u6377\u952e\u6e05\u6670\u660e\u4e86<\/li>\n<\/ul>\n

      \u6211\u4eec\u63a5\u4e0b\u6765\u518d\u6765\u770b\u4e00\u4e9b\u56fe\u5f62\u5316\u7684\u64cd\u4f5c\uff1a<\/p>\n

        \n
      • \u8fdb\u7a0b\u6811\u72b6\u56fe\"\"<\/li>\n
      • \u9f20\u6807\u70b9\u51fb\u5404\u79cd\u6307\u6807\u6765\u6392\u5e8f\"\"<\/li>\n
      • \u8ddf\u8e2a\u8fdb\u7a0b\u529f\u80fd\"\"<\/li>\n<\/ul>\n
        \"\"<\/div>\n
        \n
        iotop \u547d\u4ee4<\/strong><\/div>\n

        iotop \u662f\u7528\u6765\u76d1\u63a7\u786c\u76d8 IO\u7684\u4f7f\u7528\u60c5\u51b5\uff0cUI \u754c\u9762\u548c top\u7c7b\u4f3c\uff0c\u5176\u4e2d\u5305\u62ec PID\u3001\u7528\u6237\u3001I\/O\u3001\u8fdb\u7a0b \u7b49\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n

        Linux \u4e0b\u7cfb\u7edf\u81ea\u5e26\u7684IO\u7edf\u8ba1\u5de5\u5177\u5982 iostat\uff0cnmon\u7b49\u5927\u591a\u6570\u662f\u53ea\u80fd\u7edf\u8ba1\u5230 per\u8bbe\u5907\u7684\u8bfb\u5199\u60c5\u51b5\uff0c\u5982\u679c\u4f60\u60f3\u77e5\u9053\u6bcf\u4e2a\u8fdb\u7a0b\u662f\u5982\u4f55\u4f7f\u7528 IO\u7684\u5c31\u6bd4\u8f83\u9ebb\u70e6\uff0c\u4f7f\u7528 iotop\u547d\u4ee4\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u67e5\u770b\u3002<\/p>\n

        <\/div>\n
        \"\"<\/div>\n
        \n
        iftop \u547d\u4ee4<\/strong><\/div>\n

        iftop \u662fLinux\u7cfb\u7edf\u7684\u6d41\u91cf\u548c\u5e26\u5bbd\u76d1\u63a7\u5de5\u5177\uff0c\u53ef\u7528\u4e8e\u67e5\u770b\u5b9e\u65f6\u7684\u7f51\u7edc\u6d41\u91cf\u3001\u76d1\u63a7TCP\/IP\u8fde\u63a5\u7b49\uff0c\u4e5f\u662f\u975e\u5e38\u6709\u7528\u7684\uff01<\/p>\n

        \u6211\u4eec\u6765\u505a\u4e00\u4e0b\u5b9e\u9a8c\uff0c\u547d\u4ee4\u6267\u884c\u540e\u6548\u679c\u5982\u4e0b\uff1a<\/p>\n

        \"\"<\/p>\n

        \"\"<\/div>\n

        iftop \u547d\u4ee4\u5e38\u7528\u7684\u53c2\u6570\u5982\u4e0b\uff0c\u8fd9\u91cc\u505a\u4e2a\u5c0f\u89c4\u6a21\u603b\u7ed3\uff1a<\/p>\n

          \n
        • -i \u8bbe\u5b9a\u76d1\u6d4b\u7684\u7f51\u5361\uff0c\u5982\uff1a # iftop -i eth1<\/li>\n
        • -B \u4ee5bytes\u4e3a\u5355\u4f4d\u663e\u793a\u6d41\u91cf (\u9ed8\u8ba4\u662fbits)\uff0c\u5982\uff1a # iftop -B<\/li>\n
        • -n \u4f7f host\u4fe1\u606f\u9ed8\u8ba4\u76f4\u63a5\u90fd\u663e\u793a IP\uff0c\u5982\uff1a # iftop -n<\/li>\n
        • -N \u4f7f\u7aef\u53e3\u4fe1\u606f\u9ed8\u8ba4\u76f4\u63a5\u90fd\u663e\u793a\u7aef\u53e3\u53f7\uff0c\u5982: # iftop -N<\/li>\n
        • -F \u663e\u793a\u7279\u5b9a\u7f51\u6bb5\u7684\u8fdb\u51fa\u6d41\u91cf\uff0c\u5982 # iftop -F 10.10.1.0\/24 \u6216 # iftop -F 10.10.1.0\/255.255.255.0<\/li>\n
        • -h\uff08display this message\uff09\uff0c\u5e2e\u52a9\uff0c\u663e\u793a\u53c2\u6570\u4fe1\u606f<\/li>\n
        • -p \u4f7f\u7528\u8fd9\u4e2a\u53c2\u6570\u540e\uff0c\u4e2d\u95f4\u7684\u5217\u8868\u663e\u793a\u7684\u672c\u5730\u4e3b\u673a\u4fe1\u606f\uff0c\u51fa\u73b0\u4e86\u672c\u673a\u4ee5\u5916\u7684IP\u4fe1\u606f;<\/li>\n
        • -b \u4f7f\u6d41\u91cf\u56fe\u5f62\u6761\u9ed8\u8ba4\u5c31\u663e\u793a;<\/li>\n<\/ul>\n

          \u518d\u6765\u603b\u7ed3\u4e00\u4e0b\uff0c\u8fdb\u5165 iftop \u89c6\u56fe\u753b\u9762\u540e\u7684\u4e00\u4e9b\u64cd\u4f5c\u547d\u4ee4 (\u6ce8\u610f\u5927\u5c0f\u5199)\uff1a<\/p>\n

            \n
          • \u6309 h\u5207\u6362\u662f\u5426\u663e\u793a\u5e2e\u52a9;<\/li>\n
          • \u6309 n\u5207\u6362\u663e\u793a\u672c\u673a\u7684IP\u6216\u4e3b\u673a\u540d;<\/li>\n
          • \u6309 s\u5207\u6362\u662f\u5426\u663e\u793a\u672c\u673a\u7684host\u4fe1\u606f;<\/li>\n
          • \u6309 d\u5207\u6362\u662f\u5426\u663e\u793a\u8fdc\u7aef\u76ee\u6807\u4e3b\u673a\u7684host\u4fe1\u606f;<\/li>\n
          • \u6309 t\u5207\u6362\u663e\u793a\u683c\u5f0f\u4e3a2\u884c\/1\u884c\/\u53ea\u663e\u793a\u53d1\u9001\u6d41\u91cf\/\u53ea\u663e\u793a\u63a5\u6536\u6d41\u91cf;<\/li>\n
          • \u6309 N\u5207\u6362\u663e\u793a\u7aef\u53e3\u53f7\u6216\u7aef\u53e3\u670d\u52a1\u540d\u79f0;<\/li>\n
          • \u6309 S\u5207\u6362\u662f\u5426\u663e\u793a\u672c\u673a\u7684\u7aef\u53e3\u4fe1\u606f;<\/li>\n
          • \u6309 D\u5207\u6362\u662f\u5426\u663e\u793a\u8fdc\u7aef\u76ee\u6807\u4e3b\u673a\u7684\u7aef\u53e3\u4fe1\u606f;<\/li>\n
          • \u6309 p\u5207\u6362\u662f\u5426\u663e\u793a\u7aef\u53e3\u4fe1\u606f;<\/li>\n
          • \u6309 P\u5207\u6362\u6682\u505c\/\u7ee7\u7eed\u663e\u793a;<\/li>\n
          • \u6309 b\u5207\u6362\u662f\u5426\u663e\u793a\u5e73\u5747\u6d41\u91cf\u56fe\u5f62\u6761;<\/li>\n
          • \u6309 T\u5207\u6362\u662f\u5426\u663e\u793a\u6bcf\u4e2a\u8fde\u63a5\u7684\u603b\u6d41\u91cf;<\/li>\n
          • \u6309 l\u6253\u5f00\u5c4f\u5e55\u8fc7\u6ee4\u529f\u80fd\uff0c\u8f93\u5165\u8981\u8fc7\u6ee4\u7684\u5b57\u7b26\uff0c\u6bd4\u5982ip,\u6309\u56de\u8f66\u540e\uff0c\u5c4f\u5e55\u5c31\u53ea\u663e\u793a\u8fd9\u4e2aIP\u76f8\u5173\u7684\u6d41\u91cf\u4fe1\u606f;<\/li>\n
          • \u6309 L\u5207\u6362\u663e\u793a\u753b\u9762\u4e0a\u8fb9\u7684\u523b\u5ea6;\u523b\u5ea6\u4e0d\u540c\uff0c\u6d41\u91cf\u56fe\u5f62\u6761\u4f1a\u6709\u53d8\u5316;<\/li>\n
          • \u6309 j\u6216\u6309 k\u53ef\u4ee5\u5411\u4e0a\u6216\u5411\u4e0b\u6eda\u52a8\u5c4f\u5e55\u663e\u793a\u7684\u8fde\u63a5\u8bb0\u5f55;<\/li>\n
          • \u6309 1\u6216 2\u6216 3\u53ef\u4ee5\u6839\u636e\u53f3\u4fa7\u663e\u793a\u7684\u4e09\u5217\u6d41\u91cf\u6570\u636e\u8fdb\u884c\u6392\u5e8f;<\/li>\n
          • \u6309 <\u6839\u636e\u5de6\u8fb9\u7684\u672c\u673a\u540d\u6216 IP\u6392\u5e8f;<\/li>\n
          • \u6309 >\u6839\u636e\u8fdc\u7aef\u76ee\u6807\u4e3b\u673a\u7684\u4e3b\u673a\u540d\u6216 IP\u6392\u5e8f;<\/li>\n
          • \u6309 o\u5207\u6362\u662f\u5426\u56fa\u5b9a\u53ea\u663e\u793a\u5f53\u524d\u7684\u8fde\u63a5;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"

            \u5bfc\u8bfb \u672c\u6587\u4e3b\u8981\u8bb0\u5f55\u4e00\u4e0b Linux\u7cfb\u7edf\u4e0a\u4e00\u4e9b\u5e38\u7528\u7684\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177\uff0c\u975e\u5e38\u597d\u7528\u3002\u6b63\u6240\u8c13\u78e8\u5200\u4e0d\u8bef\u780d\u67f4\u5de5\uff0c\u82b1\u70b9\u65f6\u95f4\u603b\u7ed3\u4e00 […]<\/p>\n","protected":false},"author":63,"featured_media":124596,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-124594","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/124594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=124594"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/124594\/revisions"}],"predecessor-version":[{"id":125190,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/124594\/revisions\/125190"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/124596"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=124594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=124594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=124594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}