{"id":3104,"date":"2015-04-10T10:00:29","date_gmt":"2015-04-10T01:00:29","guid":{"rendered":"http:\/\/www.skyarch.net\/blog\/?p=3104"},"modified":"2015-04-09T21:23:05","modified_gmt":"2015-04-09T12:23:05","slug":"lamp-%e7%92%b0%e5%a2%83%e3%83%81%e3%83%a5%e3%83%bc%e3%83%8b%e3%83%b3%e3%82%b0%e3%81%ab%e4%be%bf%e5%88%a9%e3%81%aa%e3%83%84%e3%83%bc%e3%83%ab-1","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/lamp-%e7%92%b0%e5%a2%83%e3%83%81%e3%83%a5%e3%83%bc%e3%83%8b%e3%83%b3%e3%82%b0%e3%81%ab%e4%be%bf%e5%88%a9%e3%81%aa%e3%83%84%e3%83%bc%e3%83%ab-1\/","title":{"rendered":"LAMP \u74b0\u5883\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306b\u4fbf\u5229\u306a\u30c4\u30fc\u30eb &#8211; 1"},"content":{"rendered":"<p>LAMP \u74b0\u5883\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306b\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u3092\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\uff01<\/p>\n<p>\u307e\u305a\u306f\u3001Apache \u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306b\u5f79\u7acb\u3064\u3001<span style=\"color: #ff0000;\"><strong>apachetop<\/strong><\/span> \u306b\u3064\u3044\u3066\u3067\u3059\u3002<\/p>\n<p>apache \u306e\u51e6\u7406\u3092 top \u30b3\u30de\u30f3\u30c9\u306e\u3088\u3046\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u8868\u793a\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u7c21\u5358\u00a0( ^\u03c9^)b<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\r\n$ yum install apachetop\r\n\r\n<\/pre>\n<p>\u65e9\u901f\u4f7f\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\r\n$\u00a0apachetop -f \/var\/log\/httpd\/access_log\r\n\r\nlast hit: 03:00:55 atop runtime: 0 days, 00:00:05 03:01:00\r\nAll: 13 reqs ( 2.6\/sec) 186.6K ( 37.3K\/sec) 14.4K\/req\r\n2xx: 13 ( 100%) 3xx: 0 ( 0.0%) 4xx: 0 ( 0.0%) 5xx: 0 ( 0.0%)\r\nR ( 5s): 13 reqs ( 2.6\/sec) 186.6K ( 37.3K\/sec) 14.4K\/req\r\n2xx: 13 ( 100%) 3xx: 0 ( 0.0%) 4xx: 0 ( 0.0%) 5xx: 0 ( 0.0%)\r\n\r\nREQS REQ\/S KB KB\/S URL\r\n5 0.29 217.4 12.8*\/\r\n5 0.36 1.0 0.1 \/services\/menu.js\r\n4 0.31 0.8 0.1 \/services\/footer.js\r\n4 0.31 0.1 0.0 \/images\/skip\/icons\/.png\r\n3 0.23 69.8 5.4 \/rss.xml\r\n3 0.25 2.2 0.2 \/mypage\/ado_antennas\/\r\n3 0.25 2.6 0.2 \/mypage\/load_rss_feed\r\n1 0.14 0.0 0.0 \/javascripts\/skip\/effects.js\r\n1 0.14 8.6 1.2 \/feed\/recent_blogs\/\r\n1 0.14 0.0 0.0 \/javascripts\/skip\/controls.js\r\n1 0.14 0.0 0.0 \/javascripts\/skip\/slider.js\r\n1 0.17 0.0 0.0 \/images\/arrow.jpg\r\n1 0.17 0.7 0.1 \/favicon.ico\r\n\r\n<\/pre>\n<p>\u304a\uff5e\uff01\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\uff01\u3082\u3046\u5c11\u3057\u6642\u9593\u6307\u5b9a\u3057\u3066\u307f\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\"T\" \u30aa\u30d7\u30b7\u30e7\u30f3<\/h3>\n<ul>\n<li>\u76f4\u8fd1\u3067\u6307\u5b9a\u3055\u308c\u305f\u79d2\u6570\u3067\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5bfe\u8c61\u306b\u8868\u793a<\/li>\n<\/ul>\n<h3>\"d\" \u30aa\u30d7\u30b7\u30e7\u30f3<\/h3>\n<ul>\n<li>\u753b\u9762\u8868\u793a\u306e\u66f4\u65b0\u5468\u671f<\/li>\n<\/ul>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\r\n$ apachetop -T 10 -d 10 -f \/var\/log\/httpd\/access_log\r\n\r\nlast hit: 03:25:57 atop runtime: 0 days, 00:00:10 03:25:58\r\nAll: 87 reqs ( 12.4\/sec) 1532.9K ( 219.0K\/sec) 17.6K\/req\r\n2xx: 87 ( 100%) 3xx: 0 ( 0.0%) 4xx: 0 ( 0.0%) 5xx: 0 ( 0.0%)\r\nR ( 10s): 87 reqs ( 8.7\/sec) 1532.9K ( 153.3K\/sec) 17.6K\/req\r\n2xx: 87 ( 100%) 3xx: 0 ( 0.0%) 4xx: 0 ( 0.0%) 5xx: 0 ( 0.0%)\r\n<\/pre>\n<p>\u3075\u3080\u3075\u3080\u300210 \u79d2\u9593\u306b 87 \u30ea\u30af\u30a8\u30b9\u30c8\u51e6\u7406\u3057\u3066\u3044\u308b\u4e8b\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u7d71\u8a08\u3092\u53d6\u3063\u3066\u3044\u3051\u3070\u5e73\u5747\u7684\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u304c\u308f\u304b\u308a\u307e\u3059\u306d\uff01\u30a2\u30af\u30bb\u30b9\u983b\u5ea6\u306b\u3082\u504f\u308a\u304c\u3042\u308b\u306e\u3067\u9069\u6b63\u306a\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u306e\u306f\u96e3\u3057\u3044\u3067\u3059\u304c\u3001MaxRequestsPerChild \u306e\u8a2d\u5b9a\u7b49\u306b\u5f79\u7acb\u3061\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4ed6\u306b\u3082\u3044\u308d\u3044\u308d\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002\u4e0b\u8a18\u306f\u5b9f\u884c\u4e2d\u306b\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<h3>\"d\" \u30b3\u30de\u30f3\u30c9<\/h3>\n<ul>\n<li>URL\u3001\u30ea\u30d5\u30a1\u30e9\u3001\u30a2\u30af\u30bb\u30b9\u5143\u306e\u8868\u793a\u5207\u66ff\u3048<\/li>\n<\/ul>\n<h3>\"n\" \u30b3\u30de\u30f3\u30c9<\/h3>\n<ul>\n<li>HTTP \u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u306e\u8868\u793a<\/li>\n<\/ul>\n<h3>\"p\" \u30b3\u30de\u30f3\u30c9<\/h3>\n<ul>\n<li>Pause\u3001\u305d\u306e\u6642\u70b9\u306e\u3082\u306e\u3067\u56fa\u5b9a\u8868\u793a<\/li>\n<\/ul>\n<h3>\"s\" \u30b3\u30de\u30f3\u30c9<\/h3>\n<ul>\n<li>\u8868\u793a\u5185\u5bb9\u3092\u5404\u9805\u76ee\u3067\u30bd\u30fc\u30c8\u3057\u3066\u8868\u793a<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Apache \u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306f\u96e3\u3057\u3044\u3067\u3059\u3002\u30d5\u30a9\u30fc\u30af\u3055\u305b\u306a\u3051\u308c\u3070\u30e1\u30e2\u30ea\u304c\u30fb\u30fb\u30fb\u30fb\u3002\u30d5\u30a9\u30fc\u30af\u3059\u308c\u3070 CPU \u304c\u30fb\u30fb\u30fb\u30fb\u3002\u69d8\u3005\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u3042\u308b\u306e\u3067\u3001\u74b0\u5883\u306b\u3042\u3063\u305f\u8a2d\u5b9a\u304c\u5927\u5207\u3068\u611f\u3058\u308b\u4eca\u65e5\u3053\u306e\u3054\u308d\u3067\u3059\u304c\u3001\u79c1\u306f\u30d5\u30a9\u30fc\u30af\u3055\u305b\u306a\u3044\u8a2d\u5b9a\u304c\u597d\u304d\u3067\u3059(\u7b11)<\/p>\n<p>&nbsp;<\/p>\n<p>\u3068\u306f\u3044\u3063\u3066\u3082\u3001\u3069\u3053\u307e\u3067\u30e1\u30e2\u30ea\u63b4\u3080\u306e\u3063\u3066\u304f\u3089\u3044\u30e1\u30e2\u30ea\u3092\u6d88\u8cbb\u3059\u308b\u74b0\u5883\u3082\u3042\u308a\u307e\u3059\u3088\u306d\u3002\u8d77\u52d5\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u6570\u3082\u5927\u4e8b\u3067\u3059\u304c\u3001CPU \u306b\u4f59\u88d5\u304c\u3042\u308b\u74b0\u5883\u3067\u3057\u305f\u3089\u3001\u30d7\u30ed\u30bb\u30b9\u3092\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u3055\u305b\u307e\u304f\u3063\u3066\u3001\u30e1\u30e2\u30ea\u89e3\u653e\u3092\u6d3b\u767a\u306b\u3057\u3066\u3042\u3052\u308b\u4e8b\u3082\u5927\u5207\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u305d\u308d\u305d\u308d\u00a0lighttpd \u306e\u691c\u8a3c\u3082\u59cb\u3081\u306a\u3044\u3068\u30c0\u30e1\u3067\u3059\u304b\u306d\u3002\u6b21\u56de\u306f MySQL \u306b\u3064\u3044\u3066\u30c4\u30fc\u30eb\u3092\u63a2\u3057\u3066\u307f\u307e\u3059\u00a0( ^\u03c9^)b<\/p>\n<pre><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>LAMP \u74b0\u5883\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306b\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u3092\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\uff01 \u307e\u305a\u306f\u3001Apache \u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306b\u5f79\u7acb\u3064\u3001apachetop \u306b\u3064\u3044\u3066\u3067\u3059\u3002 apache \u306e\u51e6\u7406\u3092 top \u30b3\u30de\u30f3\u30c9\u306e\u3088\u3046\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u8868\u793a\u3057\u3066\u304f\u308c\u307e&#8230;<\/p>\n","protected":false},"author":16,"featured_media":2466,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"3104","footnotes":""},"categories":[29],"tags":[],"class_list":{"0":"post-3104","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-linux","8":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/3104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=3104"}],"version-history":[{"count":40,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/3104\/revisions"}],"predecessor-version":[{"id":3291,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/3104\/revisions\/3291"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/2466"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=3104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=3104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=3104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}