{"id":215,"date":"2013-11-17T00:03:21","date_gmt":"2013-11-16T15:03:21","guid":{"rendered":"http:\/\/tech.akat.info\/?p=215"},"modified":"2015-01-01T16:19:56","modified_gmt":"2015-01-01T07:19:56","slug":"%e3%80%90linux%e3%80%91%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%87%e3%82%a3%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%82%bf","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=215","title":{"rendered":"\u3010Linux\u3011\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf"},"content":{"rendered":"<h1>\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u3068\u306f<\/h1>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3084\u6a19\u6e96\u5165\u51fa\u529b\u306a\u3069\u3092OS\u304c\u8b58\u5225\u3059\u308b\u305f\u3081\u306b\u7528\u3044\u308b\u8b58\u5225\u5b50<br \/>\n\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u306b\u306f\u3001\u8b58\u5225\u5b50\u3068\u3068\u3082\u306b\u30d5\u30a1\u30a4\u30eb\u540d\u3001\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u64cd\u4f5c\u4e2d\u306e\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u4f4d\u7f6e\u3001\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u3001\u66f4\u65b0\u65e5\u6642\u306a\u3069\u306e\u60c5\u5831\u304c\u542b\u307e\u308c\u3066\u304a\u308a\u3001OS\u306f\u8b58\u5225\u5b50\u306b\u3088\u3063\u3066\u3069\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u64cd\u4f5c\u3059\u308b\u304b\u3092\u5224\u65ad\u3059\u308b<\/p>\n<h2>OS\u5168\u4f53\u3067\u30aa\u30fc\u30d7\u30f3\u53ef\u80fd\u306a\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u6570<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nlv \/proc\/sys\/fs\/file-max\r\n98912\r\n<\/pre>\n<h2>1\u30d7\u30ed\u30bb\u30b9\u3067\u540c\u6642\u306b\u30aa\u30fc\u30d7\u30f3\u3067\u304d\u308b\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u6570<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nulimit -a | grep &quot;open files&quot;\r\nopen files                      (-n) 1024\r\n<\/pre>\n<h2>\u30d7\u30ed\u30bb\u30b9\u3067\u5229\u7528\u53ef\u80fd\u306a\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u6570(mysql\u306e\u5834\u5408)<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nlv \/proc\/`ps afx | grep &#x5B;m]ysqld | cut -f1 -d&quot; &quot;`\/limits | grep &quot;Max open files&quot;\r\nMax open files            1024                 4096                 files\r\n<\/pre>\n<h2>\u73fe\u5728\u5229\u7528\u4e2d\u306e\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u6570(mysql\u306e\u5834\u5408)<\/h2>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u3044\u308b\u30d7\u30ed\u30bb\u30b9\u60c5\u5831\u3092\u8868\u793a\u3059\u308b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# lsof -c mysql\r\nCOMMAND     PID  USER   FD   TYPE             DEVICE SIZE\/OFF   NODE NAME\r\nmysqld_sa 10387  root  cwd    DIR              202,0     4096      2 \/\r\nmysqld_sa 10387  root  rtd    DIR              202,0     4096      2 \/\r\nmysqld_sa 10387  root  txt    REG              202,0   975488 393357 \/bin\/bash\r\nmysqld_sa 10387  root  mem    REG              202,0  2508736   3458 \/usr\/lib\/locale\/locale-archive\r\nmysqld_sa 10387  root  mem    REG              202,0  1599504 393317 \/lib\/x86_64-linux-gnu\/libc-2.13.so\r\nmysqld_sa 10387  root  mem    REG              202,0    14768 393332 \/lib\/x86_64-linux-gnu\/libdl-2.13.so\r\nmysqld_sa 10387  root  mem    REG              202,0   167952 393401 \/lib\/x86_64-linux-gnu\/libtinfo.so.5.9\r\nmysqld_sa 10387  root  mem    REG              202,0   136936 393795 \/lib\/x86_64-linux-gnu\/ld-2.13.so\r\nmysqld_sa 10387  root  mem    REG              202,0    26066   2250 \/usr\/lib\/x86_64-linux-gnu\/gconv\/gconv-modules.cache\r\nmysqld_sa 10387  root    0r   CHR                1,3      0t0   1204 \/dev\/null\r\nmysqld_sa 10387  root    1w   CHR                1,3      0t0   1204 \/dev\/null\r\nmysqld_sa 10387  root    2w   CHR                1,3      0t0   1204 \/dev\/null\r\nmysqld_sa 10387  root  255r   REG              202,0    27565  14188 \/usr\/bin\/mysqld_safe\r\nmysqld    11028 mysql  cwd    DIR              202,0     4096 134897 \/var\/lib\/mysql\r\nmysqld    11028 mysql  rtd    DIR              202,0     4096      2 \/\r\nmysqld    11028 mysql  txt    REG              202,0 14512336  14185 \/usr\/sbin\/mysqld\r\nmysqld    11028 mysql  mem    REG              202,0    47616 393334 \/lib\/x86_64-linux-gnu\/libnss_files-2.13.so\r\nmysqld    11028 mysql  mem    REG              202,0    43552 393330 \/lib\/x86_64-linux-gnu\/libnss_nis-2.13.so\r\nmysqld    11028 mysql  mem    REG              202,0    89056 393328 \/lib\/x86_64-linux-gnu\/libnsl-2.13.so\r\n(\u7565)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u3068\u306f \u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3084\u6a19\u6e96\u5165\u51fa\u529b\u306a\u3069\u3092OS\u304c\u8b58\u5225\u3059\u308b\u305f\u3081\u306b\u7528\u3044\u308b\u8b58\u5225\u5b50 \u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u306b\u306f\u3001\u8b58\u5225\u5b50\u3068\u3068\u3082\u306b\u30d5\u30a1\u30a4\u30eb\u540d\u3001\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u64cd\u4f5c\u4e2d\u306e\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u4f4d\u7f6e\u3001 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/215"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=215"}],"version-history":[{"count":7,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/215\/revisions"}],"predecessor-version":[{"id":1396,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/215\/revisions\/1396"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}