{"id":42393,"date":"2025-06-22T19:26:12","date_gmt":"2025-06-22T10:26:12","guid":{"rendered":"https:\/\/jouhou.main.jp\/?p=42393"},"modified":"2026-04-03T17:02:42","modified_gmt":"2026-04-03T08:02:42","slug":"linux-enfile-23-%e8%a8%ba%e6%96%ad%ef%bc%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e6%ba%a2%e3%82%8c%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ae%e6%a4%9c%e5%87%ba%e3%81%a8","status":"publish","type":"post","link":"https:\/\/jouhou.main.jp\/?p=42393","title":{"rendered":"Linux ENFILE (23) \u8a3a\u65ad\uff1a\u30d5\u30a1\u30a4\u30eb\u30c6\u30fc\u30d6\u30eb\u6ea2\u308c\u30a8\u30e9\u30fc\u306e\u691c\u51fa\u3068\u518d\u5272\u5f53\u7de8"},"content":{"rendered":"<section style=\"max-width:100%; box-sizing:border-box; overflow:visible; border:1px solid #e5e7eb; border-radius:3px; padding:16px; background:#ffffff;\">\n<div style=\"max-width:100%; box-sizing:border-box; overflow:visible; margin:0 0 14px 0;\">\n<div style=\"overflow-wrap:anywhere; max-width:100%; display:inline-block; font-size:16px; letter-spacing:0.06em; color:#ffffff; background:#000000; border:1px solid #e5e7eb; border-radius:3px; padding:2px 8px; box-sizing:border-box;\">\u6700\u77ed\u30c1\u30a7\u30c3\u30af<\/div>\n<h2 style=\"margin:10px 0 8px 0; font-size:24px; line-height:1.5; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">Linux ENFILE (23) \u3092\u3001\u6b62\u3081\u305a\u306b\u898b\u6975\u3081\u308b\u305f\u3081\u306e\u78ba\u8a8d\u30dd\u30a4\u30f3\u30c8<\/h2>\n<p style=\"margin:0; font-size:14px; line-height:1.8; color:#374151; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u300c\u3044\u304d\u306a\u308a\u4e0a\u9650\u3092\u4e0a\u3052\u308b\u300d\u3067\u306f\u306a\u304f\u3001\u307e\u305a\u4e89\u70b9\u3092\u7d5e\u3063\u3066\u3001\u6700\u5c0f\u5909\u66f4\u3067\u5f71\u97ff\u7bc4\u56f2\u3092\u898b\u306a\u304c\u3089\u5224\u65ad\u3057\u305f\u3044\u5834\u9762\u5411\u3051\u306e\u8981\u70b9\u3067\u3059\u3002<\/p>\n<\/p><\/div>\n<div style=\"max-width:100%; box-sizing:border-box; overflow:visible; margin:0 0 14px 0; border:1px solid #e5e7eb; border-radius:3px; padding:14px; background:#fafafa;\">\n<div style=\"margin:0 0 8px 0; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\"> <span style=\"display:inline-block; min-width:22px; text-align:center; color:#ffffff; background:#dc2626; border-radius:3px; padding:2px 8px; box-sizing:border-box; font-weight:700;\">1<\/span> <strong style=\"margin-left:8px; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">30\u79d2\u3067\u4e89\u70b9\u3092\u7d5e\u308b<\/strong> <\/div>\n<p style=\"margin:0; font-size:14px; line-height:1.8; color:#374151; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u30a8\u30e9\u30fc\u304c ENFILE \u306a\u3089\u3001\u7591\u3046\u3079\u304d\u306f\u30d7\u30ed\u30bb\u30b9\u5358\u4f4d\u3067\u306f\u306a\u304f\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u30d5\u30a1\u30a4\u30eb\u30c6\u30fc\u30d6\u30eb\u3067\u3059\u3002\u307e\u305a\u306f\u300c\u8ab0\u304c\u60aa\u3044\u304b\u300d\u3088\u308a\u300c\u3069\u3053\u304c\u8a70\u307e\u3063\u3066\u3044\u308b\u304b\u300d\u3092\u5207\u308a\u5206\u3051\u308b\u3068\u3001\u8aac\u660e\u3082\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/p><\/div>\n<div style=\"max-width:100%; box-sizing:border-box; overflow:visible; margin:0 0 14px 0; border:1px solid #e5e7eb; border-radius:3px; padding:14px; background:#f9fafb;\">\n<div style=\"margin:0 0 8px 0; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\"> <span style=\"display:inline-block; min-width:22px; text-align:center; color:#ffffff; background:#16a34a; border-radius:3px; padding:2px 8px; box-sizing:border-box; font-weight:700;\">2<\/span> <strong style=\"margin-left:8px; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u4e89\u70b9\u5225\uff1a\u4eca\u5f8c\u306e\u9078\u629e\u3084\u884c\u52d5<\/strong> <\/div>\n<p style=\"margin:0 0 12px 0; font-size:14px; line-height:1.8; color:#374151; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u540c\u3058\u300c\u958b\u3051\u306a\u3044\u300d\u3067\u3082\u3001\u539f\u56e0\u3054\u3068\u306b\u9078\u3076\u3079\u304d\u884c\u52d5\u306f\u5909\u308f\u308a\u307e\u3059\u3002\u5909\u66f4\u524d\u63d0\u3067\u306f\u306a\u304f\u3001\u73fe\u5834\u3067\u53ce\u675f\u3057\u3084\u3059\u3044\u9806\u306b\u898b\u3066\u3044\u304f\u6574\u7406\u3067\u3059\u3002<\/p>\n<div style=\"max-width:100%; box-sizing:border-box; overflow:visible; margin:0 0 10px 0; border:1px solid #d1d5db; border-radius:3px; padding:10px; background:#ffffff;\">\n<p style=\"margin:0 0 6px 0; font-size:14px; font-weight:700; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u30b1\u30fc\u30b9\uff1aEMFILE \u3067\u306f\u306a\u304f ENFILE \u304c\u51fa\u3066\u3044\u308b<\/p>\n<pre style=\"margin:0; padding:10px; background:#111827; color:#ffffff; border-radius:3px; white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; max-width:100%; box-sizing:border-box;\">\u9078\u629e\u3068\u884c\u52d5:\n\u5358\u4e00\u30d7\u30ed\u30bb\u30b9\u306e ulimit \u5909\u66f4\u3067\u306f\u306a\u304f\u3001fs.file-max \u3068\u5168\u4f53\u306e FD \u6d88\u8cbb\u72b6\u6cc1\u3092\u78ba\u8a8d\n\n\u76f4\u8fd1\u306e\u30c7\u30d7\u30ed\u30a4\u3001\u63a5\u7d9a\u5897\u3001\u30ed\u30b0\u51fa\u529b\u5148\u5909\u66f4\u306e\u6709\u7121\u3092\u4e26\u3079\u3066\u898b\u308b\n\n\u307e\u305a\u306f\u6700\u5c0f\u5909\u66f4\u3067\u8a3a\u65ad\u3057\u3001\u6052\u4e45\u5bfe\u5fdc\u306f\u672c\u6587\u3067\u6574\u7406<\/pre>\n<\/div>\n<div style=\"max-width:100%; box-sizing:border-box; overflow:visible; margin:0 0 10px 0; border:1px solid #d1d5db; border-radius:3px; padding:10px; background:#ffffff;\">\n<p style=\"margin:0 0 6px 0; font-size:14px; font-weight:700; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u30b1\u30fc\u30b9\uff1afile-max \u306f\u9ad8\u3044\u306e\u306b\u67af\u6e07\u611f\u304c\u3042\u308b<\/p>\n<pre style=\"margin:0; padding:10px; background:#000000; color:#ffffff; border-radius:3px; white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; max-width:100%; box-sizing:border-box;\">\u9078\u629e\u3068\u884c\u52d5:\n\u30ea\u30fc\u30af\u3001\u30bd\u30b1\u30c3\u30c8\u6ede\u7559\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u5468\u8fba\u306e FD \u4fdd\u6301\u3092\u7591\u3046\n\n\u30b3\u30f3\u30c6\u30ca\u5358\u4f4d\u306e\u898b\u3048\u65b9\u3068\u30db\u30b9\u30c8\u5168\u4f53\u306e\u898b\u3048\u65b9\u3092\u5206\u3051\u3066\u78ba\u8a8d\n\n\u6570\u5024\u3092\u5897\u3084\u3059\u524d\u306b\u3001\u3069\u3053\u304c\u7a4d\u307f\u4e0a\u304c\u3063\u3066\u3044\u308b\u304b\u3092\u53ef\u8996\u5316<\/pre>\n<\/div>\n<div style=\"max-width:100%; box-sizing:border-box; overflow:visible; border:1px solid #d1d5db; border-radius:3px; padding:10px; background:#ffffff;\">\n<p style=\"margin:0 0 6px 0; font-size:14px; font-weight:700; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u30b1\u30fc\u30b9\uff1a\u672c\u756a\u3067\u5909\u66f4\u306f\u6016\u3044\u304c\u5fa9\u65e7\u3092\u6025\u304e\u305f\u3044<\/p>\n<pre style=\"margin:0; padding:10px; background:#111827; color:#ffffff; border-radius:3px; white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; max-width:100%; box-sizing:border-box;\">\u9078\u629e\u3068\u884c\u52d5:\n\u4e00\u6642\u3057\u306e\u304e\u3068\u6052\u4e45\u5bfe\u7b56\u3092\u5206\u3051\u3066\u8aac\u660e\n\n\u5f71\u97ff\u7bc4\u56f2\u304c\u8aad\u3081\u308b\u5909\u66f4\u304b\u3089\u7740\u624b\n\n\u8ff7\u3063\u305f\u3089\u6a29\u9650\u5909\u66f4\u3084\u7121\u7406\u306a\u518d\u8d77\u52d5\u3088\u308a\u5148\u306b\u76f8\u8ac7<\/pre>\n<\/div><\/div>\n<div style=\"max-width:100%; box-sizing:border-box; overflow:visible; margin:0 0 14px 0; border:1px solid #e5e7eb; border-radius:3px; padding:14px; background:#fafafa;\">\n<div style=\"margin:0 0 8px 0; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\"> <span style=\"display:inline-block; min-width:22px; text-align:center; color:#ffffff; background:#2563eb; border-radius:3px; padding:2px 8px; box-sizing:border-box; font-weight:700;\">3<\/span> <strong style=\"margin-left:8px; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u5f71\u97ff\u7bc4\u56f2\u30921\u5206\u3067\u78ba\u8a8d<\/strong> <\/div>\n<p style=\"margin:0; font-size:14px; line-height:1.8; color:#374151; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u78ba\u8a8d\u3057\u305f\u3044\u306e\u306f\u3001\u30a2\u30d7\u30ea\u3060\u3051\u3067\u306a\u304f\u30ed\u30b0\u3001\u76e3\u8996\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u30b3\u30f3\u30c6\u30ca\u57fa\u76e4\u307e\u3067\u542b\u3081\u305f\u5168\u4f53\u50cf\u3067\u3059\u3002\u518d\u5272\u5f53\u3084\u4e0a\u9650\u5909\u66f4\u306f\u3001\u5468\u8fba\u306e\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u3092\u898b\u843d\u3068\u3059\u3068\u518d\u767a\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/p><\/div>\n<div style=\"max-width:100%; box-sizing:border-box; overflow:visible; margin:0 0 14px 0; border:1px solid #fdba74; border-radius:3px; padding:14px; background:#fff7ed;\">\n<h3 style=\"margin:0 0 10px 0; font-size:18px; line-height:1.6; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u5931\u6557\u3059\u308b\u3068\u3069\u3046\u306a\u308b\uff1f\uff08\u3084\u308a\u304c\u3061\u306a\u30df\u30b9\u3068\u8d77\u3053\u308a\u5f97\u308b\u7d50\u679c\uff09<\/h3>\n<ul style=\"margin:0; padding-left:20px; color:#7c2d12; box-sizing:border-box; max-width:100%;\">\n<li style=\"margin:0 0 8px 0; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">ENFILE \u306a\u306e\u306b\u30d7\u30ed\u30bb\u30b9\u5358\u4f4d\u306e\u8a2d\u5b9a\u3060\u3051\u89e6\u3063\u3066\u3001\u539f\u56e0\u304c\u6b8b\u3063\u305f\u307e\u307e\u518d\u767a\u3059\u308b<\/li>\n<li style=\"margin:0 0 8px 0; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u672c\u756a\u3067\u4e00\u6c17\u306b\u4e0a\u9650\u3092\u5e83\u3052\u3066\u3001\u5225\u306e\u30ea\u30bd\u30fc\u30b9\u903c\u8feb\u3084\u76e3\u8996\u30ce\u30a4\u30ba\u3092\u62db\u304f<\/li>\n<li style=\"margin:0 0 8px 0; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u30b3\u30f3\u30c6\u30ca\u5185\u3060\u3051\u898b\u3066\u5b89\u5fc3\u3057\u3001\u30db\u30b9\u30c8\u5074\u306e\u67af\u6e07\u3084\u5171\u6709\u57fa\u76e4\u306e\u5f71\u97ff\u3092\u898b\u843d\u3068\u3059<\/li>\n<li style=\"margin:0; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u8aac\u660e\u6750\u6599\u304c\u4e0d\u8db3\u3057\u3066\u3001\u5f79\u54e1\u3084\u4e0a\u53f8\u3078\u306e\u5831\u544a\u304c\u300c\u3068\u308a\u3042\u3048\u305a\u5897\u3084\u3057\u307e\u3057\u305f\u300d\u3067\u6b62\u307e\u3063\u3066\u3057\u307e\u3046<\/li>\n<\/ul><\/div>\n<div style=\"max-width:100%; box-sizing:border-box; overflow:visible; border:1px solid #bfdbfe; border-radius:3px; padding:14px; background:#eff6ff;\">\n<h3 style=\"margin:0 0 10px 0; font-size:20px; line-height:1.6; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u8ff7\u3063\u305f\u3089\uff1a\u7121\u6599\u3067\u76f8\u8ac7\u3067\u304d\u307e\u3059<\/h3>\n<p style=\"margin:0 0 10px 0; font-size:13px; line-height:1.8; color:#374151; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">ENFILE \u304b EMFILE \u304b\u306e\u5207\u308a\u5206\u3051\u3067\u8ff7\u3063\u305f\u3089\u3002<\/p>\n<p style=\"margin:0 0 10px 0; font-size:13px; line-height:1.8; color:#374151; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">file-max \u3092\u89e6\u308b\u524d\u306e\u8a3a\u65ad\u304c\u3067\u304d\u306a\u3044\u3002<\/p>\n<p style=\"margin:0 0 10px 0; font-size:13px; line-height:1.8; color:#374151; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u6700\u5c0f\u5909\u66f4\u3067\u5fa9\u65e7\u3057\u305f\u3044\u304c\u5f71\u97ff\u7bc4\u56f2\u304c\u8aad\u3081\u306a\u3044\u3002<\/p>\n<p style=\"margin:0 0 10px 0; font-size:13px; line-height:1.8; color:#374151; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u30b3\u30f3\u30c6\u30ca\u3001\u672c\u756a\u30c7\u30fc\u30bf\u3001\u76e3\u67fb\u8981\u4ef6\u304c\u7d61\u3080\u5834\u5408\u306f\u3001\u7121\u7406\u306b\u6a29\u9650\u3092\u89e6\u308b\u524d\u306b\u76f8\u8ac7\u3059\u308b\u3068\u65e9\u304f\u53ce\u675f\u3057\u3084\u3059\u3044\u3067\u3059\u3002<\/p>\n<p style=\"margin:0 0 10px 0; font-size:13px; line-height:1.8; color:#374151; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u518d\u767a\u9632\u6b62\u307e\u3067\u542b\u3081\u305f\u8aac\u660e\u8cc7\u6599\u306e\u6574\u7406\u3067\u8ff7\u3063\u305f\u3089\u3002<\/p>\n<p style=\"margin:0 0 14px 0; font-size:14px; line-height:1.8; color:#1f2937; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\"><strong>\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240<\/strong>\u3078\u7121\u6599\u76f8\u8ac7<\/p>\n<div style=\"max-width:100%; box-sizing:border-box; overflow:visible; display:flex; flex-wrap:wrap; gap:10px; margin:0 0 14px 0;\"> <a href=\"https:\/\/jouhou.main.jp\/?page_id=26983\" style=\"display:inline-block; text-decoration:none; background:#2563eb; color:#ffffff; border-radius:3px; padding:10px 14px; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u7121\u6599\u76f8\u8ac7\u30d5\u30a9\u30fc\u30e0<\/a> <a href=\"tel:0120838831\" style=\"display:inline-block; text-decoration:none; background:#1e3a8a; color:#ffffff; border-radius:3px; padding:10px 14px; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u96fb\u8a71\u3067\u76f8\u8ac7\uff080120-838-831\uff09<\/a> <a href=\"tel:0434224240\" style=\"display:inline-block; text-decoration:none; background:#0b1f4b; color:#ffffff; border-radius:3px; padding:10px 14px; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u6280\u8853\u8005\u76f4\u901a\uff08043-422-4240\uff09<\/a> <\/div>\n<p style=\"margin:0; font-size:21px; line-height:1.6; color:#111827; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u8a73\u3057\u3044\u8aac\u660e\u3068\u5bfe\u7b56\u306f\u4ee5\u4e0b\u672c\u6587\u3078\u3002<\/p>\n<\/p><\/div>\n<\/section>\n<div style=\"margin:0; padding:30pt; background-color:#EEEEEE;\">\n<p style=\"margin:0 0 8px 0; font-size:1.2em;\"><strong>\u3082\u304f\u3058<\/strong><\/p>\n<ul style=\"list-style-type:none; padding-left:0; margin:0;\">\n<li style=\"margin:40px 0;\"><a href=\"#sec01\">\u7b2c1\u7ae0\uff1a\u305d\u306e\u300c\u958b\u3051\u306a\u3044\u300d\u306f\u5076\u7136\u3067\u306f\u306a\u3044\u2015\u2015ENFILE (23) \u304c\u793a\u3059\u672c\u5f53\u306e\u8a70\u307e\u308a\u65b9<\/a><\/li>\n<li style=\"margin:40px 0;\"><a href=\"#sec02\">\u7b2c2\u7ae0\uff1aEMFILE \u3068\u4f55\u304c\u9055\u3046\u306e\u304b\u2015\u2015\u500b\u5225\u30d7\u30ed\u30bb\u30b9\u306e\u4e0a\u9650\u304b\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u67af\u6e07\u304b<\/a><\/li>\n<li style=\"margin:40px 0;\"><a href=\"#sec03\">\u7b2c3\u7ae0\uff1a\u307e\u305a30\u79d2\u3067\u4e89\u70b9\u3092\u7d5e\u308b\u2015\u2015\u30ab\u30fc\u30cd\u30eb\u5074\u306e file-max \u3068\u73fe\u5834\u306e\u75c7\u72b6\u3092\u5207\u308a\u5206\u3051\u308b<\/a><\/li>\n<li style=\"margin:40px 0;\"><a href=\"#sec04\">\u7b2c4\u7ae0\uff1a\u6700\u5c0f\u5909\u66f4\u3067\u518d\u5272\u5f53\u3092\u8003\u3048\u308b\u2015\u2015\u5897\u3084\u3059\u524d\u306b\u898b\u308b\u3079\u304d FD \u6d88\u8cbb\u6e90\u3068\u5f71\u97ff\u7bc4\u56f2<\/a><\/li>\n<li style=\"margin:40px 0;\"><a href=\"#sec05\">\u7b2c5\u7ae0\uff1a\u672c\u756a\u3067\u5d29\u3055\u306a\u3044\u9032\u3081\u65b9\u2015\u2015\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3084\u30b3\u30f3\u30c6\u30ca\u74b0\u5883\u3092\u542b\u3081\u305f\u78ba\u8a8d\u9806\u5e8f<\/a><\/li>\n<li style=\"margin:40px 0;\"><a href=\"#sec06\">\u7b2c6\u7ae0\uff1a\u8a3a\u65ad\u3067\u304d\u308c\u3070\u8aac\u660e\u3067\u304d\u308b\u2015\u2015\u518d\u767a\u9632\u6b62\u307e\u3067\u898b\u636e\u3048\u305f\u904b\u7528\u8a2d\u8a08\u3068\u76f8\u8ac7\u306e\u9032\u3081\u65b9<\/a><\/li>\n<\/ul><\/div>\n<p>\u3010\u6ce8\u610f\u3011ENFILE (23) \u304c\u51fa\u3066\u3044\u308b\u72b6\u614b\u3067\u3001\u672c\u756a\u74b0\u5883\u306e\u8a2d\u5b9a\u5909\u66f4\u3001\u518d\u8d77\u52d5\u3001\u6a29\u9650\u5909\u66f4\u3001\u624b\u52d5\u306e\u5fa9\u65e7\u4f5c\u696d\u3092\u6025\u3044\u3067\u9032\u3081\u308b\u3068\u3001\u5f71\u97ff\u7bc4\u56f2\u306e\u898b\u8aa4\u308a\u3084\u518d\u767a\u306b\u3064\u306a\u304c\u308b\u304a\u305d\u308c\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u306f\u5b89\u5168\u306a\u521d\u52d5\u306b\u7d5e\u3063\u3066\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u3001\u500b\u5225\u6848\u4ef6\u3067\u306f<strong>\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240<\/strong>\u306e\u3088\u3046\u306a\u5c02\u9580\u4e8b\u696d\u8005\u306b\u76f8\u8ac7\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3000<\/p>\n<p> <a id=\"sec01\"><\/a> <\/p>\n<h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u7b2c1\u7ae0\uff1a\u305d\u306e\u300c\u958b\u3051\u306a\u3044\u300d\u306f\u5076\u7136\u3067\u306f\u306a\u3044\u2015\u2015ENFILE (23) \u304c\u793a\u3059\u672c\u5f53\u306e\u8a70\u307e\u308a\u65b9<\/h2>\n<p>Linux \u3067 ENFILE (23) \u304c\u51fa\u305f\u3068\u304d\u3001\u73fe\u5834\u3067\u306f\u300c\u30d5\u30a1\u30a4\u30eb\u304c\u958b\u3051\u306a\u3044\u300d\u300c\u30bd\u30b1\u30c3\u30c8\u63a5\u7d9a\u306b\u5931\u6557\u3059\u308b\u300d\u300c\u30ed\u30b0\u51fa\u529b\u304c\u6025\u306b\u4e0d\u5b89\u5b9a\u306b\u306a\u3063\u305f\u300d\u3068\u3044\u3063\u305f\u75c7\u72b6\u3068\u3057\u3066\u898b\u3048\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057 ENFILE \u306f\u3001\u5358\u306b\u3042\u308b 1 \u30d7\u30ed\u30bb\u30b9\u306e\u4e0a\u9650\u306b\u9054\u3057\u305f\u3068\u3044\u3046\u610f\u5473\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002open(2) \u306e\u30de\u30cb\u30e5\u30a2\u30eb\u3067\u306f\u3001ENFILE \u306f\u300c\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u3067\u958b\u3051\u308b\u30d5\u30a1\u30a4\u30eb\u6570\u306e\u4e0a\u9650\u306b\u9054\u3057\u305f\u72b6\u614b\u300d\u3068\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u3042\u308b\u30a2\u30d7\u30ea\u306e\u4e0d\u8abf\u306b\u898b\u3048\u3066\u3082\u3001\u5b9f\u969b\u306b\u306f\u30db\u30b9\u30c8\u5168\u4f53\u3001\u3042\u308b\u3044\u306f\u540c\u4e00\u57fa\u76e4\u4e0a\u306e\u5225\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3082\u542b\u3081\u305f\u5168\u4f53\u306e\u8cc7\u6e90\u903c\u8feb\u3067\u3042\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u3092\u8aad\u307f\u9055\u3048\u308b\u3068\u3001\u5bfe\u51e6\u306e\u65b9\u5411\u304c\u305a\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c6\u30fc\u30de\u3067\u91cd\u8981\u306a\u306e\u306f\u3001\u614c\u3066\u3066\u300c\u4e0a\u9650\u3092\u5897\u3084\u3059\u300d\u3053\u3068\u3067\u306f\u306a\u304f\u3001\u307e\u305a\u4e89\u70b9\u3092\u7d5e\u308b\u3053\u3068\u3067\u3059\u3002docs.kernel.org \u306e \/proc\/sys\/fs \u306b\u95a2\u3059\u308b\u8aac\u660e\u3067\u306f\u3001file-max \u306f Linux \u30ab\u30fc\u30cd\u30eb\u304c\u78ba\u4fdd\u3059\u308b file handle \u306e\u6700\u5927\u6570\u3092\u8868\u3057\u3001file-nr \u306f\u5272\u308a\u5f53\u3066\u6e08\u307f\u306e file handle \u6570\u306a\u3069\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306e\u6307\u6a19\u3068\u3057\u3066\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3059\u306a\u308f\u3061\u3001ENFILE \u3092\u898b\u305f\u6642\u70b9\u3067\u6700\u521d\u306b\u8003\u3048\u308b\u3079\u304d\u3053\u3068\u306f\u3001\u300c\u305d\u306e\u5834\u3057\u306e\u304e\u306e\u5909\u66f4\u300d\u3067\u306f\u306a\u304f\u3001\u300c\u672c\u5f53\u306b\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e file handle \u304c\u903c\u8feb\u3057\u3066\u3044\u308b\u306e\u304b\u300d\u300c\u305d\u306e\u903c\u8feb\u306f\u4e00\u904e\u6027\u304b\u3001\u7d99\u7d9a\u7684\u306a\u5897\u52a0\u304b\u300d\u300c\u3069\u306e\u5c64\u3067\u7a4d\u307f\u4e0a\u304c\u3063\u3066\u3044\u308b\u306e\u304b\u300d\u3092\u6574\u7406\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<hr>\n<h3>\u307e\u305a\u5148\u306b\u7f6e\u3044\u3066\u304a\u304d\u305f\u3044\u300c\u75c7\u72b6 \u2192 \u53d6\u308b\u3079\u304d\u884c\u52d5\u300d<\/h3>\n<table style=\"border-collapse:collapse; width:100%;\">\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px;\">\u75c7\u72b6<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px;\">\u3053\u306e\u6bb5\u968e\u3067\u53d6\u308b\u3079\u304d\u884c\u52d5<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px;\">\u907f\u3051\u305f\u3044\u884c\u52d5<\/th>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30a2\u30d7\u30ea\u3067\u300cToo many open files\u300d\u304c\u51fa\u308b\u304c\u3001\u539f\u56e0\u304c ENFILE \u304b\u672a\u78ba\u8a8d<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30a8\u30e9\u30fc\u30ed\u30b0\u3001errno\u3001\u76f4\u8fd1\u5909\u66f4\u3001\/proc\/sys\/fs\/file-nr \u3068 file-max \u306e\u78ba\u8a8d\u306b\u7d5e\u308b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u3044\u304d\u306a\u308a ulimit \u3084 sysctl \u3092\u5e83\u3052\u308b<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u8907\u6570\u30b5\u30fc\u30d3\u30b9\u3067\u540c\u6642\u591a\u767a\u7684\u306b open \u5931\u6557\u3084\u63a5\u7d9a\u7570\u5e38\u304c\u51fa\u308b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5358\u4e00\u30d7\u30ed\u30bb\u30b9\u3067\u306f\u306a\u304f\u30db\u30b9\u30c8\u5168\u4f53\u306e\u8cc7\u6e90\u903c\u8feb\u3068\u3057\u3066\u5207\u308a\u5206\u3051\u308b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u4e0d\u8abf\u306a 1 \u30b5\u30fc\u30d3\u30b9\u3060\u3051\u306e\u554f\u984c\u3060\u3068\u6c7a\u3081\u3064\u3051\u308b<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30b3\u30f3\u30c6\u30ca\u74b0\u5883\u3067\u4e00\u90e8 Pod \u3060\u3051\u4e0d\u5b89\u5b9a\u306b\u898b\u3048\u308b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u898b\u3048\u65b9\u3068\u30db\u30b9\u30c8\u5074\u306e file handle \u6d88\u8cbb\u3092\u5206\u3051\u3066\u78ba\u8a8d\u3059\u308b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30b3\u30f3\u30c6\u30ca\u5185\u3060\u3051\u3092\u898b\u3066\u5224\u65ad\u3092\u7d42\u3048\u308b<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3084\u76e3\u8996\u3001\u30ed\u30b0\u8ee2\u9001\u3092\u542b\u3080\u69cb\u6210\u3067\u7570\u5e38\u304c\u6ce2\u53ca\u3057\u3066\u3044\u308b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5f71\u97ff\u7bc4\u56f2\u3092\u5148\u306b\u6d17\u3044\u51fa\u3057\u3001\u5909\u66f4\u306f\u6700\u5c0f\u5909\u66f4\u3067\u691c\u8a0e\u3059\u308b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u672c\u756a\u3067\u4e00\u62ec\u5909\u66f4\u3084\u7121\u7406\u306a\u5fa9\u65e7\u4f5c\u696d\u3092\u9032\u3081\u308b<\/td>\n<\/tr>\n<\/table>\n<p>\u3053\u306e\u8868\u3067\u304a\u4f1d\u3048\u3057\u305f\u3044\u306e\u306f\u3001ENFILE \u306f\u300c\u4fee\u7406\u624b\u9806\u300d\u3088\u308a\u5148\u306b\u300c\u4f9d\u983c\u5224\u65ad\u300d\u3068\u300c\u5b89\u5168\u306a\u521d\u52d5\u300d\u304c\u5927\u4e8b\u306a\u985e\u3044\u306e\u969c\u5bb3\u3060\u3068\u3044\u3046\u70b9\u3067\u3059\u3002\u3068\u304f\u306b\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u304c\u30ec\u30ac\u30b7\u30fc\u3067\u3001\u7c21\u5358\u306b\u6b62\u3081\u3089\u308c\u306a\u3044\u74b0\u5883\u3067\u306f\u3001\u5909\u66f4\u305d\u306e\u3082\u306e\u304c\u65b0\u305f\u306a\u30ea\u30b9\u30af\u306b\u306a\u308a\u307e\u3059\u3002\u8aad\u8005\u306e\u65b9\u304c\u5b9f\u88c5\u62c5\u5f53\u3067\u3042\u3063\u3066\u3082\u3001SRE \u3067\u3042\u3063\u3066\u3082\u3001\u3042\u308b\u3044\u306f\u60c5\u30b7\u30b9\u3084\u30d7\u30ed\u30c0\u30af\u30c8\u8cac\u4efb\u8005\u3067\u3042\u3063\u3066\u3082\u3001\u307e\u305a\u5fc5\u8981\u306a\u306e\u306f\u554f\u984c\u306e\u6c88\u9759\u5316\u3068\u88ab\u5bb3\u6700\u5c0f\u5316\u3067\u3059\u3002\u5b89\u6613\u306b\u5e83\u3052\u305f\u8a2d\u5b9a\u5024\u306f\u3001\u5225\u306e\u8cc7\u6e90\u4e0d\u8db3\u3084\u76e3\u8996\u30ce\u30a4\u30ba\u3092\u8868\u9762\u5316\u3055\u305b\u308b\u3053\u3068\u304c\u3042\u308b\u305f\u3081\u3001\u6700\u521d\u306e\u4e00\u624b\u306f\u300c\u5b89\u5168\u306a\u78ba\u8a8d\u300d\u306b\u5bc4\u305b\u308b\u306e\u304c\u59a5\u5f53\u3067\u3059\u3002<\/p>\n<hr>\n<h3>ENFILE \u306f\u300c\u30d5\u30a1\u30a4\u30eb\u305d\u306e\u3082\u306e\u300d\u306e\u554f\u984c\u3068\u306f\u9650\u3089\u306a\u3044<\/h3>\n<p>\u3053\u3053\u3067\u3044\u3046\u300copen files\u300d\u306f\u3001\u5229\u7528\u8005\u306e\u611f\u899a\u3067\u3044\u3046\u901a\u5e38\u306e\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u3092\u6307\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002Linux \u306e file descriptor \u306f\u3001\u901a\u5e38\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u3067\u306a\u304f\u3001\u30bd\u30b1\u30c3\u30c8\u3001\u30d1\u30a4\u30d7\u3001\u30c7\u30d0\u30a4\u30b9\u306a\u3069\u306b\u3082\u95a2\u308f\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001ENFILE \u304c\u51fa\u3066\u3044\u308b\u304b\u3089\u3068\u3044\u3063\u3066\u3001\u300c\u5927\u304d\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3059\u304e\u305f\u300d\u300c\u30b9\u30c8\u30ec\u30fc\u30b8\u5bb9\u91cf\u304c\u5c3d\u304d\u305f\u300d\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002\u63a5\u7d9a\u6570\u306e\u6025\u5897\u3001\u30ed\u30b0\u8ee2\u9001\u306e\u6ede\u7559\u3001\u76e3\u8996\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u632f\u308b\u821e\u3044\u3001\u3042\u308b\u3044\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5074\u306e descriptor \u30ea\u30fc\u30af\u306a\u3069\u3001\u898b\u3048\u65b9\u306e\u9055\u3046\u8981\u56e0\u304c\u540c\u3058\u75c7\u72b6\u3068\u3057\u3066\u73fe\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002open(2) \u3067 ENFILE \u304c\u8fd4\u308b\u306e\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e total number of open files \u306e\u4e0a\u9650\u5230\u9054\u6642\u3067\u3042\u308a\u3001\u8ad6\u70b9\u306f\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u3088\u308a\u3082 file handle \u306e\u6d88\u8cbb\u5074\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u9055\u3044\u3092\u62bc\u3055\u3048\u3066\u304a\u304f\u3068\u3001\u793e\u5185\u8aac\u660e\u3082\u304b\u306a\u308a\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u4e0a\u53f8\u3084\u5f79\u54e1\u304b\u3089\u300c\u5bb9\u91cf\u4e0d\u8db3\u306a\u306e\u304b\u300d\u300c\u30b5\u30fc\u30d0\u3092\u5897\u3084\u305b\u3070\u6e08\u3080\u306e\u304b\u300d\u3068\u805e\u304b\u308c\u305f\u3068\u304d\u3001ENFILE \u306f Linux \u30ab\u30fc\u30cd\u30eb\u304c\u7ba1\u7406\u3059\u308b file handle \u306e\u4e0a\u9650\u3084\u5229\u7528\u72b6\u6cc1\u306b\u95a2\u308f\u308b\u554f\u984c\u3067\u3042\u308a\u3001\u5358\u7d14\u306a\u30c7\u30a3\u30b9\u30af\u6b8b\u91cf\u306e\u8a71\u3067\u306f\u306a\u3044\u3001\u3068\u6574\u7406\u3057\u3066\u4f1d\u3048\u3089\u308c\u307e\u3059\u3002\u73fe\u5834\u3067\u82e6\u3057\u3044\u306e\u306f\u3001\u969c\u5bb3\u305d\u306e\u3082\u306e\u3060\u3051\u3067\u306a\u304f\u3001\u72b6\u6cc1\u8aac\u660e\u304c\u96e3\u3057\u3044\u3053\u3068\u3067\u3059\u3002\u3060\u304b\u3089\u3053\u305d\u3001ENFILE \u3092\u898b\u305f\u3089\u300c\u4f55\u304c\u8a70\u307e\u3063\u3066\u3044\u308b\u304b\u300d\u3092\u5148\u306b\u8a00\u8a9e\u5316\u3059\u308b\u3053\u3068\u304c\u3001\u53ce\u675f\u3092\u65e9\u3081\u308b\u73fe\u5b9f\u7684\u306a\u4e00\u6b69\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u5b89\u5168\u306a\u521d\u52d5\u306f\u300c\u89e6\u308b\u300d\u3088\u308a\u300c\u78ba\u304b\u3081\u308b\u300d<\/h3>\n<p>\u5b9f\u52d9\u4e0a\u3001\u6700\u521d\u306b\u5171\u6709\u3057\u3084\u3059\u3044\u5b89\u5168\u306a\u521d\u52d5\u306f\u9650\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u7b2c\u4e00\u306b\u3001\u30a8\u30e9\u30fc\u304c\u672c\u5f53\u306b ENFILE \u306a\u306e\u304b\u3001EMFILE \u306a\u306e\u304b\u3001\u30ed\u30b0\u3084 errno \u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3067\u3059\u3002man7.org \u306e\u8aac\u660e\u3067\u306f\u3001EMFILE \u306f per-process limit\u3001\u3064\u307e\u308a\u30d7\u30ed\u30bb\u30b9\u3054\u3068\u306e file descriptor \u4e0a\u9650\u306b\u9054\u3057\u305f\u72b6\u614b\u3067\u3042\u308a\u3001ENFILE \u3068\u306f\u660e\u78ba\u306b\u7570\u306a\u308a\u307e\u3059\u3002\u7b2c\u4e8c\u306b\u3001\/proc\/sys\/fs\/file-nr \u3068 file-max \u3092\u898b\u3066\u3001\u5168\u4f53\u3068\u3057\u3066\u903c\u8feb\u304c\u8d77\u304d\u3066\u3044\u305d\u3046\u304b\u3092\u78ba\u304b\u3081\u308b\u3053\u3068\u3067\u3059\u3002\u7b2c\u4e09\u306b\u3001\u3044\u3064\u304b\u3089\u5897\u3048\u59cb\u3081\u305f\u306e\u304b\u3001\u76f4\u8fd1\u306e\u30c7\u30d7\u30ed\u30a4\u3001\u63a5\u7d9a\u5148\u5909\u66f4\u3001\u30ed\u30b0\u3084\u76e3\u8996\u306e\u8a2d\u5b9a\u5909\u66f4\u304c\u306a\u3044\u304b\u3092\u4e26\u3079\u3066\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u3089\u306f\u69cb\u6210\u3092\u58ca\u3057\u306b\u304f\u304f\u3001\u3057\u304b\u3082\u5f8c\u306e\u5224\u65ad\u6750\u6599\u3068\u3057\u3066\u6b8b\u3057\u3084\u3059\u3044\u78ba\u8a8d\u3067\u3059\u3002<\/p>\n<p>\u9006\u306b\u3001\u3053\u306e\u6bb5\u968e\u3067\u907f\u3051\u305f\u3044\u306e\u306f\u3001\u6839\u62e0\u304c\u306a\u3044\u307e\u307e sysctl \u3092\u5e83\u3052\u308b\u3053\u3068\u3001\u6a29\u9650\u3084\u6240\u6709\u8005\u3092\u89e6\u308b\u3053\u3068\u3001\u969c\u5bb3\u7bc4\u56f2\u304c\u898b\u3048\u306a\u3044\u307e\u307e\u518d\u8d77\u52d5\u306b\u8e0f\u307f\u5207\u308b\u3053\u3068\u3067\u3059\u3002\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u30b3\u30f3\u30c6\u30ca\u3001\u672c\u756a\u30c7\u30fc\u30bf\u3001\u76e3\u67fb\u8981\u4ef6\u304c\u7d61\u3080\u6848\u4ef6\u3067\u306f\u3001\u5909\u66f4\u306e\u5c65\u6b74\u3084\u8aac\u660e\u8cac\u4efb\u3082\u91cd\u304f\u306a\u308a\u307e\u3059\u3002\u4e00\u822c\u8ad6\u3068\u3057\u3066\u306e\u78ba\u8a8d\u306f\u3067\u304d\u307e\u3059\u304c\u3001\u5b9f\u969b\u306e\u5951\u7d04\u6761\u4ef6\u3001\u904b\u7528\u5236\u7d04\u3001\u53ef\u7528\u6027\u8981\u4ef6\u3001\u5fa9\u65e7\u512a\u5148\u9806\u4f4d\u306f\u6848\u4ef6\u3054\u3068\u306b\u5927\u304d\u304f\u7570\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u300c\u5b89\u5168\u306a\u521d\u52d5\u300d\u307e\u3067\u306f\u5185\u88fd\u3067\u9032\u3081\u3089\u308c\u3066\u3082\u3001\u305d\u306e\u5148\u306e\u518d\u5272\u5f53\u3001\u8a2d\u5b9a\u5909\u66f4\u3001\u6052\u4e45\u5bfe\u7b56\u306e\u8a2d\u8a08\u306f\u3001\u500b\u5225\u74b0\u5883\u3092\u898b\u3089\u308c\u308b\u5c02\u9580\u5bb6\u306b\u76f8\u8ac7\u3057\u305f\u65b9\u304c\u7d50\u679c\u3068\u3057\u3066\u65e9\u304f\u53ce\u675f\u3057\u3084\u3059\u3044\u5834\u9762\u304c\u5c11\u306a\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u5224\u65ad\u306b\u8ff7\u3046\u5834\u5408\u306f\u3001\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\uff08https:\/\/jouhou.main.jp\/?page_id=26983\uff09\u307e\u305f\u306f\u96fb\u8a71 0120-838-831 \u304b\u3089\u3001<strong>\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240<\/strong>\u3078\u306e\u76f8\u8ac7\u3092\u691c\u8a0e\u3059\u308b\u4fa1\u5024\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>ENFILE (23) \u306f\u3001\u305f\u307e\u305f\u307e\u8d77\u304d\u305f\u4e00\u77ac\u306e\u30ce\u30a4\u30ba\u3067\u306f\u306a\u304f\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u3067\u4f55\u304b\u304c\u7a4d\u307f\u4e0a\u304c\u3063\u3066\u3044\u308b\u30b5\u30a4\u30f3\u3068\u3057\u3066\u53d7\u3051\u6b62\u3081\u308b\u65b9\u304c\u5b89\u5168\u3067\u3059\u3002\u307e\u305a\u306f\u300c\u3069\u3053\u3092\u89e6\u308b\u304b\u300d\u3067\u306f\u306a\u304f\u3001\u300c\u4f55\u304c\u8a70\u307e\u3063\u3066\u3044\u308b\u304b\u300d\u3092\u78ba\u8a8d\u3059\u308b\u3002\u3053\u306e\u9806\u756a\u3092\u5b88\u308b\u3060\u3051\u3067\u3082\u3001\u969c\u5bb3\u306e\u6e29\u5ea6\u3092\u4e0b\u3052\u3001\u5834\u3092\u6574\u3048\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3000<\/p>\n<p> <a id=\"sec02\"><\/a> <\/p>\n<h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u7b2c2\u7ae0\uff1aEMFILE \u3068\u4f55\u304c\u9055\u3046\u306e\u304b\u2015\u2015\u500b\u5225\u30d7\u30ed\u30bb\u30b9\u306e\u4e0a\u9650\u304b\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u67af\u6e07\u304b<\/h2>\n<p>ENFILE \u306e\u8a3a\u65ad\u3067\u6700\u3082\u591a\u3044\u6df7\u540c\u306f\u3001EMFILE \u3068\u306e\u53d6\u308a\u9055\u3048\u3067\u3059\u3002\u73fe\u5834\u3067\u306f\u3069\u3061\u3089\u3082\u300cToo many open files\u300d\u3068\u898b\u3048\u308b\u3053\u3068\u304c\u3042\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30ed\u30b0\u306e\u8868\u73fe\u3082\u4f3c\u308b\u305f\u3081\u3001\u3064\u3044\u540c\u3058\u7a2e\u985e\u306e\u969c\u5bb3\u3068\u3057\u3066\u6271\u308f\u308c\u304c\u3061\u3067\u3059\u3002\u3057\u304b\u3057 Linux \u306e\u30de\u30cb\u30e5\u30a2\u30eb\u3067\u306f\u3001EMFILE \u306f\u300c\u305d\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u958b\u3051\u308b file descriptor \u306e\u4e0a\u9650\u306b\u9054\u3057\u305f\u72b6\u614b\u300d\u3001ENFILE \u306f\u300c\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u3067\u958b\u3051\u308b\u30d5\u30a1\u30a4\u30eb\u6570\u306e\u4e0a\u9650\u306b\u9054\u3057\u305f\u72b6\u614b\u300d\u3068\u660e\u78ba\u306b\u5206\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u3092\u8aa4\u308b\u3068\u3001\u539f\u56e0\u8abf\u67fb\u3082\u5bfe\u7b56\u3082\u565b\u307f\u5408\u308f\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070 EMFILE \u3067\u3042\u308c\u3070\u3001\u307e\u305a\u898b\u308b\u3079\u304d\u306f\u5f53\u8a72\u30d7\u30ed\u30bb\u30b9\u306e file descriptor \u6d88\u8cbb\u3001\u8d77\u52d5\u8a2d\u5b9a\u3001systemd \u3084\u30b7\u30a7\u30eb\u7d4c\u7531\u306e\u5236\u9650\u3001\u305d\u3057\u3066 RLIMIT_NOFILE \u3067\u3059\u3002getrlimit(2) \u3067\u306f RLIMIT_NOFILE \u3092\u300c\u305d\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u958b\u3051\u308b\u6700\u5927 file descriptor \u756a\u53f7\u3088\u308a 1 \u5927\u304d\u3044\u5024\u300d\u3068\u8aac\u660e\u3057\u3066\u304a\u308a\u3001\u3053\u306e\u4e0a\u9650\u3092\u8d85\u3048\u308b\u3068 open(2)\u3001pipe(2)\u3001dup(2) \u306a\u3069\u3067 EMFILE \u304c\u8fd4\u308a\u307e\u3059\u3002\u3064\u307e\u308a EMFILE \u306f\u3001\u3042\u308b\u30d7\u30ed\u30bb\u30b9\u3001\u3042\u308b\u30b5\u30fc\u30d3\u30b9\u3001\u3042\u308b\u30b8\u30e7\u30d6\u306b\u9589\u3058\u305f\u8ad6\u70b9\u3068\u3057\u3066\u6574\u7406\u3057\u3084\u3059\u3044\u969c\u5bb3\u3067\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u306e ENFILE \u306f\u3001\u8a71\u304c\u3082\u3046\u4e00\u6bb5\u5e83\u304c\u308a\u307e\u3059\u3002open(2) \u3084 socket(2) \u3067\u306f\u3001ENFILE \u306f system-wide limit on the total number of open files \u306b\u9054\u3057\u305f\u72b6\u614b\u3068\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u901a\u5e38\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u3067\u306a\u304f\u30bd\u30b1\u30c3\u30c8\u3001\u30a4\u30d9\u30f3\u30c8\u901a\u77e5\u3001\u533f\u540d inode \u3092\u4f7f\u3046\u4ed5\u7d44\u307f\u306a\u3069\u3082 file descriptor \u3092\u6d88\u8cbb\u3059\u308b\u305f\u3081\u3001\u898b\u304b\u3051\u4e0a\u306f\u300c\u30a2\u30d7\u30ea\u306e\u4e00\u90e8\u3060\u3051\u4e0d\u8abf\u300d\u306b\u898b\u3048\u3066\u3082\u3001\u80cc\u666f\u3067\u306f\u30db\u30b9\u30c8\u5168\u4f53\u306e file handle \u304c\u81a8\u3089\u3093\u3067\u3044\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3064\u307e\u308a ENFILE \u306f\u30011 \u30b5\u30fc\u30d3\u30b9\u306e\u8a2d\u5b9a\u5024\u3060\u3051\u898b\u3066\u3044\u3066\u3082\u53ce\u675f\u3057\u306a\u3044\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u969c\u5bb3\u3067\u3059\u3002<\/p>\n<hr>\n<h3>\u898b\u5206\u3051\u65b9\u3092\u66d6\u6627\u306b\u3059\u308b\u3068\u3001\u5bfe\u51e6\u304c\u305a\u308c\u3066\u3044\u304f<\/h3>\n<p>\u5b9f\u52d9\u3067\u306f\u3001EMFILE \u3068 ENFILE \u306e\u9055\u3044\u3092\u300c\u4e0a\u9650\u304c\u5c0f\u3055\u3044\u304b\u5927\u304d\u3044\u304b\u300d\u7a0b\u5ea6\u306b\u6349\u3048\u3066\u3057\u307e\u3046\u3068\u5371\u967a\u3067\u3059\u3002EMFILE \u306a\u3089\u3001\u3042\u308b\u30ef\u30fc\u30ab\u30fc\u3060\u3051\u304c\u6025\u5897\u3057\u305f\u3001\u3042\u308b\u51e6\u7406\u304c file descriptor \u3092\u9589\u3058\u5fd8\u308c\u3066\u3044\u308b\u3001\u3042\u308b\u3044\u306f\u30d7\u30ed\u30bb\u30b9\u306e\u8d77\u52d5\u6761\u4ef6\u304c\u60f3\u5b9a\u3088\u308a\u53b3\u3057\u304b\u3063\u305f\u3001\u3068\u3044\u3063\u305f\u4eee\u8aac\u304c\u7acb\u3066\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u306b\u5bfe\u3057\u3066 ENFILE \u306f\u3001\u540c\u3058\u30db\u30b9\u30c8\u4e0a\u306e\u4ed6\u30b5\u30fc\u30d3\u30b9\u3001\u30d0\u30c3\u30c1\u3001\u76e3\u8996\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3001\u30ed\u30b0\u53ce\u96c6\u3001\u30b5\u30a4\u30c9\u30ab\u30fc\u3001\u5171\u6709\u57fa\u76e4\u306e\u5229\u7528\u307e\u3067\u542b\u3081\u3066\u898b\u306a\u3044\u3068\u3001\u672c\u5f53\u306e\u7a4d\u307f\u4e0a\u304c\u308a\u65b9\u304c\u898b\u3048\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u73fe\u5834\u611f\u3068\u3057\u3066\u306f\u3001\u300c\u3053\u306e\u30a2\u30d7\u30ea\u304c\u60aa\u3044\u300d\u3068\u65ad\u5b9a\u3057\u305f\u304f\u306a\u308b\u5c40\u9762\u307b\u3069\u3001ENFILE \u306e\u53ef\u80fd\u6027\u3092\u51b7\u9759\u306b\u5916\u3055\u306a\u3044\u3053\u3068\u304c\u5927\u5207\u3067\u3059\u3002<\/p>\n<p>\u3068\u304f\u306b Kubernetes \u3084\u30b3\u30f3\u30c6\u30ca\u30d9\u30fc\u30b9\u306e\u904b\u7528\u3067\u306f\u3001\u30b3\u30f3\u30c6\u30ca\u306e\u4e2d\u3067\u898b\u3048\u308b\u5024\u3060\u3051\u3067\u5224\u65ad\u3059\u308b\u3068\u3001\u30db\u30b9\u30c8\u5074\u306e\u903c\u8feb\u3092\u898b\u843d\u3068\u3059\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002ENFILE \u306f\u30ab\u30fc\u30cd\u30eb\u5168\u4f53\u306e file handle \u7ba1\u7406\u306b\u95a2\u308f\u308b\u305f\u3081\u3001\u3042\u308b\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30a2\u30d7\u30ea\u304c\u6700\u5f8c\u306e\u5f15\u304d\u91d1\u306b\u306a\u3063\u305f\u3068\u3057\u3066\u3082\u3001\u539f\u56e0\u306e\u7d2f\u7a4d\u306f\u5225\u306e\u5834\u6240\u306b\u3042\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3060\u304b\u3089\u3053\u305d\u3001\u969c\u5bb3\u306e\u521d\u52d5\u3067\u306f\u300c\u3044\u307e\u5931\u6557\u3057\u305f\u30d7\u30ed\u30bb\u30b9\u300d\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u300c\u305d\u306e\u30db\u30b9\u30c8\u5168\u4f53\u3067\u4f55\u304c\u5897\u3048\u3066\u3044\u305f\u304b\u300d\u3092\u898b\u308b\u59ff\u52e2\u304c\u91cd\u8981\u3067\u3059\u3002\u3053\u308c\u306f\u8cac\u4efb\u306e\u6240\u5728\u3092\u66d6\u6627\u306b\u3059\u308b\u305f\u3081\u3067\u306f\u306a\u304f\u3001\u539f\u56e0\u306e\u5207\u308a\u5206\u3051\u3092\u65e9\u3081\u308b\u305f\u3081\u306e\u8996\u70b9\u3067\u3059\u3002<\/p>\n<hr>\n<h3>\u8a3a\u65ad\u306e\u8d77\u70b9\u3068\u3057\u3066\u62bc\u3055\u3048\u305f\u3044\u6307\u6a19<\/h3>\n<p>Linux \u30ab\u30fc\u30cd\u30eb\u306e sysctl \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f\u3001\/proc\/sys\/fs\/file-max \u306f\u30ab\u30fc\u30cd\u30eb\u304c\u5272\u308a\u5f53\u3066\u308b file handle \u306e\u6700\u5927\u6570\u3092\u793a\u3057\u3001\/proc\/sys\/fs\/file-nr \u306e 3 \u3064\u306e\u5024\u306f\u3001\u5272\u308a\u5f53\u3066\u6e08\u307f\u306e file handle \u6570\u3001\u672a\u4f7f\u7528\u3060\u304c\u5272\u308a\u5f53\u3066\u6e08\u307f\u306e\u6570\u3001\u6700\u5927\u6570\u3092\u8868\u3059\u3068\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3055\u3089\u306b Linux 2.6 \u4ee5\u964d\u3067\u306f\u30012 \u756a\u76ee\u306e\u300c\u672a\u4f7f\u7528\u300d\u6b04\u306f\u5e38\u306b 0 \u304c\u5831\u544a\u3055\u308c\u308b\u4ed5\u69d8\u3067\u3059\u3002\u305d\u306e\u305f\u3081 file-nr \u3092\u898b\u308b\u969b\u306f\u3001\u53e4\u3044\u8a18\u4e8b\u306e\u8aac\u660e\u3092\u305d\u306e\u307e\u307e\u5f53\u3066\u306f\u3081\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u73fe\u5728\u306e\u4ed5\u69d8\u306b\u6cbf\u3063\u3066\u300c\u5272\u308a\u5f53\u3066\u6e08\u307f\u306e\u7dcf\u91cf\u300d\u3068\u300c\u6700\u5927\u5024\u300d\u306e\u95a2\u4fc2\u3092\u898b\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u91cd\u8981\u306a\u306e\u306f\u3001file-max \u3092\u898b\u305f\u3060\u3051\u3067\u5b89\u5fc3\u3057\u306a\u3044\u3053\u3068\u3067\u3059\u3002\u8a2d\u5b9a\u5024\u306b\u307e\u3060\u4f59\u88d5\u304c\u3042\u3063\u3066\u3082\u3001\u77ed\u6642\u9593\u3067\u6025\u5897\u3057\u3066\u3044\u308b\u306a\u3089\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30ea\u30fc\u30af\u3001\u63a5\u7d9a\u306e\u6ede\u7559\u3001\u30d5\u30a1\u30a4\u30eb\u76e3\u8996\u3084\u30ed\u30b0\u53ce\u96c6\u306e\u632f\u308b\u821e\u3044\u3001\u3042\u308b\u3044\u306f\u4e00\u90e8\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u7570\u5e38\u30eb\u30fc\u30d7\u304c\u80cc\u666f\u306b\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u53cd\u5bfe\u306b\u3001\u8a2d\u5b9a\u5024\u306b\u8fd1\u3065\u3044\u3066\u3044\u308b\u306a\u3089\u3001\u73fe\u5728\u306e\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u898f\u6a21\u306b\u5bfe\u3057\u3066\u8a2d\u8a08\u4f59\u529b\u304c\u5c11\u306a\u3059\u304e\u308b\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u6570\u5024\u306e\u7d76\u5bfe\u5024\u3067\u306f\u306a\u304f\u3001\u300c\u3044\u307e\u3069\u3046\u7a4d\u307f\u4e0a\u304c\u3063\u3066\u3044\u308b\u304b\u300d\u300c\u5897\u3048\u65b9\u306b\u8aac\u660e\u304c\u3064\u304f\u304b\u300d\u3092\u78ba\u8a8d\u3059\u308b\u306e\u304c\u3001\u53ce\u675f\u306b\u5411\u3051\u305f\u81ea\u7136\u306a\u9806\u756a\u3067\u3059\u3002<\/p>\n<table style=\"border-collapse:collapse; width:100%;\">\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px;\">\u8ad6\u70b9<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px;\">EMFILE \u3067\u898b\u3084\u3059\u3044\u3053\u3068<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px;\">ENFILE \u3067\u898b\u3084\u3059\u3044\u3053\u3068<\/th>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u4e0a\u9650\u306e\u5358\u4f4d<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30d7\u30ed\u30bb\u30b9\u5358\u4f4d\u306e RLIMIT_NOFILE<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e file handle \u4e0a\u9650<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u521d\u52d5\u306e\u8996\u70b9<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5f53\u8a72\u30d7\u30ed\u30bb\u30b9\u306e FD \u6d88\u8cbb\u3068\u8d77\u52d5\u6761\u4ef6<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30db\u30b9\u30c8\u5168\u4f53\u306e file-nr\u3001\u76f4\u8fd1\u5909\u66f4\u3001\u5468\u8fba\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u8aa4\u308a\u3084\u3059\u3044\u5224\u65ad<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30a2\u30d7\u30ea\u306e\u5b9f\u88c5\u554f\u984c\u3060\u3051\u306b\u5bc4\u305b\u3059\u304e\u308b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5358\u4e00\u30d7\u30ed\u30bb\u30b9\u306e\u8a2d\u5b9a\u3060\u3051\u5909\u3048\u3066\u89e3\u6c7a\u3057\u305f\u3068\u601d\u3046<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u8aac\u660e\u76f8\u624b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5b9f\u88c5\u62c5\u5f53\u3001\u30b5\u30fc\u30d3\u30b9\u904b\u7528\u62c5\u5f53<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u57fa\u76e4\u62c5\u5f53\u3001\u60c5\u30b7\u30b9\u3001\u8cac\u4efb\u8005\u3092\u542b\u3081\u305f\u6a2a\u65ad\u8aac\u660e<\/td>\n<\/tr>\n<\/table>\n<hr>\n<h3>\u300c\u3068\u308a\u3042\u3048\u305a\u4e0a\u3052\u308b\u300d\u304c\u901a\u7528\u3057\u306b\u304f\u3044\u7406\u7531<\/h3>\n<p>EMFILE \u3067\u3042\u308c\u3070\u3001\u75c7\u72b6\u3068\u5f71\u97ff\u7bc4\u56f2\u304c\u7279\u5b9a\u306e\u30d7\u30ed\u30bb\u30b9\u306b\u5bc4\u308a\u3084\u3059\u3044\u305f\u3081\u3001\u66ab\u5b9a\u7684\u306a\u4e0a\u9650\u8abf\u6574\u304c\u610f\u5473\u3092\u6301\u3064\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3060\u3057\u305d\u308c\u3067\u3082\u3001\u30ea\u30fc\u30af\u304c\u3042\u308b\u306a\u3089\u6642\u9593\u3092\u8cb7\u3046\u3060\u3051\u306b\u7d42\u308f\u308a\u307e\u3059\u3002ENFILE \u306e\u5834\u5408\u306f\u3055\u3089\u306b\u614e\u91cd\u3067\u3001sysctl \u3067 file-max \u3092\u5897\u3084\u3059\u5224\u65ad\u306f\u3001\u30db\u30b9\u30c8\u5168\u4f53\u306e\u30e1\u30e2\u30ea\u5229\u7528\u3001\u540c\u5c45\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3001\u76e3\u8996\u8a2d\u8a08\u3001\u5c06\u6765\u306e\u30d4\u30fc\u30af\u6642\u6319\u52d5\u307e\u3067\u8003\u616e\u3057\u306a\u3044\u3068\u3001\u5358\u306b\u5225\u306e\u5834\u6240\u3078\u30ce\u30a4\u30ba\u3092\u79fb\u3059\u7d50\u679c\u306b\u306a\u308a\u304b\u306d\u307e\u305b\u3093\u3002\u30ab\u30fc\u30cd\u30eb\u306e file handle \u306f\u7121\u9650\u3067\u306f\u306a\u304f\u3001\u4f7f\u3044\u65b9\u306e\u504f\u308a\u304c\u3042\u308c\u3070\u518d\u3073\u540c\u3058\u72b6\u6cc1\u306b\u623b\u308a\u307e\u3059\u3002\u3064\u307e\u308a ENFILE \u3067\u306f\u3001\u6570\u5024\u5909\u66f4\u304c\u300c\u89e3\u6c7a\u300d\u3067\u306f\u306a\u304f\u300c\u7336\u4e88\u300d\u306b\u306a\u308b\u3053\u3068\u304c\u73cd\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306e\u70b9\u306f\u3001\u5f79\u54e1\u3084\u975e\u6280\u8853\u90e8\u9580\u3078\u306e\u8aac\u660e\u3067\u3082\u91cd\u8981\u3067\u3059\u3002\u300c\u4e0a\u9650\u3092\u4e0a\u3052\u308c\u3070\u7d42\u308f\u308a\u300d\u3067\u306f\u306a\u304f\u3001\u300c\u306a\u305c\u305d\u306e\u4e0a\u9650\u3067\u8db3\u308a\u306a\u304f\u306a\u3063\u305f\u306e\u304b\u300d\u300c\u518d\u767a\u9632\u6b62\u306e\u305f\u3081\u306b\u3069\u3053\u307e\u3067\u78ba\u8a8d\u304c\u5fc5\u8981\u304b\u300d\u3092\u6574\u7406\u3057\u3066\u4f1d\u3048\u306a\u3044\u3068\u3001\u540c\u3058\u969c\u5bb3\u304c\u5225\u306e\u6642\u9593\u5e2f\u306b\u518d\u71c3\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u73fe\u5834\u3068\u3057\u3066\u306f\u3001\u3044\u307e\u52d5\u304b\u3059\u3053\u3068\u3082\u5927\u5207\u3067\u3059\u304c\u3001\u3042\u3068\u304b\u3089\u76e3\u67fb\u3084\u5831\u544a\u3067\u8a70\u307e\u3089\u306a\u3044\u3088\u3046\u3001\u5f71\u97ff\u7bc4\u56f2\u3068\u5224\u65ad\u6839\u62e0\u3092\u6b8b\u305b\u308b\u9032\u3081\u65b9\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u3060\u304b\u3089\u3053\u305d ENFILE \u3092\u898b\u305f\u3068\u304d\u306f\u3001\u8a2d\u5b9a\u5909\u66f4\u306e\u524d\u306b\u8a3a\u65ad\u306e\u7c92\u5ea6\u3092\u4e0a\u3052\u308b\u3053\u3068\u304c\u3001\u304b\u3048\u3063\u3066\u65e9\u3044\u30c0\u30e1\u30fc\u30b8\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u4e00\u822c\u8ad6\u3067\u8db3\u308a\u308b\u7bc4\u56f2\u3068\u3001\u500b\u5225\u76f8\u8ac7\u304c\u5fc5\u8981\u306b\u306a\u308b\u5883\u754c<\/h3>\n<p>\u4e00\u822c\u8ad6\u3068\u3057\u3066\u306f\u3001EMFILE \u3068 ENFILE \u3092\u5207\u308a\u5206\u3051\u3001file-nr \u3068 file-max \u3092\u78ba\u8a8d\u3057\u3001\u76f4\u8fd1\u306e\u5909\u66f4\u3068 FD \u6d88\u8cbb\u306e\u5897\u3048\u65b9\u3092\u7167\u3089\u3057\u5408\u308f\u305b\u308b\u3068\u3053\u308d\u307e\u3067\u306f\u3001\u591a\u304f\u306e\u30c1\u30fc\u30e0\u3067\u5b9f\u65bd\u3067\u304d\u307e\u3059\u3002\u3057\u304b\u3057\u305d\u306e\u5148\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u672c\u756a\u30c7\u30fc\u30bf\u3001\u30b3\u30f3\u30c6\u30ca\u57fa\u76e4\u3001\u8907\u6570\u4e8b\u696d\u8005\u304c\u95a2\u308f\u308b\u5951\u7d04\u74b0\u5883\u3001\u76e3\u67fb\u8981\u4ef6\u3001\u53ef\u7528\u6027\u8981\u4ef6\u304c\u7d61\u3080\u3068\u3001\u300c\u3069\u3053\u307e\u3067\u898b\u3066\u304b\u3089\u4f55\u3092\u5909\u3048\u308b\u304b\u300d\u306f\u4e00\u6c17\u306b\u6848\u4ef6\u4f9d\u5b58\u306b\u306a\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u540c\u3058 ENFILE \u3067\u3082\u3001\u591c\u9593\u30d0\u30c3\u30c1\u304c\u4e3b\u56e0\u306e\u30b1\u30fc\u30b9\u3068\u3001\u9577\u6642\u9593\u63a5\u7d9a\u306e\u6ede\u7559\u304c\u4e3b\u56e0\u306e\u30b1\u30fc\u30b9\u3067\u306f\u3001\u9078\u3076\u3079\u304d\u6253\u3061\u624b\u3082\u8aac\u660e\u306e\u4ed5\u65b9\u3082\u7570\u306a\u308a\u307e\u3059\u3002\u4e00\u822c\u8ad6\u306f\u65b9\u5411\u3065\u3051\u306b\u306f\u6709\u52b9\u3067\u3059\u304c\u3001\u5b9f\u4f5c\u696d\u306e\u662f\u975e\u3084\u9806\u5e8f\u307e\u3067\u306f\u4fdd\u8a3c\u3057\u3066\u304f\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u969c\u5bb3\u306e\u6e29\u5ea6\u3092\u4e0b\u3052\u306a\u304c\u3089\u5b89\u5168\u306b\u53ce\u675f\u3055\u305b\u305f\u3044\u5834\u5408\u306b\u306f\u3001\u7121\u7406\u306b\u81ea\u529b\u3067\u8e0f\u307f\u8fbc\u3080\u3088\u308a\u3001\u500b\u5225\u74b0\u5883\u3092\u524d\u63d0\u306b\u8a3a\u65ad\u3067\u304d\u308b\u5c02\u9580\u5bb6\u3078\u65e9\u3081\u306b\u76f8\u8ac7\u3059\u308b\u65b9\u304c\u3001\u7d50\u679c\u3068\u3057\u3066\u5909\u66f4\u91cf\u3092\u6291\u3048\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u3068\u304f\u306b\u300c\u81ea\u793e\u3060\u3051\u3067\u539f\u56e0\u3092\u65ad\u5b9a\u3057\u304d\u308c\u306a\u3044\u300d\u300c\u8907\u6570\u30b7\u30b9\u30c6\u30e0\u306b\u6ce2\u53ca\u3057\u3066\u3044\u308b\u300d\u300c\u8a2d\u5b9a\u5909\u66f4\u306e\u8cac\u4efb\u304c\u91cd\u3044\u300d\u3068\u3044\u3063\u305f\u6761\u4ef6\u304c\u91cd\u306a\u308b\u306a\u3089\u3001<strong>\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240<\/strong>\u306e\u3088\u3046\u306a\u5c02\u9580\u5bb6\u3078\u306e\u76f8\u8ac7\u30fb\u4f9d\u983c\u3092\u691c\u8a0e\u3059\u308b\u4fa1\u5024\u304c\u3042\u308a\u307e\u3059\u3002\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u306f https:\/\/jouhou.main.jp\/?page_id=26983 \u3001\u96fb\u8a71\u306f 0120-838-831 \u3067\u3059\u3002\u5224\u65ad\u6750\u6599\u3092\u305d\u308d\u3048\u305f\u3046\u3048\u3067\u76f8\u8ac7\u3067\u304d\u308c\u3070\u3001\u305d\u306e\u5f8c\u306e\u8abf\u67fb\u3084\u5bfe\u7b56\u3082\u8edf\u7740\u9678\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3000<\/p>\n<p> <a id=\"sec03\"><\/a> <\/p>\n<h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u7b2c3\u7ae0\uff1a\u307e\u305a30\u79d2\u3067\u4e89\u70b9\u3092\u7d5e\u308b\u2015\u2015\u30ab\u30fc\u30cd\u30eb\u5074\u306e file-max \u3068\u73fe\u5834\u306e\u75c7\u72b6\u3092\u5207\u308a\u5206\u3051\u308b<\/h2>\n<p>ENFILE (23) \u306e\u73fe\u5834\u5bfe\u5fdc\u3067\u5dee\u304c\u51fa\u3084\u3059\u3044\u306e\u306f\u3001\u6700\u521d\u306e 30 \u79d2\u304b\u3089\u6570\u5206\u3067\u300c\u4f55\u3092\u4e89\u70b9\u306b\u3059\u308b\u304b\u300d\u3092\u7d5e\u308c\u308b\u304b\u3069\u3046\u304b\u3067\u3059\u3002\u3053\u3053\u3067\u3044\u3046\u4e89\u70b9\u3068\u306f\u3001\u969c\u5bb3\u3092\u6df1\u6398\u308a\u3059\u308b\u524d\u306b\u3001\u5c11\u306a\u304f\u3068\u3082\u8abf\u67fb\u306e\u5411\u304d\u3092\u8aa4\u3089\u306a\u3044\u305f\u3081\u306e\u5224\u65ad\u8ef8\u3067\u3059\u3002Linux \u30ab\u30fc\u30cd\u30eb\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f\u3001\/proc\/sys\/fs\/file-max \u306f\u30ab\u30fc\u30cd\u30eb\u304c\u5272\u308a\u5f53\u3066\u308b file handle \u306e\u6700\u5927\u6570\u3067\u3042\u308a\u3001\/proc\/sys\/fs\/file-nr \u306f\u5272\u308a\u5f53\u3066\u6e08\u307f file handle \u6570\u306a\u3069\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306e\u5024\u3068\u3057\u3066\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a ENFILE \u3092\u898b\u305f\u3068\u304d\u3001\u307e\u305a\u78ba\u8a8d\u3057\u305f\u3044\u306e\u306f\u300c\u672c\u5f53\u306b\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e file handle \u4e0a\u9650\u306b\u8fd1\u3065\u3044\u3066\u3044\u308b\u306e\u304b\u300d\u300c\u305d\u308c\u3068\u3082\u5225\u306e\u30a8\u30e9\u30fc\u3092 ENFILE \u3068\u8aa4\u8a8d\u3057\u3066\u3044\u306a\u3044\u304b\u300d\u306e 2 \u70b9\u3067\u3059\u3002\u3053\u308c\u3060\u3051\u3067\u3082\u3001\u8abf\u67fb\u306e\u65b9\u5411\u306f\u304b\u306a\u308a\u6574\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u5927\u5207\u306a\u306e\u306f\u3001\u4e89\u70b9\u3092\u7d5e\u308b\u3053\u3068\u3068\u3001\u539f\u56e0\u3092\u65ad\u5b9a\u3059\u308b\u3053\u3068\u3092\u6df7\u540c\u3057\u306a\u3044\u3053\u3068\u3067\u3059\u3002\u6700\u521d\u306e\u6bb5\u968e\u3067\u306f\u3001\u300c\u3053\u306e\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u304c\u60aa\u3044\u300d\u300c\u3053\u306e\u8a2d\u5b9a\u5024\u304c\u4f4e\u3044\u300d\u3068\u6c7a\u3081\u3064\u3051\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3080\u3057\u308d\u5fc5\u8981\u306a\u306e\u306f\u3001\u969c\u5bb3\u306e\u6e29\u5ea6\u3092\u4e0b\u3052\u308b\u305f\u3081\u306e\u6574\u7406\u3067\u3059\u3002ENFILE \u306f open(2) \u306e\u5b9a\u7fa9\u4e0a\u3001system-wide limit on the total number of open files \u306b\u9054\u3057\u305f\u72b6\u614b\u3067\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u30011 \u30d7\u30ed\u30bb\u30b9\u306e\u6319\u52d5\u3060\u3051\u898b\u3066\u3082\u5168\u4f53\u50cf\u304c\u3064\u304b\u3081\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u9006\u306b EMFILE \u3067\u3042\u308c\u3070 per-process limit \u304c\u8ad6\u70b9\u306b\u306a\u308a\u307e\u3059\u3002\u6700\u521d\u306b\u3053\u306e\u5207\u308a\u5206\u3051\u304c\u3067\u304d\u308c\u3070\u3001\u95a2\u4fc2\u8005\u3078\u306e\u8aac\u660e\u3082\u300c\u500b\u5225\u30d7\u30ed\u30bb\u30b9\u306e\u8a2d\u5b9a\u306e\u554f\u984c\u306a\u306e\u304b\u300d\u300c\u30db\u30b9\u30c8\u5168\u4f53\u306e\u8cc7\u6e90\u306e\u554f\u984c\u306a\u306e\u304b\u300d\u3067\u5206\u3051\u3066\u9032\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u6700\u521d\u306b\u78ba\u8a8d\u3057\u305f\u3044\u306e\u306f\u300c\u75c7\u72b6\u300d\u3067\u306f\u306a\u304f\u300c\u5c64\u300d\u3067\u3059<\/h3>\n<p>\u73fe\u5834\u3067\u306f\u3001\u300c\u30ed\u30b0\u306b Too many open files \u304c\u51fa\u3066\u3044\u308b\u300d\u300c\u63a5\u7d9a\u30a8\u30e9\u30fc\u304c\u5897\u3048\u3066\u3044\u308b\u300d\u300c\u4e00\u90e8 API \u304c\u5931\u6557\u3059\u308b\u300d\u3068\u3044\u3063\u305f\u898b\u3048\u65b9\u304b\u3089\u5165\u308b\u3053\u3068\u304c\u307b\u3068\u3093\u3069\u3067\u3059\u3002\u3057\u304b\u3057\u305d\u308c\u3060\u3051\u3067\u306f\u3001\u30a2\u30d7\u30ea\u5c64\u306e\u554f\u984c\u306a\u306e\u304b\u3001\u30db\u30b9\u30c8\u5168\u4f53\u306e file handle \u7ba1\u7406\u306e\u554f\u984c\u306a\u306e\u304b\u304c\u5206\u304b\u308a\u307e\u305b\u3093\u3002\u305d\u3053\u3067\u3001\u307e\u305a\u306f\u75c7\u72b6\u3092\u6a2a\u4e26\u3073\u306b\u3057\u3064\u3064\u3001\u3069\u306e\u5c64\u3067\u8d77\u304d\u3066\u3044\u308b\u7570\u5e38\u306a\u306e\u304b\u3092\u6574\u7406\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u30011 \u30b5\u30fc\u30d3\u30b9\u3060\u3051\u304c\u7d99\u7d9a\u7684\u306b\u5931\u6557\u3057\u3066\u3044\u308b\u306a\u3089 EMFILE \u3084\u305d\u306e\u5468\u8fba\u3092\u7591\u3044\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u4e00\u65b9\u3067\u3001\u8907\u6570\u30b5\u30fc\u30d3\u30b9\u3067\u540c\u6642\u671f\u306b open \u7cfb\u5931\u6557\u3084\u63a5\u7d9a\u7570\u5e38\u304c\u51fa\u3066\u3044\u308b\u306a\u3089\u3001ENFILE \u3084\u30db\u30b9\u30c8\u5074\u306e\u903c\u8feb\u3092\u7591\u3046\u6750\u6599\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u91cd\u8981\u306a\u306e\u306f\u3001\u30a2\u30d7\u30ea\u306e\u8cac\u4efb\u304b\u57fa\u76e4\u306e\u8cac\u4efb\u304b\u3092\u65e9\u304f\u6c7a\u3081\u308b\u3053\u3068\u3067\u306f\u306a\u304f\u3001\u3069\u306e\u5c64\u304b\u3089\u5148\u306b\u898b\u305f\u65b9\u304c\u53ce\u675f\u3057\u3084\u3059\u3044\u304b\u3092\u5224\u65ad\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>Linux \u30ab\u30fc\u30cd\u30eb\u306e \/proc\/sys\/fs \u306e\u8aac\u660e\u3067\u306f\u3001file-max \u306f file handle \u306e\u6700\u5927\u6570\u3001file-nr \u306f\u5272\u308a\u5f53\u3066\u6e08\u307f file handle \u6570\u30fb\u672a\u4f7f\u7528\u6b04\u30fb\u6700\u5927\u6570\u3092\u793a\u3057\u3001Linux 2.6 \u4ee5\u964d\u3067\u306f 2 \u756a\u76ee\u306e\u5024\u306f\u5e38\u306b 0 \u3067\u3059\u3002\u3053\u306e\u4ed5\u69d8\u3092\u77e5\u3089\u306a\u3044\u307e\u307e\u53e4\u3044\u60c5\u5831\u3092\u53c2\u8003\u306b\u3059\u308b\u3068\u3001\u300c\u7a7a\u304d\u304c\u3069\u306e\u7a0b\u5ea6\u3042\u308b\u304b\u300d\u3092\u8aa4\u3063\u3066\u89e3\u91c8\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5b9f\u52d9\u3067\u898b\u308b\u3079\u304d\u306a\u306e\u306f\u30011 \u756a\u76ee\u306e\u5272\u308a\u5f53\u3066\u6e08\u307f file handle \u6570\u304c\u30013 \u756a\u76ee\u306e\u6700\u5927\u5024\u306b\u3069\u306e\u7a0b\u5ea6\u8fd1\u3065\u3044\u3066\u3044\u308b\u304b\u3067\u3059\u3002\u3059\u3067\u306b\u903c\u8feb\u3057\u3066\u3044\u308b\u306e\u304b\u3001\u307e\u3060\u4f59\u88d5\u306f\u3042\u308b\u304c\u6025\u5897\u3057\u3066\u3044\u308b\u306e\u304b\u3067\u3001\u8a55\u4fa1\u306f\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<table style=\"border-collapse:collapse; width:100%;\">\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px;\">\u6700\u521d\u306b\u898b\u308b\u9805\u76ee<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px;\">\u898b\u305f\u3044\u3053\u3068<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px;\">\u8aad\u307f\u9055\u3048\u3084\u3059\u3044\u70b9<\/th>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30a8\u30e9\u30fc\u30ed\u30b0\u306e errno<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">ENFILE \u304b EMFILE \u304b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u3069\u3061\u3089\u3082\u4f3c\u305f\u6587\u8a00\u3067\u8a18\u9332\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308b<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\/proc\/sys\/fs\/file-max<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u3067\u78ba\u4fdd\u53ef\u80fd\u306a file handle \u306e\u4e0a\u9650<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u9ad8\u3044\u5024\u306a\u3089\u5b89\u5168\u3060\u3068\u65e9\u5408\u70b9\u3057\u3084\u3059\u3044<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\/proc\/sys\/fs\/file-nr<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5272\u308a\u5f53\u3066\u6e08\u307f\u306e file handle \u6570\u3068\u6700\u5927\u5024\u306e\u95a2\u4fc2<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">2 \u756a\u76ee\u306e\u5024\u306e\u610f\u5473\u3092\u53e4\u3044\u60c5\u5831\u3067\u8aad\u3093\u3067\u3057\u307e\u3046<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u76f4\u8fd1\u5909\u66f4<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30c7\u30d7\u30ed\u30a4\u3001\u63a5\u7d9a\u5148\u5909\u66f4\u3001\u30ed\u30b0\u30fb\u76e3\u8996\u8a2d\u5b9a\u5909\u66f4\u306e\u6709\u7121<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30a2\u30d7\u30ea\u5909\u66f4\u3060\u3051\u306b\u6ce8\u76ee\u3057\u3001\u5468\u8fba\u5909\u66f4\u3092\u898b\u843d\u3068\u3059<\/td>\n<\/tr>\n<\/table>\n<hr>\n<h3>\u300c\u5897\u3084\u3059\u524d\u306b\u78ba\u8a8d\u3059\u308b\u300d\u304c\u3001\u7d50\u679c\u3068\u3057\u3066\u65e9\u3044<\/h3>\n<p>ENFILE \u3092\u524d\u306b\u3059\u308b\u3068\u3001file-max \u3092\u5f15\u304d\u4e0a\u3052\u308b\u5224\u65ad\u304c\u982d\u306b\u6d6e\u304b\u3073\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u30ab\u30fc\u30cd\u30eb\u6587\u66f8\u3067\u3082\u3001file handle \u304c\u8db3\u308a\u306a\u3044\u30a8\u30e9\u30fc\u304c\u591a\u3044\u5834\u5408\u306f\u3053\u306e\u5236\u9650\u3092\u4e0a\u3052\u305f\u304f\u306a\u308b\u5834\u9762\u304c\u3042\u308b\u3068\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u540c\u3058\u6587\u66f8\u306f\u3001\/proc\/sys\/fs \u306e\u8a2d\u5b9a\u306f\u30b7\u30b9\u30c6\u30e0\u3092\u5d29\u3059\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u5b9f\u969b\u306b\u8abf\u6574\u3059\u308b\u524d\u306b\u6587\u66f8\u3068\u30bd\u30fc\u30b9\u3092\u8aad\u3080\u3079\u304d\u3060\u3068\u3082\u660e\u8a18\u3057\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a Linux \u672c\u4f53\u306e\u8aac\u660e\u3068\u3057\u3066\u3082\u3001\u300c\u3059\u3050\u5909\u66f4\u3059\u308b\u300d\u3088\u308a\u300c\u610f\u5473\u3092\u7406\u89e3\u3057\u3066\u304b\u3089\u89e6\u308b\u300d\u65b9\u304c\u524d\u63d0\u3067\u3059\u3002\u3053\u3053\u306f\u672c\u756a\u74b0\u5883\u307b\u3069\u91cd\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u8a2d\u5b9a\u5909\u66f4\u304c\u7c21\u5358\u306b\u898b\u3048\u3066\u3082\u3001\u305d\u306e\u88cf\u3067\u306f\u30e1\u30e2\u30ea\u6d88\u8cbb\u3001\u540c\u5c45\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3001\u76e3\u8996\u8a2d\u8a08\u3001\u969c\u5bb3\u6642\u306e\u8aac\u660e\u8cac\u4efb\u304c\u3064\u3044\u3066\u56de\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u73fe\u5834\u3067\u306f\u3001\u5897\u3084\u3059\u524d\u306b\u78ba\u8a8d\u3057\u305f\u3060\u3051\u3067\u4e89\u70b9\u304c\u304b\u306a\u308a\u7d5e\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070 file-nr \u304c file-max \u306b\u307b\u307c\u5f35\u308a\u3064\u3044\u3066\u3044\u308b\u306a\u3089\u3001ENFILE \u306e\u6574\u5408\u6027\u306f\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002\u9006\u306b file-nr \u306b\u307e\u3060\u4f59\u88d5\u304c\u3042\u308b\u306e\u306b\u300cToo many open files\u300d\u3068\u898b\u3048\u3066\u3044\u308b\u306a\u3089\u3001\u500b\u5225\u30d7\u30ed\u30bb\u30b9\u306e RLIMIT_NOFILE \u3084\u3001\u5b9f\u969b\u306b\u306f\u5225\u306e errno \u304c\u6df7\u3058\u3063\u3066\u3044\u308b\u53ef\u80fd\u6027\u3092\u8003\u3048\u305f\u65b9\u304c\u81ea\u7136\u3067\u3059\u3002getrlimit(2) \u3067\u306f RLIMIT_NOFILE \u306f\u30d7\u30ed\u30bb\u30b9\u304c\u958b\u3051\u308b file descriptor \u306e\u4e0a\u9650\u3067\u3042\u308a\u3001\u3053\u306e\u4e0a\u9650\u8d85\u904e\u3067\u306f EMFILE \u304c\u8fd4\u308b\u3068\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u307e\u3067\u78ba\u8a8d\u3067\u304d\u308c\u3070\u3001\u5c11\u306a\u304f\u3068\u3082\u300c\u30db\u30b9\u30c8\u5168\u4f53\u3092\u898b\u308b\u3079\u304d\u304b\u300d\u300c\u307e\u305a\u5f53\u8a72\u30d7\u30ed\u30bb\u30b9\u3092\u898b\u308b\u3079\u304d\u304b\u300d\u3068\u3044\u3046\u5206\u5c90\u306f\u4f5c\u308c\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u30ab\u30fc\u30cd\u30eb\u6587\u66f8\u3067\u306f file-max \u8d85\u904e\u6642\u306b kernel log \u306b \u201cVFS: file-max limit &lt;number&gt; reached\u201d \u304c\u51fa\u308b\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u898b\u3048\u308b\u5834\u5408\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e file handle \u4e0a\u9650\u306b\u89e6\u308c\u3066\u3044\u308b\u53ef\u80fd\u6027\u306f\u4e00\u6bb5\u3068\u9ad8\u307e\u308a\u307e\u3059\u3002\u3082\u3061\u308d\u3093\u3001\u3053\u308c\u3060\u3051\u3067\u6839\u672c\u539f\u56e0\u306f\u5206\u304b\u308a\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u300c\u4e0a\u9650\u306b\u5b9f\u969b\u306b\u89e6\u308c\u3066\u3044\u308b\u304b\u300d\u3092\u793a\u3059\u5f37\u3044\u6750\u6599\u306b\u306f\u306a\u308a\u307e\u3059\u3002\u9006\u306b\u3053\u306e\u30ed\u30b0\u304c\u306a\u304f\u3001\u3057\u304b\u3082 file-nr \u306b\u5927\u304d\u306a\u4f59\u88d5\u304c\u3042\u308b\u306a\u3089\u3001ENFILE \u65ad\u5b9a\u3067\u306f\u306a\u304f\u5225\u306e\u53ef\u80fd\u6027\u3092\u614e\u91cd\u306b\u6d17\u3046\u65b9\u304c\u53ce\u675f\u3057\u3084\u3059\u3044\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>30\u79d2\u3067\u6574\u7406\u3057\u305f\u3044\u300c\u3044\u307e\u3084\u308b\u3053\u3068\u300d\u3068\u300c\u307e\u3060\u3084\u3089\u306a\u3044\u3053\u3068\u300d<\/h3>\n<p>\u521d\u52d5\u3067\u306f\u3001\u3084\u308b\u3053\u3068\u3068\u3001\u307e\u3060\u3084\u3089\u306a\u3044\u3053\u3068\u3092\u5206\u3051\u308b\u3060\u3051\u3067\u3082\u7a7a\u6c17\u304c\u843d\u3061\u7740\u304d\u307e\u3059\u3002\u3084\u308b\u3053\u3068\u306f\u3001errno \u306e\u78ba\u8a8d\u3001file-nr \u3068 file-max \u306e\u78ba\u8a8d\u3001\u76f4\u8fd1\u5909\u66f4\u306e\u628a\u63e1\u3001\u5f71\u97ff\u7bc4\u56f2\u306e\u6982\u89b3\u628a\u63e1\u3067\u3059\u3002\u307e\u3060\u3084\u3089\u306a\u3044\u3053\u3068\u306f\u3001\u6839\u62e0\u306e\u8584\u3044\u4e00\u62ec\u8a2d\u5b9a\u5909\u66f4\u3001\u5468\u8fba\u30b7\u30b9\u30c6\u30e0\u307e\u3067\u542b\u3081\u305f\u7121\u8a08\u753b\u306a\u518d\u8d77\u52d5\u3001\u8cac\u4efb\u7bc4\u56f2\u304c\u66d6\u6627\u306a\u307e\u307e\u306e\u6a29\u9650\u5909\u66f4\u3067\u3059\u3002\u3053\u308c\u3089\u3092\u533a\u5225\u305b\u305a\u306b\u9032\u3081\u308b\u3068\u3001\u969c\u5bb3\u305d\u306e\u3082\u306e\u3088\u308a\u3082\u3001\u793e\u5185\u8abf\u6574\u3084\u8aac\u660e\u30b3\u30b9\u30c8\u304c\u81a8\u3089\u307f\u307e\u3059\u3002BtoB \u306e\u904b\u7528\u73fe\u5834\u3067\u306f\u3001\u6280\u8853\u7684\u306b\u6b63\u3057\u3044\u3060\u3051\u3067\u306a\u304f\u3001\u300c\u306a\u305c\u305d\u306e\u9806\u5e8f\u3067\u5224\u65ad\u3057\u305f\u304b\u300d\u3092\u8a00\u8449\u306b\u3067\u304d\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u305d\u306e\u610f\u5473\u3067\u3082\u300130 \u79d2\u3067\u4e89\u70b9\u3092\u7d5e\u308b\u6574\u7406\u306f\u3001\u6280\u8853\u4f5c\u696d\u3067\u3042\u308b\u3068\u540c\u6642\u306b\u3001\u5f8c\u306e\u8aac\u660e\u8a2d\u8a08\u3067\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>errno \u304c ENFILE \u304b EMFILE \u304b\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n<li>file-nr \u3068 file-max \u306e\u95a2\u4fc2\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n<li>\u8907\u6570\u30b5\u30fc\u30d3\u30b9\u306b\u6ce2\u53ca\u3057\u3066\u3044\u308b\u304b\u3092\u898b\u308b<\/li>\n<li>\u76f4\u8fd1\u306e\u30c7\u30d7\u30ed\u30a4\u3001\u63a5\u7d9a\u6570\u5897\u52a0\u3001\u30ed\u30b0\u30fb\u76e3\u8996\u5909\u66f4\u3092\u4e26\u3079\u308b<\/li>\n<li>\u5909\u66f4\u306f\u3001\u5f71\u97ff\u7bc4\u56f2\u304c\u8aad\u3081\u308b\u3082\u306e\u3060\u3051\u306b\u7d5e\u3063\u3066\u691c\u8a0e\u3059\u308b<\/li>\n<\/ul>\n<p>\u3053\u306e\u6bb5\u968e\u3067\u306e\u76ee\u7684\u306f\u3001\u539f\u56e0\u306e\u8a00\u3044\u5207\u308a\u3067\u306f\u306a\u304f\u3001\u53ce\u675f\u306b\u5411\u304b\u3046\u30ec\u30fc\u30eb\u3092\u5916\u3055\u306a\u3044\u3053\u3068\u3067\u3059\u3002\u3068\u304f\u306b\u30ec\u30ac\u30b7\u30fc\u30b7\u30b9\u30c6\u30e0\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u76e3\u67fb\u8981\u4ef6\u3001\u672c\u756a\u30c7\u30fc\u30bf\u3001\u8907\u6570\u30d9\u30f3\u30c0\u30fc\u304c\u7d61\u3080\u69cb\u6210\u3067\u306f\u3001\u4e00\u822c\u8ad6\u3060\u3051\u3067\u5909\u66f4\u5224\u65ad\u307e\u3067\u9032\u3080\u306e\u306f\u5371\u3046\u3044\u5834\u9762\u304c\u3042\u308a\u307e\u3059\u3002\u521d\u52d5\u306e\u78ba\u8a8d\u307e\u3067\u306f\u5185\u88fd\u3067\u3067\u304d\u3066\u3082\u3001\u305d\u306e\u5148\u306e\u518d\u5272\u5f53\u3001\u4e0a\u9650\u8abf\u6574\u3001\u6839\u672c\u539f\u56e0\u5206\u6790\u3001\u518d\u767a\u9632\u6b62\u8a2d\u8a08\u306f\u3001\u6848\u4ef6\u306e\u524d\u63d0\u6761\u4ef6\u3067\u7b54\u3048\u304c\u5909\u308f\u308a\u307e\u3059\u3002\u5224\u65ad\u306b\u8ff7\u3046\u5834\u5408\u3084\u3001\u3069\u3053\u307e\u3067\u81ea\u529b\u3067\u9032\u3081\u3066\u3088\u3044\u304b\u7dda\u5f15\u304d\u304c\u96e3\u3057\u3044\u5834\u5408\u306b\u306f\u3001<strong>\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240<\/strong>\u3078\u306e\u76f8\u8ac7\u30fb\u4f9d\u983c\u3092\u691c\u8a0e\u3059\u308b\u610f\u5473\u304c\u3042\u308a\u307e\u3059\u3002\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u306f https:\/\/jouhou.main.jp\/?page_id=26983 \u3001\u96fb\u8a71\u306f 0120-838-831 \u3067\u3059\u3002\u4e00\u822c\u8ad6\u3067\u898b\u3048\u308b\u7bc4\u56f2\u3092\u8d85\u3048\u305f\u3068\u3053\u308d\u3067\u7121\u7406\u3092\u3057\u306a\u3044\u3053\u3068\u304c\u3001\u7d50\u679c\u3068\u3057\u3066\u88ab\u5bb3\u6700\u5c0f\u5316\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002<\/p>\n<p>ENFILE \u306e\u521d\u52d5\u3067\u306f\u3001\u6d3e\u624b\u306a\u4f5c\u696d\u3088\u308a\u3082\u3001\u4e89\u70b9\u3092\u9759\u304b\u306b\u7d5e\u308b\u3053\u3068\u306e\u65b9\u304c\u4fa1\u5024\u304c\u3042\u308a\u307e\u3059\u3002file-max \u3068\u73fe\u5834\u306e\u75c7\u72b6\u3092\u5207\u308a\u5206\u3051\u3066\u8003\u3048\u308b\u3060\u3051\u3067\u3082\u3001\u30ce\u30a4\u30ba\u306f\u304b\u306a\u308a\u6e1b\u308a\u307e\u3059\u3002\u307e\u305a\u306f\u300c\u3069\u306e\u5c64\u306e\u4e0a\u9650\u304b\u300d\u3092\u5916\u3055\u306a\u3044\u3053\u3068\u3002\u305d\u308c\u304c\u3001\u305d\u306e\u5f8c\u306e\u8a3a\u65ad\u306b\u3082\u793e\u5185\u8aac\u660e\u306b\u3082\u52b9\u3044\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\u3000<\/p>\n<p> <a id=\"sec04\"><\/a> <\/p>\n<h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u7b2c4\u7ae0\uff1a\u6700\u5c0f\u5909\u66f4\u3067\u518d\u5272\u5f53\u3092\u8003\u3048\u308b\u2015\u2015\u5897\u3084\u3059\u524d\u306b\u898b\u308b\u3079\u304d FD \u6d88\u8cbb\u6e90\u3068\u5f71\u97ff\u7bc4\u56f2<\/h2>\n<p>ENFILE (23) \u3092\u524d\u306b\u3059\u308b\u3068\u3001\u300c\u3067\u306f file-max \u3092\u5897\u3084\u305d\u3046\u300d\u3068\u3044\u3046\u8a71\u304c\u51fa\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u305f\u3057\u304b\u306b Linux \u30ab\u30fc\u30cd\u30eb\u306e\u6587\u66f8\u3067\u306f\u3001file-max \u306f\u30ab\u30fc\u30cd\u30eb\u304c\u5272\u308a\u5f53\u3066\u308b file handle \u306e\u6700\u5927\u6570\u3067\u3042\u308a\u3001file handle \u67af\u6e07\u306b\u95a2\u3059\u308b\u30a8\u30e9\u30fc\u304c\u591a\u3044\u5834\u5408\u306b\u306f\u8abf\u6574\u5bfe\u8c61\u306b\u306a\u308a\u5f97\u307e\u3059\u3002\u3051\u308c\u3069\u3082\u540c\u3058\u6587\u66f8\u306f\u3001\/proc\/sys\/fs \u306e\u5024\u306f\u30b7\u30b9\u30c6\u30e0\u3092\u58ca\u3057\u5f97\u308b\u305f\u3081\u3001\u5b9f\u969b\u306b\u8abf\u6574\u3059\u308b\u524d\u306b\u6587\u66f8\u3084\u30bd\u30fc\u30b9\u3092\u78ba\u8a8d\u3059\u3079\u304d\u3060\u3068\u660e\u8a18\u3057\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u5897\u3084\u3059\u5224\u65ad\u305d\u306e\u3082\u306e\u304c\u7981\u6b62\u3068\u3044\u3046\u3053\u3068\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u5c11\u306a\u304f\u3068\u3082\u300c\u6839\u62e0\u304c\u5f31\u3044\u307e\u307e\u5e83\u3052\u308b\u300d\u65b9\u5411\u306f Linux \u81ea\u8eab\u306e\u8aac\u660e\u3068\u3082\u76f8\u6027\u304c\u3088\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u3060\u304b\u3089\u3053\u305d\u3001\u3053\u306e\u7ae0\u3067\u306f\u300c\u518d\u5272\u5f53\u300d\u3068\u3044\u3046\u8003\u3048\u65b9\u3001\u3059\u306a\u308f\u3061\u9650\u754c\u5024\u3092\u305f\u3060\u62bc\u3057\u4e0a\u3052\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u3069\u306e\u6d88\u8cbb\u6e90\u306b\u3069\u308c\u3060\u3051\u4f59\u88d5\u3092\u6301\u305f\u305b\u308b\u3079\u304d\u304b\u3092\u898b\u76f4\u3059\u8996\u70b9\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u3044\u3046\u518d\u5272\u5f53\u306f\u3001\u8a2d\u5b9a\u9805\u76ee\u306e\u540d\u524d\u3068\u3057\u3066\u306e\u6a5f\u80fd\u3067\u306f\u306a\u304f\u3001\u5b9f\u52d9\u4e0a\u306e\u8003\u3048\u65b9\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u30db\u30b9\u30c8\u5168\u4f53\u3067 file handle \u3092\u3069\u308c\u3060\u3051\u4f7f\u3063\u3066\u3044\u308b\u306e\u304b\u3001\u3069\u306e\u30d7\u30ed\u30bb\u30b9\u7fa4\u304c\u7d99\u7d9a\u7684\u306b\u5897\u3084\u3057\u3066\u3044\u308b\u306e\u304b\u3001\u3042\u308b\u3044\u306f\u4e00\u6642\u7684\u306a\u30d4\u30fc\u30af\u3067\u62bc\u3057\u4e0a\u304c\u3063\u3066\u3044\u308b\u3060\u3051\u306a\u306e\u304b\u3092\u898b\u305f\u3046\u3048\u3067\u3001\u5fc5\u8981\u306a\u3089\u4e0a\u9650\u3001\u30ef\u30fc\u30ab\u30fc\u6570\u3001\u63a5\u7d9a\u4fdd\u6301\u6642\u9593\u3001\u30ed\u30b0\u3084\u76e3\u8996\u306e\u69cb\u6210\u3092\u542b\u3081\u3066\u5168\u4f53\u306e\u914d\u5206\u3092\u898b\u76f4\u3059\u3001\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002ENFILE \u306f open(2) \u306e\u5b9a\u7fa9\u4e0a\u300c\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e open files \u306e\u4e0a\u9650\u5230\u9054\u300d\u3067\u3042\u308a\u3001\u3042\u308b 1 \u3064\u306e\u30d7\u30ed\u30bb\u30b9\u3060\u3051\u306b\u9589\u3058\u305f\u8a71\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u6700\u5c0f\u5909\u66f4\u3067\u53ce\u675f\u3055\u305b\u305f\u3044\u306e\u3067\u3042\u308c\u3070\u3001\u307e\u305a\u300c\u4f55\u304c\u7a4d\u307f\u4e0a\u304c\u3063\u3066\u3044\u308b\u304b\u300d\u3092\u898b\u308b\u65b9\u304c\u3001\u7d50\u679c\u3068\u3057\u3066\u5909\u66f4\u91cf\u3092\u5c0f\u3055\u304f\u6291\u3048\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u898b\u308b\u3079\u304d\u306a\u306e\u306f\u300c\u8a2d\u5b9a\u5024\u300d\u3060\u3051\u3067\u306f\u306a\u304f\u300c\u6d88\u8cbb\u306e\u5185\u8a33\u300d\u3067\u3059<\/h3>\n<p>\u5b9f\u52d9\u3067\u306f\u3001file-max \u306e\u6570\u5024\u3060\u3051\u3092\u898b\u3066\u5b89\u5fc3\u3057\u305f\u308a\u3001\u9006\u306b\u5371\u6a5f\u611f\u3092\u5f37\u3081\u305f\u308a\u3057\u304c\u3061\u3067\u3059\u3002\u3057\u304b\u3057 file-max \u306f\u3042\u304f\u307e\u3067\u4e0a\u9650\u3067\u3042\u308a\u3001\u672c\u5f53\u306b\u77e5\u308a\u305f\u3044\u306e\u306f\u3001\u3069\u306e\u5c64\u304c\u3069\u306e\u3088\u3046\u306b file handle \u3092\u6d88\u8cbb\u3057\u3066\u3044\u308b\u304b\u3067\u3059\u3002Linux \u3067\u306f file descriptor \u304c\u901a\u5e38\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u3067\u306a\u304f\u30bd\u30b1\u30c3\u30c8\u3001\u30d1\u30a4\u30d7\u306a\u3069\u306b\u3082\u4f7f\u308f\u308c\u308b\u305f\u3081\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30b3\u30fc\u30c9\u3001\u5916\u90e8\u63a5\u7d9a\u3001\u30ed\u30b0\u51e6\u7406\u3001\u76e3\u8996\u3001\u30b5\u30a4\u30c9\u30ab\u30fc\u3001\u30d0\u30c3\u30c1\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u5468\u8fba\u306e\u51e6\u7406\u304c\u540c\u6642\u306b\u7a4d\u307f\u4e0a\u304c\u308b\u3068\u3001\u898b\u304b\u3051\u4ee5\u4e0a\u306b\u901f\u304f\u4e0a\u9650\u3078\u8fd1\u3065\u304f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002ENFILE \u306e\u5834\u9762\u3067\u306f\u3001\u8a2d\u5b9a\u5024\u306e\u5927\u5c0f\u3088\u308a\u3001\u3069\u306e\u6d88\u8cbb\u6e90\u304c\u7d99\u7d9a\u7684\u306b\u5897\u3048\u3066\u3044\u308b\u304b\u3001\u6025\u5897\u306e\u304d\u3063\u304b\u3051\u304c\u76f4\u8fd1\u5909\u66f4\u3068\u7d50\u3073\u3064\u304f\u304b\u3001\u6ce2\u53ca\u7bc4\u56f2\u304c\u30db\u30b9\u30c8\u5168\u4f53\u306b\u5e83\u304c\u3063\u3066\u3044\u308b\u304b\u3001\u3068\u3044\u3063\u305f\u5185\u8a33\u306e\u65b9\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>\u30ab\u30fc\u30cd\u30eb\u6587\u66f8\u3067\u306f \/proc\/sys\/fs\/file-nr \u306e 3 \u5024\u306b\u3064\u3044\u3066\u3001\u5272\u308a\u5f53\u3066\u6e08\u307f file handle \u6570\u3001\u5272\u308a\u5f53\u3066\u6e08\u307f\u3060\u304c\u672a\u4f7f\u7528\u306e file handle \u6570\u3001\u6700\u5927\u6570\u3092\u8868\u3059\u3068\u3057\u3064\u3064\u3001Linux 2.6 \u4ee5\u964d\u3067\u306f 2 \u756a\u76ee\u306e\u5024\u306f\u5e38\u306b 0 \u3067\u3042\u308b\u3068\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u5b9f\u969b\u306e\u5224\u65ad\u3067\u306f 1 \u756a\u76ee\u306e\u5272\u308a\u5f53\u3066\u6e08\u307f\u7dcf\u6570\u3068 3 \u756a\u76ee\u306e\u6700\u5927\u6570\u306e\u95a2\u4fc2\u3092\u898b\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u3002\u3053\u306e\u898b\u65b9\u306b\u6163\u308c\u3066\u3044\u306a\u3044\u3068\u3001\u53e4\u3044\u8a18\u4e8b\u3084\u904e\u53bb\u306e\u793e\u5185\u30e1\u30e2\u3092\u305d\u306e\u307e\u307e\u6d41\u7528\u3057\u3066\u300c\u7a7a\u304d\u304c\u307e\u3060\u3042\u308b\u306f\u305a\u300d\u3068\u8aa4\u8aad\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002file-nr \u306f\u5358\u306a\u308b\u53c2\u8003\u5024\u3067\u306f\u306a\u304f\u3001\u300c\u4e0a\u9650\u306b\u8fd1\u3044\u306e\u304b\u300d\u300c\u307e\u3060\u8ddd\u96e2\u306f\u3042\u308b\u304c\u5897\u52a0\u50be\u5411\u306a\u306e\u304b\u300d\u3092\u5224\u65ad\u3059\u308b\u305f\u3081\u306e\u8d77\u70b9\u3068\u3057\u3066\u6271\u3046\u65b9\u304c\u3001\u73fe\u5834\u3067\u306f\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u300c\u5897\u3084\u3059\u300d\u5224\u65ad\u306e\u524d\u306b\u6574\u7406\u3057\u305f\u3044\u4e3b\u306a\u6d88\u8cbb\u6e90<\/h3>\n<p>FD \u6d88\u8cbb\u6e90\u3092\u6574\u7406\u3059\u308b\u3068\u304d\u3001\u5b9f\u52d9\u3067\u306f\u5927\u304d\u304f\u5206\u3051\u3066 4 \u3064\u306e\u89b3\u70b9\u304c\u5f79\u306b\u7acb\u3061\u307e\u3059\u30021 \u3064\u76ee\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u81ea\u8eab\u3067\u3059\u3002\u30ef\u30fc\u30ab\u30fc\u6570\u3001\u63a5\u7d9a\u30d7\u30fc\u30eb\u3001\u958b\u304d\u3063\u3071\u306a\u3057\u306e\u30d5\u30a1\u30a4\u30eb\u3001\u9589\u3058\u5fd8\u308c\u3001\u4f8b\u5916\u6642\u306e\u5f8c\u59cb\u672b\u6f0f\u308c\u306a\u3069\u306f\u3001EMFILE \u3060\u3051\u3067\u306a\u304f ENFILE \u306e\u5f15\u304d\u91d1\u306b\u3082\u306a\u308a\u5f97\u307e\u3059\u30022 \u3064\u76ee\u306f\u901a\u4fe1\u3067\u3059\u3002\u5916\u90e8 API\u3001DB\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u30ad\u30e5\u30fc\u3001\u5185\u90e8\u30b5\u30fc\u30d3\u30b9\u9593\u901a\u4fe1\u3001\u9577\u5bff\u547d\u63a5\u7d9a\u3001\u518d\u63a5\u7d9a\u30eb\u30fc\u30d7\u306a\u3069\u304c\u91cd\u306a\u308b\u3068\u3001\u30bd\u30b1\u30c3\u30c8\u7531\u6765\u306e file descriptor \u304c\u5897\u3048\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u30023 \u3064\u76ee\u306f\u904b\u7528\u5468\u8fba\u3067\u3059\u3002\u30ed\u30b0\u8ee2\u9001\u3001\u76e3\u8996\u3001\u30c8\u30ec\u30fc\u30b9\u3001\u30b5\u30a4\u30c9\u30ab\u30fc\u3001\u30b8\u30e7\u30d6\u7ba1\u7406\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u88fd\u54c1\u306a\u3069\u306f\u3001\u696d\u52d9\u30a2\u30d7\u30ea\u304b\u3089\u306f\u898b\u3048\u306b\u304f\u3044\u4e00\u65b9\u3067\u3001\u5168\u4f53\u306e\u6d88\u8cbb\u3092\u5e95\u4e0a\u3052\u3057\u307e\u3059\u30024 \u3064\u76ee\u306f\u57fa\u76e4\u3067\u3059\u3002\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3084\u30b3\u30f3\u30c6\u30ca\u30db\u30b9\u30c8\u3067\u306f\u3001\u500b\u5225\u30b5\u30fc\u30d3\u30b9\u304b\u3089\u306f\u898b\u3048\u306a\u3044\u5834\u6240\u3067 file handle \u304c\u7a4d\u307f\u4e0a\u304c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002ENFILE \u3067\u306f\u3001\u3053\u306e 4 \u3064\u3092\u6a2a\u65ad\u3057\u3066\u898b\u306a\u3044\u3068\u3001\u5897\u3084\u3057\u305f\u6570\u5024\u304c\u3059\u3050\u518d\u3073\u98df\u308f\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<table style=\"border-collapse:collapse; width:100%;\">\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px;\">\u6d88\u8cbb\u6e90<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px;\">\u5178\u578b\u4f8b<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px;\">\u5897\u3084\u3059\u524d\u306b\u78ba\u8a8d\u3057\u305f\u3044\u3053\u3068<\/th>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30ef\u30fc\u30ab\u30fc\u3001\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u3001\u63a5\u7d9a\u30d7\u30fc\u30eb\u3001\u5f8c\u59cb\u672b\u6f0f\u308c<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u7d99\u7d9a\u5897\u52a0\u304b\u3001\u4e00\u6642\u30d4\u30fc\u30af\u304b\u3001\u76f4\u8fd1\u30ea\u30ea\u30fc\u30b9\u3068\u306e\u76f8\u95a2\u304c\u3042\u308b\u304b<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u901a\u4fe1<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">DB \u63a5\u7d9a\u3001HTTP keep-alive\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u30f3\u30b0\u3001\u518d\u63a5\u7d9a\u30eb\u30fc\u30d7<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u63a5\u7d9a\u6570\u306e\u6025\u5897\u3001\u5f85\u3061\u884c\u5217\u3001\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u8a2d\u8a08\u306b\u504f\u308a\u304c\u306a\u3044\u304b<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u904b\u7528\u5468\u8fba<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30ed\u30b0\u53ce\u96c6\u3001\u76e3\u8996\u3001\u30c8\u30ec\u30fc\u30b7\u30f3\u30b0\u3001\u30b5\u30a4\u30c9\u30ab\u30fc<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u672c\u4f53\u4ee5\u5916\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u5e95\u4e0a\u3052\u3057\u3066\u3044\u306a\u3044\u304b<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u57fa\u76e4<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u30b3\u30f3\u30c6\u30ca\u30db\u30b9\u30c8\u3001\u540c\u5c45\u30ef\u30fc\u30af\u30ed\u30fc\u30c9<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30db\u30b9\u30c8\u5168\u4f53\u3067\u898b\u305f\u3068\u304d\u306e\u5897\u3048\u65b9\u306b\u504f\u308a\u304c\u306a\u3044\u304b<\/td>\n<\/tr>\n<\/table>\n<p>\u3053\u306e\u6574\u7406\u306e\u72d9\u3044\u306f\u3001\u300c\u72af\u4eba\u63a2\u3057\u300d\u3092\u3059\u308b\u3053\u3068\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3080\u3057\u308d\u3001\u3044\u307e\u6700\u5c0f\u5909\u66f4\u3067\u3069\u3053\u3092\u898b\u308c\u3070\u3088\u3044\u304b\u3092\u5b9a\u3081\u308b\u3053\u3068\u3067\u3059\u3002\u73fe\u5834\u3067\u306f\u30011 \u3064\u306e\u969c\u5bb3\u304c\u8907\u6570\u306e\u5c0f\u3055\u306a\u5897\u52a0\u8981\u56e0\u306e\u5408\u7b97\u3067\u8d77\u304d\u308b\u3053\u3068\u304c\u73cd\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u5834\u5408\u3001file-max \u3060\u3051\u5897\u3084\u3057\u3066\u3082\u3001\u6839\u672c\u306e\u50be\u304d\u306f\u5909\u308f\u3089\u306a\u3044\u305f\u3081\u3001\u6642\u9593\u3092\u7f6e\u3044\u3066\u518d\u3073\u540c\u3058\u58c1\u306b\u5f53\u305f\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u6570\u5024\u5909\u66f4\u3088\u308a\u5148\u306b\u6d88\u8cbb\u6e90\u3092\u6982\u89b3\u3067\u304d\u3066\u3044\u308c\u3070\u3001\u300c\u3069\u3053\u306b\u5c11\u3057\u6b6f\u6b62\u3081\u3092\u304b\u3051\u308b\u304b\u300d\u300c\u3069\u3053\u306f\u4eca\u3059\u3050\u89e6\u3089\u306a\u3044\u65b9\u304c\u3088\u3044\u304b\u300d\u304c\u898b\u3048\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>file-max \u3068 nr_open\u3001RLIMIT_NOFILE \u306e\u95a2\u4fc2\u3092\u6df7\u540c\u3057\u306a\u3044<\/h3>\n<p>\u518d\u5272\u5f53\u3092\u8003\u3048\u308b\u3046\u3048\u3067\u3082\u3046 1 \u3064\u91cd\u8981\u306a\u306e\u304c\u3001file-max\u3001nr_open\u3001RLIMIT_NOFILE \u3092\u5225\u7269\u3068\u3057\u3066\u6271\u3046\u3053\u3068\u3067\u3059\u3002\u30ab\u30fc\u30cd\u30eb\u6587\u66f8\u3067\u306f\u3001\/proc\/sys\/fs\/nr_open \u306f\u300c1 \u30d7\u30ed\u30bb\u30b9\u304c\u78ba\u4fdd\u3067\u304d\u308b file-handles \u306e\u6700\u5927\u6570\u300d\u3092\u793a\u3057\u3001\u65e2\u5b9a\u5024\u306f 1024\u00d71024\u3001\u5b9f\u969b\u306e\u4e0a\u9650\u306f RLIMIT_NOFILE \u306b\u4f9d\u5b58\u3059\u308b\u3068\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4e00\u65b9\u3067 getrlimit(2) \u306f\u3001RLIMIT_NOFILE \u3092\u300c\u305d\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u958b\u3051\u308b\u6700\u5927 file descriptor \u756a\u53f7\u3088\u308a 1 \u5927\u304d\u3044\u5024\u300d\u3068\u5b9a\u7fa9\u3057\u3001\u3053\u308c\u3092\u8d85\u3048\u308b\u3068 EMFILE \u304c\u8fd4\u308b\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u3055\u3089\u306b\u540c\u30de\u30cb\u30e5\u30a2\u30eb\u3067\u306f\u3001\u7279\u6a29\u306e\u306a\u3044\u30d7\u30ed\u30bb\u30b9\u306f hard RLIMIT_NOFILE \u3092 \/proc\/sys\/fs\/nr_open \u3092\u8d85\u3048\u3066\u5f15\u304d\u4e0a\u3052\u3089\u308c\u306a\u3044\u3068\u3082\u8a18\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30db\u30b9\u30c8\u5168\u4f53\u306e ENFILE \u3092\u898b\u3066\u3044\u308b\u306e\u306b\u3001\u30d7\u30ed\u30bb\u30b9\u5358\u4f4d\u306e RLIMIT_NOFILE \u3060\u3051\u89e6\u3063\u3066\u3082\u8ad6\u70b9\u304c\u305a\u308c\u307e\u3059\u3057\u3001\u305d\u306e\u9006\u3082\u8d77\u3053\u308a\u5f97\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u9055\u3044\u306f\u3001\u904b\u7528\u5224\u65ad\u3067\u3082\u52b9\u3044\u3066\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u4e00\u90e8\u30b5\u30fc\u30d3\u30b9\u306e RLIMIT_NOFILE \u304c\u4f4e\u3059\u304e\u308b\u306a\u3089\u3001\u305d\u3053\u306f\u500b\u5225\u8abf\u6574\u306e\u4f59\u5730\u304c\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u30db\u30b9\u30c8\u5168\u4f53\u3067 file handle \u304c\u903c\u8feb\u3057\u3066\u3044\u308b\u306a\u3089\u3001\u500b\u5225\u30d7\u30ed\u30bb\u30b9\u306e\u4e0a\u9650\u3092\u3055\u3089\u306b\u5e83\u3052\u308b\u3053\u3068\u306f\u3001\u5168\u4f53\u306e\u62bc\u3057\u5408\u3044\u3092\u5f37\u3081\u308b\u65b9\u5411\u306b\u3082\u306a\u308a\u304b\u306d\u307e\u305b\u3093\u3002\u53cd\u5bfe\u306b\u3001host \u5074 file-max \u306b\u307e\u3060\u4f59\u88d5\u304c\u3042\u308b\u306e\u306b EMFILE \u3060\u3051\u304c\u51fa\u3066\u3044\u308b\u306a\u3089\u3001\u30db\u30b9\u30c8\u5168\u4f53\u306e\u4e0a\u9650\u898b\u76f4\u3057\u306f\u4e0d\u8981\u3067\u3001\u500b\u5225\u30d7\u30ed\u30bb\u30b9\u306e\u6761\u4ef6\u898b\u76f4\u3057\u306e\u65b9\u304c\u7b4b\u304c\u3088\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u898b\u5206\u3051\u304c\u3067\u304d\u308b\u3060\u3051\u3067\u3001\u300c\u4f55\u3092\u5897\u3084\u3059\u3079\u304d\u304b\u300d\u3067\u306f\u306a\u304f\u300c\u305d\u3082\u305d\u3082\u5897\u3084\u3059\u3079\u304d\u5c64\u304b\u300d\u3068\u3044\u3046\u5224\u65ad\u306b\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u6700\u5c0f\u5909\u66f4\u3067\u306e\u8003\u3048\u65b9\u306f\u300c\u4e00\u62ec\u5909\u66f4\u300d\u3067\u306f\u306a\u304f\u300c\u8aac\u660e\u3067\u304d\u308b\u5909\u66f4\u300d<\/h3>\n<p>\u672c\u756a\u74b0\u5883\u3067\u6700\u5c0f\u5909\u66f4\u3068\u8a00\u3046\u3068\u3001\u3064\u3044\u5909\u66f4\u7b87\u6240\u306e\u5c11\u306a\u3055\u3060\u3051\u3092\u6307\u3057\u304c\u3061\u3067\u3059\u3002\u3057\u304b\u3057 BtoB \u306e\u904b\u7528\u3067\u306f\u3001\u300c\u3042\u3068\u3067\u8aac\u660e\u3067\u304d\u308b\u304b\u300d\u3082\u540c\u3058\u304f\u3089\u3044\u91cd\u8981\u3067\u3059\u3002\u306a\u305c\u305d\u306e\u5909\u66f4\u3092\u9078\u3093\u3060\u306e\u304b\u3001\u306a\u305c\u4ed6\u306e\u5909\u66f4\u306f\u898b\u9001\u3063\u305f\u306e\u304b\u3001\u3069\u306e\u5f71\u97ff\u7bc4\u56f2\u3092\u5148\u306b\u78ba\u8a8d\u3057\u305f\u306e\u304b\u304c\u8a00\u8449\u306b\u3067\u304d\u306a\u3051\u308c\u3070\u3001\u969c\u5bb3\u304c\u53ce\u675f\u3057\u3066\u3082\u793e\u5185\u8abf\u6574\u3084\u76e3\u67fb\u3067\u8ca0\u8377\u304c\u6b8b\u308a\u307e\u3059\u3002\u305d\u306e\u610f\u5473\u3067\u3001\u6700\u5c0f\u5909\u66f4\u3068\u306f\u300c\u6700\u5c0f\u306e\u624b\u6570\u300d\u3067\u306f\u306a\u304f\u3001\u300c\u6700\u5c0f\u306e\u4e0d\u78ba\u5b9f\u6027\u3067\u6e08\u3080\u5909\u66f4\u300d\u3068\u8003\u3048\u308b\u65b9\u304c\u5b9f\u52d9\u5411\u304d\u3067\u3059\u3002ENFILE \u306f\u5f71\u97ff\u7bc4\u56f2\u304c\u30db\u30b9\u30c8\u5168\u4f53\u306b\u53ca\u3073\u3084\u3059\u3044\u305f\u3081\u30011 \u7b87\u6240\u306e\u6570\u5024\u5909\u66f4\u3067\u4e00\u898b\u843d\u3061\u7740\u3044\u3066\u3082\u3001\u5225\u306e\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3084\u591c\u9593\u51e6\u7406\u3067\u518d\u71c3\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3060\u304b\u3089\u3053\u305d\u3001\u5909\u66f4\u524d\u306b\u6d88\u8cbb\u6e90\u3068\u4e0a\u9650\u306e\u5c64\u3092\u5207\u308a\u5206\u3051\u3066\u304a\u304f\u3053\u3068\u304c\u3001\u5f8c\u304b\u3089\u898b\u3066\u3082\u7b4b\u306e\u901a\u3063\u305f\u9032\u3081\u65b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30ab\u30fc\u30cd\u30eb\u6587\u66f8\u304c\u793a\u3059\u3088\u3046\u306b\u3001file-max \u8d85\u904e\u6642\u306b\u306f kernel log \u306b \u201cVFS: file-max limit &lt;number&gt; reached\u201d \u304c\u8a18\u9332\u3055\u308c\u307e\u3059\u3002\u3053\u3046\u3057\u305f\u4e8b\u5b9f\u3068\u3001file-nr \u306e\u5024\u3001\u76f4\u8fd1\u306e\u5909\u66f4\u5c65\u6b74\u3001\u5f71\u97ff\u30b5\u30fc\u30d3\u30b9\u306e\u7bc4\u56f2\u3092\u4e26\u3079\u3066\u304a\u3051\u3070\u3001\u6280\u8853\u8005\u4ee5\u5916\u306b\u3082\u8aac\u660e\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u300c\u5897\u3084\u3057\u305f\u304b\u3089\u76f4\u3063\u305f\u300d\u3067\u306f\u306a\u304f\u3001\u300c\u5168\u4f53\u4e0a\u9650\u306b\u63a5\u8fd1\u3057\u3066\u3044\u305f\u305f\u3081\u3001\u307e\u305a\u6d88\u8cbb\u6e90\u3092\u78ba\u8a8d\u3057\u3001\u5fc5\u8981\u6700\u5c0f\u9650\u306e\u5909\u66f4\u306b\u3068\u3069\u3081\u305f\u300d\u3068\u3044\u3046\u8aac\u660e\u306f\u3001\u6848\u4ef6\u5224\u65ad\u3068\u3057\u3066\u3082\u7d0d\u5f97\u3092\u5f97\u3084\u3059\u3044\u3082\u306e\u3067\u3059\u3002<\/p>\n<hr>\n<h3>\u4e00\u822c\u8ad6\u3067\u6c7a\u3081\u5207\u308c\u306a\u3044\u5834\u9762\u3067\u306f\u3001\u500b\u5225\u6848\u4ef6\u3068\u3057\u3066\u76f8\u8ac7\u3057\u305f\u65b9\u304c\u65e9\u3044<\/h3>\n<p>\u3053\u3053\u307e\u3067\u306e\u5185\u5bb9\u3067\u3001ENFILE \u306b\u5bfe\u3057\u3066\u95c7\u96f2\u306b\u6570\u5024\u3092\u5e83\u3052\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u3069\u306e\u5c64\u3067\u3001\u3069\u306e\u6d88\u8cbb\u6e90\u304c\u3001\u3069\u308c\u3060\u3051\u7a4d\u307f\u4e0a\u304c\u3063\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3079\u304d\u7406\u7531\u306f\u898b\u3048\u3066\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u5b9f\u969b\u306e\u5909\u66f4\u5224\u65ad\u306f\u4e00\u822c\u8ad6\u3060\u3051\u3067\u6c7a\u3081\u5207\u308c\u306a\u3044\u3053\u3068\u304c\u5c11\u306a\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u672c\u756a\u30c7\u30fc\u30bf\u3001\u76e3\u67fb\u8981\u4ef6\u3001\u30b3\u30f3\u30c6\u30ca\u57fa\u76e4\u3001\u8907\u6570\u30d9\u30f3\u30c0\u30fc\u3001\u591c\u9593\u30d0\u30c3\u30c1\u3001SLA \u306a\u3069\u304c\u7d61\u3080\u3068\u3001\u300c\u5c11\u3057\u5897\u3084\u3059\u300d\u306e\u610f\u5473\u3059\u3089\u6848\u4ef6\u3054\u3068\u306b\u5909\u308f\u308b\u304b\u3089\u3067\u3059\u3002\u3042\u308b\u74b0\u5883\u3067\u306f\u5b89\u5168\u306a\u5909\u66f4\u304c\u3001\u5225\u306e\u74b0\u5883\u3067\u306f\u65b0\u305f\u306a\u30ea\u30b9\u30af\u306b\u306a\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u521d\u52d5\u78ba\u8a8d\u306e\u5148\u3067\u8ff7\u3044\u304c\u51fa\u308b\u306a\u3089\u3001\u7121\u7406\u306b\u4e00\u822c\u8ad6\u3092\u5ef6\u9577\u3057\u3066\u5224\u65ad\u3059\u308b\u3088\u308a\u3001\u500b\u5225\u6848\u4ef6\u3068\u3057\u3066\u76f8\u8ac7\u3057\u305f\u65b9\u304c\u7d50\u679c\u7684\u306b\u65e9\u304f\u53ce\u675f\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3068\u304f\u306b\u3001\u3069\u306e\u6d88\u8cbb\u6e90\u304c\u4e3b\u56e0\u304b\u65ad\u5b9a\u3067\u304d\u306a\u3044\u3001\u30db\u30b9\u30c8\u5168\u4f53\u3078\u306e\u6ce2\u53ca\u304c\u898b\u3048\u3066\u3044\u308b\u3001\u5909\u66f4\u306e\u627f\u8a8d\u8cac\u4efb\u304c\u91cd\u3044\u3001\u3068\u3044\u3063\u305f\u6761\u4ef6\u304c\u91cd\u306a\u308b\u5834\u5408\u306b\u306f\u3001<strong>\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240<\/strong>\u3078\u306e\u76f8\u8ac7\u30fb\u4f9d\u983c\u3092\u691c\u8a0e\u3059\u308b\u4fa1\u5024\u304c\u3042\u308a\u307e\u3059\u3002\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u306f https:\/\/jouhou.main.jp\/?page_id=26983 \u3001\u96fb\u8a71\u306f 0120-838-831 \u3067\u3059\u3002\u4e00\u822c\u8ad6\u306e\u7bc4\u56f2\u3067\u898b\u3048\u308b\u3068\u3053\u308d\u307e\u3067\u6574\u7406\u3057\u305f\u3046\u3048\u3067\u5c02\u9580\u5bb6\u3078\u6e21\u305b\u308c\u3070\u3001\u8ffd\u52a0\u306e\u30c0\u30e1\u30fc\u30b8\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3088\u308a\u3082\u3001\u53ce\u675f\u306b\u5411\u3051\u305f\u7b4b\u9053\u3065\u304f\u308a\u306b\u6642\u9593\u3092\u4f7f\u3044\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>ENFILE \u306e\u300c\u518d\u5272\u5f53\u300d\u3068\u306f\u3001\u4e0a\u9650\u5024\u3092\u5927\u304d\u304f\u3059\u308b\u3053\u3068\u305d\u306e\u3082\u306e\u3067\u306f\u306a\u304f\u3001\u9650\u3089\u308c\u305f\u4f59\u529b\u3092\u3069\u3053\u3078\u914d\u5206\u3059\u3079\u304d\u304b\u3092\u898b\u76f4\u3059\u3053\u3068\u3067\u3059\u3002\u3060\u304b\u3089\u3053\u305d\u3001\u5897\u3084\u3059\u524d\u306b\u6d88\u8cbb\u6e90\u3068\u5f71\u97ff\u7bc4\u56f2\u3092\u898b\u308b\u3002\u305d\u306e\u9806\u756a\u304c\u5b88\u308c\u308b\u3060\u3051\u3067\u3082\u3001\u672c\u756a\u306e\u7a7a\u6c17\u306f\u304b\u306a\u308a\u843d\u3061\u7740\u304d\u307e\u3059\u3002<\/p>\n<p>\u3000<\/p>\n<p> <a id=\"sec05\"><\/a> <\/p>\n<h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u7b2c5\u7ae0\uff1a\u672c\u756a\u3067\u5d29\u3055\u306a\u3044\u9032\u3081\u65b9\u2015\u2015\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3084\u30b3\u30f3\u30c6\u30ca\u74b0\u5883\u3092\u542b\u3081\u305f\u78ba\u8a8d\u9806\u5e8f<\/h2>\n<p>ENFILE (23) \u304c\u672c\u756a\u3067\u554f\u984c\u306b\u306a\u308b\u3068\u304d\u3001\u96e3\u3057\u3055\u306f Linux \u306e\u4ed5\u7d44\u307f\u305d\u306e\u3082\u306e\u3088\u308a\u3001\u300c\u305d\u306e\u4ed5\u7d44\u307f\u304c\u3069\u306e\u7bc4\u56f2\u306b\u5f71\u97ff\u3059\u308b\u304b\u300d\u3092\u898b\u8aa4\u308a\u3084\u3059\u3044\u70b9\u306b\u3042\u308a\u307e\u3059\u3002open(2) \u3067\u306f ENFILE \u306f system-wide limit on the total number of open files \u306b\u9054\u3057\u305f\u72b6\u614b\u3068\u3055\u308c\u3066\u304a\u308a\u3001\u3042\u308b 1 \u30d7\u30ed\u30bb\u30b9\u3084 1 \u30b3\u30f3\u30c6\u30ca\u3060\u3051\u306e\u8a71\u306b\u9589\u3058\u307e\u305b\u3093\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u672c\u756a\u3067\u5d29\u3055\u306a\u3044\u9032\u3081\u65b9\u3092\u8003\u3048\u308b\u306a\u3089\u3001\u307e\u305a\u300c\u3053\u306e\u30a8\u30e9\u30fc\u304c\u3069\u306e\u5883\u754c\u3092\u307e\u305f\u3044\u3067\u6ce2\u53ca\u3057\u5f97\u308b\u304b\u300d\u3092\u5148\u306b\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u614e\u91cd\u3059\u304e\u308b\u9032\u3081\u65b9\u3067\u306f\u306a\u304f\u3001\u5f71\u97ff\u7bc4\u56f2\u3092\u904e\u5c0f\u8a55\u4fa1\u3057\u306a\u3044\u305f\u3081\u306e\u73fe\u5b9f\u7684\u306a\u9806\u756a\u3067\u3059\u3002<\/p>\n<p>\u3068\u304f\u306b\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3084\u30b3\u30f3\u30c6\u30ca\u57fa\u76e4\u304c\u95a2\u308f\u308b\u69cb\u6210\u3067\u306f\u3001\u30a2\u30d7\u30ea\u62c5\u5f53\u8005\u304b\u3089\u898b\u3048\u3066\u3044\u308b\u666f\u8272\u3068\u3001\u5b9f\u969b\u306b file handle \u3092\u6d88\u8cbb\u3057\u3066\u3044\u308b\u5c64\u304c\u4e00\u81f4\u3057\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u306e\u5185\u90e8\u3067\u898b\u3048\u308b file descriptor \u4f7f\u7528\u72b6\u6cc1\u306f\u3001\u305d\u306e\u30b3\u30f3\u30c6\u30ca\u306b\u9589\u3058\u305f\u89b3\u6e2c\u3068\u3057\u3066\u306f\u5f79\u306b\u7acb\u3061\u307e\u3059\u304c\u3001ENFILE \u81ea\u4f53\u306f\u30db\u30b9\u30c8\u5074\u306e file handle \u4e0a\u9650\u3068\u6574\u5408\u3057\u3066\u521d\u3081\u3066\u610f\u5473\u304c\u53d6\u308c\u307e\u3059\u3002\u307e\u305f\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u6271\u3046\u74b0\u5883\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u672c\u4f53\u3060\u3051\u3067\u306a\u304f\u3001\u30de\u30a6\u30f3\u30c8\u5468\u8fba\u3001\u30ed\u30b0\u3001\u76e3\u8996\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u5468\u8fba\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u632f\u308b\u821e\u3044\u307e\u3067\u542b\u3081\u3066\u898b\u308b\u5fc5\u8981\u304c\u51fa\u3066\u304d\u307e\u3059\u30021 \u7b87\u6240\u3060\u3051\u3092\u6700\u9069\u5316\u3057\u3066\u3082\u3001\u5225\u306e\u7d4c\u8def\u304b\u3089\u540c\u3058\u4e0a\u9650\u306b\u8fd1\u3065\u304f\u306a\u3089\u3001\u53ce\u675f\u306f\u9577\u7d9a\u304d\u3057\u307e\u305b\u3093\u3002<\/p>\n<hr>\n<h3>\u78ba\u8a8d\u9806\u5e8f\u3092\u8aa4\u308b\u3068\u3001\u6280\u8853\u7684\u306b\u306f\u6b63\u3057\u304f\u3066\u3082\u904b\u7528\u304c\u5d29\u308c\u308b<\/h3>\n<p>\u672c\u756a\u74b0\u5883\u3067\u306f\u3001\u8abf\u67fb\u624b\u9806\u305d\u306e\u3082\u306e\u304c\u904b\u7528\u54c1\u8cea\u306b\u76f4\u7d50\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6700\u521d\u304b\u3089\u8a2d\u5b9a\u5909\u66f4\u3092\u524d\u63d0\u306b\u3059\u308b\u3068\u3001\u300c\u306a\u305c\u305d\u306e\u5024\u3092\u5909\u3048\u305f\u306e\u304b\u300d\u300c\u3069\u306e\u5f71\u97ff\u7bc4\u56f2\u3092\u78ba\u8a8d\u3057\u305f\u306e\u304b\u300d\u306e\u8aac\u660e\u304c\u5f8c\u8ffd\u3044\u306b\u306a\u308a\u3001\u793e\u5185\u8abf\u6574\u304c\u96e3\u3057\u304f\u306a\u308a\u307e\u3059\u3002\u53cd\u5bfe\u306b\u3001\u78ba\u8a8d\u9806\u5e8f\u3092\u4e00\u5b9a\u306b\u4fdd\u3066\u3070\u3001\u6280\u8853\u8005\u4ee5\u5916\u306b\u3082\u7b4b\u9053\u3092\u793a\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u9806\u756a\u3068\u3057\u3066\u306f\u3001\u307e\u305a ENFILE \u304b EMFILE \u304b\u3092\u78ba\u8a8d\u3057\u3001\u305d\u306e\u3046\u3048\u3067 file-nr \u3068 file-max \u306e\u95a2\u4fc2\u3092\u898b\u3066\u3001\u6b21\u306b\u3069\u306e\u30b5\u30fc\u30d3\u30b9\u7fa4\u306b\u75c7\u72b6\u304c\u5e83\u304c\u3063\u3066\u3044\u308b\u304b\u3092\u4e26\u3079\u3001\u6700\u5f8c\u306b\u5171\u6709\u57fa\u76e4\u3084\u30b3\u30f3\u30c6\u30ca\u30db\u30b9\u30c8\u5074\u306e\u8996\u70b9\u3092\u91cd\u306d\u308b\u3001\u3068\u3044\u3046\u6d41\u308c\u304c\u5d29\u308c\u306b\u304f\u3044\u9032\u3081\u65b9\u3067\u3059\u3002EMFILE \u306f per-process limit\u3001ENFILE \u306f system-wide limit \u3068\u3044\u3046\u5b9a\u7fa9\u304c\u660e\u78ba\u3060\u304b\u3089\u3053\u305d\u3001\u3053\u306e\u9806\u756a\u306b\u306f\u610f\u5473\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306e\u30dd\u30a4\u30f3\u30c8\u306f\u3001\u300c\u3059\u3079\u3066\u3092\u4e00\u5ea6\u306b\u8abf\u3079\u308b\u300d\u3053\u3068\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3080\u3057\u308d\u3001\u5f71\u97ff\u7bc4\u56f2\u3092\u898b\u8aa4\u308a\u3084\u3059\u3044\u9806\u306b\u3001\u5e83\u3044\u5c64\u304b\u3089\u72ed\u3044\u5c64\u3078\u3001\u3042\u308b\u3044\u306f\u72ed\u3044\u5c64\u304b\u3089\u5e83\u3044\u5c64\u3078\u3001\u4e00\u5b9a\u306e\u7b4b\u9053\u3067\u78ba\u8a8d\u3092\u91cd\u306d\u308b\u3053\u3068\u3067\u3059\u3002\u8907\u6570\u30b5\u30fc\u30d3\u30b9\u3067\u540c\u6642\u671f\u306b\u7570\u5e38\u304c\u51fa\u3066\u3044\u308b\u306a\u3089\u30db\u30b9\u30c8\u5168\u4f53\u3092\u5148\u306b\u7591\u3046\u65b9\u304c\u81ea\u7136\u3067\u3059\u3057\u3001\u5358\u4e00\u30d7\u30ed\u30bb\u30b9\u3060\u3051\u304c\u7d99\u7d9a\u7684\u306b\u5931\u6557\u3057\u3066\u3044\u308b\u306a\u3089\u500b\u5225\u30d7\u30ed\u30bb\u30b9\u306e\u6761\u4ef6\u3092\u512a\u5148\u3057\u3066\u898b\u308b\u65b9\u304c\u52b9\u7387\u7684\u3067\u3059\u3002\u3053\u306e\u898b\u65b9\u306f\u3001\u4f5c\u696d\u91cf\u3092\u5897\u3084\u3059\u305f\u3081\u3067\u306f\u306a\u304f\u3001\u4e0d\u8981\u306a\u5909\u66f4\u3092\u6e1b\u3089\u3059\u305f\u3081\u306b\u3042\u308a\u307e\u3059\u3002\u672c\u756a\u3067\u306f\u300c\u4f55\u3092\u3057\u305f\u304b\u300d\u3088\u308a\u3082\u300c\u306a\u305c\u305d\u308c\u3060\u3051\u306b\u7d5e\u3063\u305f\u304b\u300d\u306e\u65b9\u304c\u91cd\u8981\u306b\u306a\u308b\u5834\u9762\u304c\u591a\u3044\u305f\u3081\u3067\u3059\u3002<\/p>\n<hr>\n<h3>\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u304c\u7d61\u3080\u3068\u304d\u306b\u3001\u4e00\u822c\u8ad6\u3060\u3051\u3067\u306f\u8db3\u308a\u306a\u304f\u306a\u308b\u7406\u7531<\/h3>\n<p>\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u304c\u5165\u308b\u3068\u3001ENFILE \u306e\u898b\u3048\u65b9\u306f\u3055\u3089\u306b\u8907\u96d1\u306b\u306a\u308a\u307e\u3059\u3002\u30b9\u30c8\u30ec\u30fc\u30b8\u5bb9\u91cf\u306e\u4e0d\u8db3\u3068 file handle \u306e\u4e0d\u8db3\u306f\u5225\u554f\u984c\u3067\u3059\u304c\u3001\u73fe\u5834\u3067\u306f\u540c\u3058\u300c\u958b\u3051\u306a\u3044\u300d\u300c\u8aad\u3081\u306a\u3044\u300d\u300c\u51e6\u7406\u304c\u9014\u4e2d\u3067\u6b62\u307e\u308b\u300d\u3068\u3044\u3046\u5f62\u3067\u89b3\u6e2c\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u5bb9\u91cf\u3001\u6a29\u9650\u3001\u30de\u30a6\u30f3\u30c8\u72b6\u614b\u3001\u30a2\u30d7\u30ea\u5074\u306e file descriptor \u6d88\u8cbb\u3001\u5468\u8fba\u30b5\u30fc\u30d3\u30b9\u306e\u6319\u52d5\u304c\u6df7\u3056\u3063\u3066\u898b\u3048\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002ENFILE \u306e\u5b9a\u7fa9\u81ea\u4f53\u306f system-wide limit \u3067\u5909\u308f\u308a\u307e\u305b\u3093\u304c\u3001\u3069\u3053\u3067 file handle \u304c\u7a4d\u307f\u4e0a\u304c\u3063\u3066\u3044\u308b\u304b\u3092\u8ffd\u3046\u3068\u304d\u3001\u5171\u6709\u57fa\u76e4\u306e\u7279\u6027\u3092\u77e5\u3089\u305a\u306b\u4e00\u822c\u8ad6\u3060\u3051\u3092\u5f53\u3066\u306f\u3081\u308b\u3068\u3001\u4e0d\u8981\u306a\u6a29\u9650\u5909\u66f4\u3084\u4e0d\u9069\u5207\u306a\u518d\u8d77\u52d5\u306e\u65b9\u5411\u3078\u6d41\u308c\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u6271\u3046\u74b0\u5883\u3067\u306f\u3001\u672c\u756a\u30c7\u30fc\u30bf\u3001\u76e3\u67fb\u8981\u4ef6\u3001\u4ed6\u30b7\u30b9\u30c6\u30e0\u3068\u306e\u5171\u7528\u95a2\u4fc2\u304c\u3042\u308b\u305f\u3081\u3001\u300c\u76f4\u3059\u300d\u3053\u3068\u3088\u308a\u300c\u3069\u3053\u307e\u3067\u89e6\u3063\u3066\u3088\u3044\u304b\u300d\u306e\u5224\u65ad\u304c\u91cd\u304f\u306a\u308a\u307e\u3059\u3002\u6280\u8853\u7684\u306b\u306f\u53ef\u80fd\u3067\u3082\u3001\u5951\u7d04\u4e0a\u3084\u904b\u7528\u4e0a\u306f\u907f\u3051\u308b\u3079\u304d\u5909\u66f4\u304c\u3042\u308b\u3001\u3068\u3044\u3046\u72b6\u6cc1\u306f\u73cd\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u3068\u304d\u4e00\u822c\u8ad6\u304c\u3067\u304d\u308b\u306e\u306f\u3001\u300c\u3044\u307e\u898b\u3048\u3066\u3044\u308b\u75c7\u72b6\u304c\u30db\u30b9\u30c8\u5168\u4f53\u306e file handle \u554f\u984c\u304b\u3082\u3057\u308c\u306a\u3044\u300d\u300c\u3060\u304b\u3089\u5f71\u97ff\u7bc4\u56f2\u3092\u5148\u306b\u62bc\u3055\u3048\u308b\u3079\u304d\u3060\u300d\u3068\u3044\u3046\u65b9\u5411\u3065\u3051\u307e\u3067\u3067\u3059\u3002\u5b9f\u969b\u306b\u3069\u3053\u3078\u8e0f\u307f\u8fbc\u3080\u3079\u304d\u304b\u306f\u3001\u6848\u4ef6\u3054\u3068\u306e\u53ef\u7528\u6027\u8981\u4ef6\u3068\u8cac\u4efb\u5206\u754c\u70b9\u3067\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<table style=\"border-collapse:collapse; width:100%;\">\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px;\">\u78ba\u8a8d\u5bfe\u8c61<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px;\">\u5148\u306b\u898b\u305f\u3044\u7406\u7531<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px;\">\u6025\u3044\u3067\u89e6\u3089\u306a\u3044\u65b9\u304c\u3088\u3044\u3082\u306e<\/th>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">errno \u3068\u30a2\u30d7\u30ea\u30ed\u30b0<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">ENFILE \u3068 EMFILE \u306e\u53d6\u308a\u9055\u3048\u3092\u907f\u3051\u308b\u305f\u3081<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u6839\u62e0\u306e\u306a\u3044\u4e0a\u9650\u5909\u66f4<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">file-nr \/ file-max<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30db\u30b9\u30c8\u5168\u4f53\u3067\u903c\u8feb\u3057\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5f71\u97ff\u7bc4\u56f2\u672a\u78ba\u8a8d\u306e\u307e\u307e\u306e\u518d\u8d77\u52d5<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u75c7\u72b6\u306e\u6ce2\u53ca\u7bc4\u56f2<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5358\u4e00\u30b5\u30fc\u30d3\u30b9\u304b\u6a2a\u65ad\u969c\u5bb3\u304b\u3092\u5207\u308a\u5206\u3051\u308b\u305f\u3081<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u4e00\u90e8\u62c5\u5f53\u3060\u3051\u3067\u306e\u65ad\u5b9a<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5171\u6709\u57fa\u76e4\u30fb\u30b3\u30f3\u30c6\u30ca\u30db\u30b9\u30c8\u5074\u306e\u72b6\u6cc1<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u898b\u3048\u65b9\u3060\u3051\u3067\u306f\u8db3\u308a\u306a\u3044\u305f\u3081<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u8cac\u4efb\u5206\u754c\u70b9\u304c\u66d6\u6627\u306a\u5909\u66f4<\/td>\n<\/tr>\n<\/table>\n<hr>\n<h3>\u30b3\u30f3\u30c6\u30ca\u74b0\u5883\u3067\u306f\u300c\u4e2d\u300d\u3068\u300c\u5916\u300d\u3092\u5206\u3051\u3066\u8003\u3048\u308b<\/h3>\n<p>\u30b3\u30f3\u30c6\u30ca\u74b0\u5883\u3067\u306f\u3001\u30a2\u30d7\u30ea\u62c5\u5f53\u8005\u304c\u300c\u30b3\u30f3\u30c6\u30ca\u306e\u4e2d\u300d\u3067\u89b3\u6e2c\u3067\u304d\u308b\u60c5\u5831\u3068\u3001\u57fa\u76e4\u62c5\u5f53\u8005\u304c\u300c\u30db\u30b9\u30c8\u306e\u5916\u5074\u300d\u304b\u3089\u898b\u3066\u3044\u308b\u60c5\u5831\u3092\u5206\u3051\u3066\u6271\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002ENFILE \u306e\u5b9a\u7fa9\u306f\u30db\u30b9\u30c8\u5168\u4f53\u306e open files \u4e0a\u9650\u306b\u7d10\u3065\u304f\u305f\u3081\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u3067 file descriptor \u306e\u5897\u52a0\u304c\u78ba\u8a8d\u3067\u304d\u3066\u3082\u3001\u305d\u308c\u3060\u3051\u3067\u306f\u969c\u5bb3\u5168\u4f53\u306e\u8aac\u660e\u3068\u3057\u3066\u8db3\u308a\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u9006\u306b\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u306f\u76ee\u7acb\u3063\u305f\u7570\u5e38\u304c\u898b\u3048\u306a\u304f\u3066\u3082\u3001\u30db\u30b9\u30c8\u5074\u3067\u8907\u6570\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u306e\u5408\u7b97\u306b\u3088\u308a file handle \u304c\u903c\u8feb\u3057\u3066\u3044\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u305f\u3081\u3001\u672c\u756a\u3067\u53ce\u675f\u3092\u6025\u3050\u3068\u304d\u307b\u3069\u3001\u300c\u4e2d\u306e\u89b3\u6e2c\u300d\u3068\u300c\u5916\u306e\u89b3\u6e2c\u300d\u3092\u6df7\u305c\u306a\u3044\u6574\u7406\u304c\u52b9\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6574\u7406\u304c\u5f79\u7acb\u3064\u306e\u306f\u3001\u8cac\u4efb\u306e\u5207\u308a\u5206\u3051\u306e\u305f\u3081\u3060\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5909\u66f4\u5224\u65ad\u306e\u9806\u756a\u3092\u5b88\u308b\u305f\u3081\u3067\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u898b\u3048\u308b\u4e0d\u5177\u5408\u306b\u5f15\u3063\u5f35\u3089\u308c\u3066\u30a2\u30d7\u30ea\u5074\u306e\u8a2d\u5b9a\u3092\u5148\u306b\u5e83\u3052\u308b\u3068\u3001\u30db\u30b9\u30c8\u5168\u4f53\u3067\u306f\u62bc\u3057\u5408\u3044\u304c\u5f37\u304f\u306a\u308a\u3001\u5225\u306e\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u307e\u3067\u4e0d\u5b89\u5b9a\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u53cd\u5bfe\u306b\u3001\u30db\u30b9\u30c8\u5168\u4f53\u306e\u903c\u8feb\u3092\u5148\u306b\u7406\u89e3\u3067\u304d\u308c\u3070\u3001\u300c\u30a2\u30d7\u30ea\u5074\u306b\u5373\u6642\u306e\u5927\u5909\u66f4\u3092\u5165\u308c\u305a\u3001\u307e\u305a\u5168\u4f53\u306e\u50be\u304d\u3092\u6291\u3048\u308b\u300d\u3068\u3044\u3046\u767a\u60f3\u304c\u53d6\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u5834\u3092\u6574\u3048\u308b\u305f\u3081\u306e\u8003\u3048\u65b9\u3067\u3042\u308a\u3001\u8cac\u4efb\u9003\u308c\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<hr>\n<h3>\u300c\u672c\u756a\u3067\u5d29\u3055\u306a\u3044\u300d\u3068\u306f\u3001\u89e6\u3089\u306a\u3044\u3053\u3068\u3067\u306f\u306a\u304f\u3001\u9806\u756a\u3092\u5b88\u308b\u3053\u3068<\/h3>\n<p>\u672c\u756a\u3067\u5d29\u3055\u306a\u3044\u9032\u3081\u65b9\u3068\u3044\u3046\u3068\u3001\u4f55\u3082\u5909\u66f4\u3057\u306a\u3044\u3053\u3068\u306e\u3088\u3046\u306b\u53d7\u3051\u53d6\u3089\u308c\u304c\u3061\u3067\u3059\u3002\u3057\u304b\u3057\u5b9f\u969b\u306b\u306f\u3001\u5fc5\u8981\u306a\u5909\u66f4\u3092\u307e\u3063\u305f\u304f\u3057\u306a\u3044\u3053\u3068\u304c\u6700\u5584\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002\u91cd\u8981\u306a\u306e\u306f\u3001\u5909\u66f4\u306e\u524d\u306b\u78ba\u8a8d\u3059\u3079\u304d\u9806\u756a\u3092\u5b88\u308b\u3053\u3068\u3067\u3059\u3002Linux \u30ab\u30fc\u30cd\u30eb\u6587\u66f8\u304c \/proc\/sys\/fs \u306e\u8abf\u6574\u306b\u3064\u3044\u3066\u300c\u6587\u66f8\u3068\u30bd\u30fc\u30b9\u3092\u8aad\u3093\u3067\u304b\u3089\u300d\u3068\u6ce8\u610f\u3057\u3066\u3044\u308b\u306e\u3082\u3001\u5024\u306e\u5909\u66f4\u305d\u308c\u81ea\u4f53\u3092\u5426\u5b9a\u3057\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u610f\u5473\u3092\u7406\u89e3\u3057\u306a\u3044\u307e\u307e\u89e6\u308b\u3053\u3068\u306e\u5371\u3046\u3055\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002ENFILE \u306e\u3088\u3046\u306b\u30db\u30b9\u30c8\u5168\u4f53\u3078\u5f71\u97ff\u3057\u5f97\u308b\u969c\u5bb3\u3067\u306f\u3001\u3053\u306e\u8003\u3048\u65b9\u304c\u305d\u306e\u307e\u307e\u904b\u7528\u4e0a\u306e\u539f\u5247\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u672c\u756a\u3067\u5d29\u3055\u306a\u3044\u3068\u306f\u3001\u307e\u305a\u5207\u308a\u5206\u3051\u3001\u6b21\u306b\u5f71\u97ff\u7bc4\u56f2\u3092\u63b4\u307f\u3001\u305d\u306e\u5f8c\u3067\u6700\u5c0f\u5909\u66f4\u3092\u9078\u3076\u3053\u3068\u3067\u3059\u3002\u3053\u306e\u9806\u756a\u304c\u5b88\u308c\u308b\u3060\u3051\u3067\u3001\u969c\u5bb3\u6642\u306e\u8b70\u8ad6\u306f\u304b\u306a\u308a\u843d\u3061\u7740\u304d\u307e\u3059\u3002\u8b70\u8ad6\u304c\u904e\u71b1\u3057\u3084\u3059\u3044\u5c40\u9762\u3067\u306f\u3001\u300c\u4f55\u3092\u5909\u3048\u308b\u304b\u300d\u3088\u308a\u300c\u306a\u305c\u4eca\u306f\u307e\u3060\u5909\u3048\u306a\u3044\u304b\u300d\u3092\u8aac\u660e\u3067\u304d\u308b\u3053\u3068\u306e\u65b9\u304c\u3001\u7d44\u7e54\u3068\u3057\u3066\u306f\u4fa1\u5024\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3057\u3066\u305d\u306e\u8aac\u660e\u3092\u652f\u3048\u308b\u306e\u304c\u3001ENFILE \u3068 EMFILE \u306e\u5b9a\u7fa9\u5dee\u3001file-max \u3068 file-nr \u306e\u95a2\u4fc2\u3001nr_open \u3068 RLIMIT_NOFILE \u306e\u5c64\u306e\u9055\u3044\u3067\u3059\u3002<\/p>\n<p>\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u30b3\u30f3\u30c6\u30ca\u3001\u672c\u756a\u30c7\u30fc\u30bf\u3001\u76e3\u67fb\u8981\u4ef6\u304c\u91cd\u306a\u308b\u6848\u4ef6\u3067\u306f\u3001\u4e00\u822c\u8ad6\u3060\u3051\u3067\u5b89\u5168\u57df\u3092\u8a00\u3044\u5207\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u3060\u304b\u3089\u3053\u305d\u3001\u521d\u52d5\u78ba\u8a8d\u306e\u5148\u3067\u8ff7\u3063\u305f\u6642\u70b9\u3067\u3001<strong>\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240<\/strong>\u306e\u3088\u3046\u306a\u5c02\u9580\u5bb6\u3078\u306e\u76f8\u8ac7\u30fb\u4f9d\u983c\u3092\u691c\u8a0e\u3059\u308b\u610f\u5473\u304c\u3042\u308a\u307e\u3059\u3002\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u306f https:\/\/jouhou.main.jp\/?page_id=26983 \u3001\u96fb\u8a71\u306f 0120-838-831 \u3067\u3059\u3002\u7121\u7406\u306b\u5224\u65ad\u3092\u62bc\u3057\u5207\u308b\u3088\u308a\u3001\u8cac\u4efb\u5206\u754c\u70b9\u3092\u898b\u6975\u3081\u306a\u304c\u3089\u53ce\u675f\u3078\u5bc4\u305b\u308b\u65b9\u304c\u3001\u7d50\u679c\u3068\u3057\u3066\u672c\u756a\u3092\u5d29\u3057\u306b\u304f\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3000<\/p>\n<p> <a id=\"sec06\"><\/a> <\/p>\n<h2 style=\"font-size:1.2em; font-weight:bold; text-decoration:underline;\">\u7b2c6\u7ae0\uff1a\u8a3a\u65ad\u3067\u304d\u308c\u3070\u8aac\u660e\u3067\u304d\u308b\u2015\u2015\u518d\u767a\u9632\u6b62\u307e\u3067\u898b\u636e\u3048\u305f\u904b\u7528\u8a2d\u8a08\u3068\u76f8\u8ac7\u306e\u9032\u3081\u65b9<\/h2>\n<p>ENFILE (23) \u3092\u4e00\u5ea6\u7d4c\u9a13\u3059\u308b\u3068\u3001\u73fe\u5834\u3067\u672c\u5f53\u306b\u56f0\u308b\u306e\u306f\u3001\u969c\u5bb3\u305d\u306e\u3082\u306e\u3060\u3051\u3067\u306f\u306a\u3044\u3053\u3068\u304c\u3088\u304f\u5206\u304b\u308a\u307e\u3059\u3002\u3044\u3064\u304b\u3089\u903c\u8feb\u3057\u3066\u3044\u305f\u306e\u304b\u3001\u306a\u305c\u305d\u306e\u5834\u3067\u305d\u306e\u5224\u65ad\u3092\u3057\u305f\u306e\u304b\u3001\u6b21\u306b\u540c\u3058\u3053\u3068\u304c\u8d77\u304d\u306a\u3044\u305f\u3081\u306b\u4f55\u3092\u76f4\u3059\u3079\u304d\u304b\u3002\u3053\u308c\u3089\u3092\u8aac\u660e\u3067\u304d\u306a\u3044\u307e\u307e\u3067\u306f\u3001\u305f\u3068\u3048\u305d\u306e\u5834\u306e\u75c7\u72b6\u304c\u53ce\u307e\u3063\u3066\u3082\u3001\u904b\u7528\u306e\u4e0d\u5b89\u306f\u6b8b\u308a\u307e\u3059\u3002\u9006\u306b\u8a00\u3048\u3070\u3001ENFILE \u3092\u300c\u8a3a\u65ad\u3067\u304d\u308b\u72b6\u614b\u300d\u306b\u6301\u3063\u3066\u3044\u3051\u308c\u3070\u3001\u6280\u8853\u7684\u306a\u5bfe\u51e6\u3060\u3051\u3067\u306a\u304f\u3001\u793e\u5185\u8aac\u660e\u3001\u5831\u544a\u3001\u518d\u767a\u9632\u6b62\u306e\u8a2d\u8a08\u307e\u3067\u3064\u306a\u3052\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002open(2) \u304c\u793a\u3059 ENFILE \u3068 EMFILE \u306e\u5b9a\u7fa9\u5dee\u306f\u3001\u305d\u306e\u8aac\u660e\u306e\u571f\u53f0\u306b\u306a\u308a\u307e\u3059\u3002\u3069\u306e\u5c64\u306e\u4e0a\u9650\u306b\u89e6\u308c\u305f\u306e\u304b\u304c\u5206\u304b\u308b\u3060\u3051\u3067\u3001\u8aac\u660e\u306f\u4e00\u6c17\u306b\u5177\u4f53\u5316\u3057\u307e\u3059\u3002<\/p>\n<p>\u518d\u767a\u9632\u6b62\u306e\u89b3\u70b9\u3067\u306f\u3001\u300c\u4e0a\u9650\u3092\u4e0a\u3052\u305f\u300d\u300c\u3044\u3063\u305f\u3093\u53ce\u307e\u3063\u305f\u300d\u3067\u7d42\u308f\u3089\u305b\u306a\u3044\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u30ab\u30fc\u30cd\u30eb\u6587\u66f8\u306b\u3042\u308b file-max\u3001file-nr\u3001nr_open \u306e\u8aac\u660e\u3092\u8e0f\u307e\u3048\u308b\u3068\u3001\u898b\u76f4\u3059\u3079\u304d\u5bfe\u8c61\u306f\u5c11\u306a\u304f\u3068\u3082 3 \u3064\u3042\u308a\u307e\u3059\u30021 \u3064\u76ee\u306f\u30db\u30b9\u30c8\u5168\u4f53\u306e\u4f59\u529b\u8a2d\u8a08\u3067\u3059\u3002\u73fe\u5728\u306e\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u306b\u5bfe\u3057\u3066 file-max \u304c\u59a5\u5f53\u304b\u3001\u5c06\u6765\u30d4\u30fc\u30af\u3082\u542b\u3081\u3066\u4f59\u88d5\u304c\u3042\u308b\u304b\u3092\u898b\u76f4\u3057\u307e\u3059\u30022 \u3064\u76ee\u306f\u500b\u5225\u30d7\u30ed\u30bb\u30b9\u306e\u4e0a\u9650\u3068\u5b9f\u88c5\u3067\u3059\u3002RLIMIT_NOFILE \u304c\u5b9f\u614b\u306b\u5408\u3063\u3066\u3044\u308b\u304b\u3001\u63a5\u7d9a\u3084\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u306b\u7121\u7406\u304c\u306a\u3044\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u30023 \u3064\u76ee\u306f\u5468\u8fba\u904b\u7528\u3067\u3059\u3002\u30ed\u30b0\u3001\u76e3\u8996\u3001\u30d0\u30c3\u30c1\u3001\u30b5\u30a4\u30c9\u30ab\u30fc\u3001\u5171\u6709\u57fa\u76e4\u306a\u3069\u3001\u672c\u4f53\u4ee5\u5916\u306e\u6d88\u8cbb\u6e90\u3092\u5b9a\u5e38\u76e3\u8996\u306e\u5bfe\u8c61\u306b\u3067\u304d\u3066\u3044\u308b\u304b\u3092\u898b\u76f4\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306f\u5358\u72ec\u3067\u306f\u306a\u304f\u3001\u5168\u4f53\u3068\u3057\u3066\u565b\u307f\u5408\u3063\u3066\u521d\u3081\u3066\u518d\u767a\u9632\u6b62\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u518d\u767a\u9632\u6b62\u3067\u898b\u76f4\u3057\u305f\u3044\u306e\u306f\u300c\u8a2d\u5b9a\u5024\u300d\u3088\u308a\u300c\u89b3\u6e2c\u306e\u3057\u304b\u305f\u300d<\/h3>\n<p>\u518d\u767a\u9632\u6b62\u3068\u3044\u3046\u8a00\u8449\u3092\u805e\u304f\u3068\u3001\u8a2d\u5b9a\u5024\u306e\u6700\u9069\u5316\u3084\u5b9f\u88c5\u4fee\u6b63\u306b\u610f\u8b58\u304c\u5411\u304d\u3084\u3059\u3044\u3082\u306e\u3067\u3059\u3002\u3082\u3061\u308d\u3093\u305d\u308c\u3089\u306f\u91cd\u8981\u3067\u3059\u304c\u3001ENFILE \u306e\u3088\u3046\u306a\u969c\u5bb3\u3067\u306f\u3001\u89b3\u6e2c\u306e\u3057\u304b\u305f\u3092\u5909\u3048\u306a\u3044\u3068\u540c\u3058\u3053\u3068\u304c\u518d\u3073\u8d77\u304d\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070 file-nr \u306e\u63a8\u79fb\u3092\u5e73\u6642\u304b\u3089\u898b\u3066\u3044\u306a\u3051\u308c\u3070\u3001\u6025\u5897\u304c\u59cb\u307e\u3063\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3084\u3001\u591c\u9593\u30d0\u30c3\u30c1\u30fb\u30d4\u30fc\u30af\u30a2\u30af\u30bb\u30b9\u30fb\u7279\u5b9a\u30ea\u30ea\u30fc\u30b9\u3068\u306e\u76f8\u95a2\u3092\u3064\u304b\u307f\u306b\u304f\u304f\u306a\u308a\u307e\u3059\u3002\u30ab\u30fc\u30cd\u30eb\u6587\u66f8\u304c file-nr \u3092\u300c\u5272\u308a\u5f53\u3066\u6e08\u307f file handles \u306e\u6570\u3068\u6700\u5927\u6570\u300d\u3092\u898b\u308b\u6307\u6a19\u3068\u3057\u3066\u793a\u3057\u3066\u3044\u308b\u4ee5\u4e0a\u3001\u3053\u308c\u3092\u4e00\u6642\u7684\u306a\u969c\u5bb3\u5bfe\u5fdc\u3060\u3051\u3067\u306a\u304f\u3001\u65e5\u5e38\u306e\u904b\u7528\u89b3\u6e2c\u306b\u7d44\u307f\u8fbc\u3080\u610f\u5473\u306f\u5927\u304d\u3044\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u500b\u5225\u30d7\u30ed\u30bb\u30b9\u306e RLIMIT_NOFILE \u3082\u3001\u969c\u5bb3\u304c\u8d77\u304d\u305f\u3068\u304d\u3060\u3051\u78ba\u8a8d\u3059\u308b\u306e\u3067\u306f\u9045\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002getrlimit(2) \u304c\u793a\u3059\u3068\u304a\u308a\u3001RLIMIT_NOFILE \u306f\u305d\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u958b\u3051\u308b\u6700\u5927 file descriptor \u756a\u53f7\u306b\u95a2\u308f\u308a\u3001\u3053\u308c\u3092\u8d85\u3048\u308b\u3068 EMFILE \u304c\u8fd4\u308a\u307e\u3059\u3002\u3064\u307e\u308a ENFILE \u3068 EMFILE \u3092\u6df7\u540c\u3057\u306a\u3044\u305f\u3081\u306b\u306f\u3001\u5e73\u6642\u304b\u3089\u300c\u30db\u30b9\u30c8\u5168\u4f53\u306e\u4f59\u529b\u300d\u3068\u300c\u500b\u5225\u30d7\u30ed\u30bb\u30b9\u306e\u5236\u9650\u300d\u3092\u5225\u3005\u306b\u89b3\u6e2c\u30fb\u8a18\u9332\u3057\u3066\u304a\u304f\u3053\u3068\u304c\u6709\u52b9\u3067\u3059\u3002\u3053\u3046\u3057\u3066\u304a\u3051\u3070\u3001\u969c\u5bb3\u6642\u306b\u8cac\u4efb\u306e\u62bc\u3057\u4ed8\u3051\u5408\u3044\u306b\u306a\u308a\u306b\u304f\u304f\u306a\u308a\u3001\u8abf\u67fb\u306e\u51fa\u767a\u70b9\u3082\u63c3\u3048\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u8aac\u660e\u3067\u304d\u308b\u969c\u5bb3\u5bfe\u5fdc\u306f\u3001\u5951\u7d04\u3084\u6848\u4ef6\u5224\u65ad\u306b\u3082\u52b9\u3044\u3066\u304f\u308b<\/h3>\n<p>BtoB \u306e\u73fe\u5834\u3067\u306f\u3001\u6280\u8853\u7684\u306b\u6b63\u3057\u3044\u3060\u3051\u3067\u306f\u5341\u5206\u3067\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3069\u306e\u3088\u3046\u306a\u6839\u62e0\u3067\u8abf\u67fb\u3092\u9032\u3081\u305f\u304b\u3001\u3069\u306e\u6642\u70b9\u3067\u4f55\u3092\u5909\u66f4\u3057\u305f\u304b\u3001\u306a\u305c\u305d\u306e\u5909\u66f4\u306b\u3068\u3069\u3081\u305f\u304b\u3092\u8aac\u660e\u3067\u304d\u308b\u3053\u3068\u304c\u3001\u6848\u4ef6\u5224\u65ad\u3084\u5951\u7d04\u4e0a\u306e\u5b89\u5fc3\u611f\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002ENFILE \u306f\u300c\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u4e0a\u9650\u306b\u89e6\u308c\u305f\u304b\u3082\u3057\u308c\u306a\u3044\u300d\u3068\u3044\u3046\u6027\u8cea\u4e0a\u3001\u95a2\u4fc2\u8005\u304c\u5897\u3048\u3084\u3059\u3044\u969c\u5bb3\u3067\u3059\u3002\u30a2\u30d7\u30ea\u62c5\u5f53\u3001\u57fa\u76e4\u62c5\u5f53\u3001\u60c5\u30b7\u30b9\u3001\u30d9\u30f3\u30c0\u30fc\u3001\u8cac\u4efb\u8005\u306e\u9593\u3067\u8a8d\u8b58\u304c\u305a\u308c\u308b\u3068\u3001\u969c\u5bb3\u305d\u306e\u3082\u306e\u3088\u308a\u8abf\u6574\u30b3\u30b9\u30c8\u304c\u81a8\u3089\u307f\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u8a3a\u65ad\u3067\u304d\u308b\u72b6\u614b\u306b\u6301\u3063\u3066\u3044\u304f\u3053\u3068\u306f\u3001\u5358\u306a\u308b\u6280\u8853\u306e\u8a71\u3067\u306f\u306a\u304f\u3001\u793e\u5185\u8abf\u6574\u3084\u5bfe\u4eba\u306e\u6e29\u5ea6\u3092\u4e0b\u3052\u308b\u305f\u3081\u306e\u5b9f\u52d9\u3067\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u70b9\u3067\u3001\u4e00\u822c\u8ad6\u306b\u306f\u660e\u78ba\u306a\u9650\u754c\u304c\u3042\u308a\u307e\u3059\u3002\u4e00\u822c\u8ad6\u3067\u3067\u304d\u308b\u306e\u306f\u3001ENFILE \u3068 EMFILE \u306e\u9055\u3044\u3001file-max \u3068 file-nr \u306e\u610f\u5473\u3001nr_open \u3068 RLIMIT_NOFILE \u306e\u95a2\u4fc2\u3001\u305d\u3057\u3066\u672c\u756a\u3067\u306e\u78ba\u8a8d\u9806\u5e8f\u3092\u6574\u7406\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u3067\u3059\u3002\u3057\u304b\u3057\u5b9f\u969b\u306e\u6848\u4ef6\u3067\u306f\u3001\u540c\u3058 ENFILE \u3067\u3082\u3001\u5951\u7d04\u3067\u89e6\u308c\u306a\u3044\u9818\u57df\u304c\u3042\u308b\u3001\u8907\u6570\u30d9\u30f3\u30c0\u30fc\u306e\u8cac\u4efb\u5206\u754c\u70b9\u304c\u3042\u308b\u3001\u76e3\u67fb\u8981\u4ef6\u3067\u5909\u66f4\u624b\u7d9a\u304d\u304c\u91cd\u3044\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u5225\u30b7\u30b9\u30c6\u30e0\u304c\u3076\u3089\u4e0b\u304c\u3063\u3066\u3044\u308b\u3001\u3068\u3044\u3063\u305f\u4e8b\u60c5\u304c\u91cd\u306a\u308a\u307e\u3059\u3002\u305d\u3046\u306a\u308b\u3068\u3001\u300c\u6b63\u3057\u3044\u4e00\u822c\u8ad6\u300d\u3092\u305d\u306e\u307e\u307e\u9069\u7528\u3059\u308b\u3060\u3051\u3067\u306f\u8db3\u308a\u307e\u305b\u3093\u3002\u3069\u3053\u307e\u3067\u304c\u5b89\u5168\u306a\u521d\u52d5\u3067\u3001\u3069\u3053\u304b\u3089\u304c\u500b\u5225\u5224\u65ad\u304b\u3092\u898b\u6975\u3081\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u76f8\u8ac7\u3092\u65e9\u3081\u308b\u3079\u304d\u6761\u4ef6\u306f\u3001\u6280\u8853\u306e\u96e3\u6613\u5ea6\u3060\u3051\u3067\u306f\u306a\u3044<\/h3>\n<p>\u5c02\u9580\u5bb6\u3078\u306e\u76f8\u8ac7\u304c\u5fc5\u8981\u306b\u306a\u308b\u6761\u4ef6\u306f\u3001\u5fc5\u305a\u3057\u3082\u6280\u8853\u7684\u306a\u96e3\u3057\u3055\u3060\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305f\u3068\u3048\u3070\u3001\u5f71\u97ff\u7bc4\u56f2\u304c\u30db\u30b9\u30c8\u5168\u4f53\u306b\u53ca\u3093\u3067\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3084\u30b3\u30f3\u30c6\u30ca\u57fa\u76e4\u304c\u7d61\u3093\u3067\u3044\u308b\u3001\u672c\u756a\u30c7\u30fc\u30bf\u304c\u3042\u308a\u6a29\u9650\u3084\u518d\u8d77\u52d5\u306e\u5224\u65ad\u304c\u91cd\u3044\u3001\u76e3\u67fb\u3084\u8aac\u660e\u8cac\u4efb\u304c\u5f37\u3044\u3001\u8907\u6570\u4e8b\u696d\u8005\u304c\u95a2\u308f\u3063\u3066\u3044\u308b\u3001\u3068\u3044\u3063\u305f\u6761\u4ef6\u304c\u3042\u308b\u306a\u3089\u3001\u4e00\u822c\u8ad6\u306e\u5148\u3078\u8e0f\u307f\u8fbc\u3080\u5224\u65ad\u306f\u614e\u91cd\u306b\u3059\u308b\u4fa1\u5024\u304c\u3042\u308a\u307e\u3059\u3002Linux \u30ab\u30fc\u30cd\u30eb\u6587\u66f8\u304c \/proc\/sys\/fs \u306e\u8abf\u6574\u306b\u614e\u91cd\u3055\u3092\u6c42\u3081\u3066\u3044\u308b\u306e\u3082\u3001\u5024\u305d\u306e\u3082\u306e\u304c\u5371\u967a\u3068\u3044\u3046\u3088\u308a\u3001\u6587\u8108\u3092\u5916\u3057\u3066\u6271\u3046\u3053\u3068\u304c\u5371\u3046\u3044\u304b\u3089\u3067\u3059\u3002\u6848\u4ef6\u306e\u6587\u8108\u304c\u6fc3\u3044\u307b\u3069\u3001\u500b\u5225\u76f8\u8ac7\u306e\u4fa1\u5024\u306f\u9ad8\u307e\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>ENFILE \u304b EMFILE \u304b\u306e\u5207\u308a\u5206\u3051\u306f\u3067\u304d\u3066\u3082\u3001\u3069\u3053\u307e\u3067\u89e6\u3063\u3066\u3088\u3044\u304b\u5224\u65ad\u3067\u304d\u306a\u3044<\/li>\n<li>\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3084\u30b3\u30f3\u30c6\u30ca\u30db\u30b9\u30c8\u304c\u7d61\u307f\u3001\u5f71\u97ff\u7bc4\u56f2\u3092\u81ea\u793e\u3060\u3051\u3067\u65ad\u5b9a\u3057\u306b\u304f\u3044<\/li>\n<li>\u672c\u756a\u30c7\u30fc\u30bf\u3084\u76e3\u67fb\u8981\u4ef6\u304c\u3042\u308a\u3001\u8a2d\u5b9a\u5909\u66f4\u3084\u518d\u8d77\u52d5\u306e\u8aac\u660e\u8cac\u4efb\u304c\u91cd\u3044<\/li>\n<li>\u4e00\u6642\u7684\u306b\u53ce\u307e\u3063\u3066\u3082\u3001\u518d\u767a\u9632\u6b62\u306e\u904b\u7528\u8a2d\u8a08\u307e\u3067\u6574\u7406\u3067\u304d\u3066\u3044\u306a\u3044<\/li>\n<li>\u5f79\u54e1\u3084\u4e0a\u53f8\u3078\u306e\u8aac\u660e\u8cc7\u6599\u3068\u3057\u3066\u3001\u6280\u8853\u7684\u6839\u62e0\u3068\u5224\u65ad\u6839\u62e0\u3092\u307e\u3068\u3081\u308b\u5fc5\u8981\u304c\u3042\u308b<\/li>\n<\/ul>\n<p>\u3053\u3046\u3057\u305f\u6761\u4ef6\u306b\u5f53\u3066\u306f\u307e\u308b\u5834\u5408\u3001\u76f8\u8ac7\u3092\u5148\u5ef6\u3070\u3057\u306b\u3059\u308b\u307b\u3069\u3001\u3042\u3068\u3067\u5fc5\u8981\u306b\u306a\u308b\u8abf\u6574\u3084\u518d\u8abf\u67fb\u306e\u91cf\u304c\u5897\u3048\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u4e00\u822c\u8ad6\u3067\u62bc\u3057\u5207\u308b\u3088\u308a\u3001\u65e9\u3081\u306b\u500b\u5225\u6848\u4ef6\u3068\u3057\u3066\u898b\u3066\u3082\u3089\u3063\u305f\u65b9\u304c\u3001\u7d50\u679c\u3068\u3057\u3066\u5909\u66f4\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u3089\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u969c\u5bb3\u6642\u306b\u672c\u5f53\u306b\u4fa1\u5024\u304c\u3042\u308b\u306e\u306f\u3001\u300c\u5168\u90e8\u81ea\u529b\u3067\u3084\u308a\u5207\u308b\u3053\u3068\u300d\u3067\u306f\u306a\u304f\u3001\u300c\u3069\u3053\u304b\u3089\u5148\u306f\u5c02\u9580\u5bb6\u3068\u7d44\u3093\u3060\u65b9\u304c\u5168\u4f53\u6700\u9069\u306b\u306a\u308b\u304b\u300d\u3092\u898b\u6975\u3081\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<hr>\n<h3>\u4f9d\u983c\u5224\u65ad\u3068\u3057\u3066\u306e\u7d50\u8ad6<\/h3>\n<p>ENFILE (23) \u306f\u3001\u5358\u306a\u308b\u4e00\u6642\u7684\u306a\u30a8\u30e9\u30fc\u6587\u8a00\u3067\u306f\u306a\u304f\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u3067 file handle \u306e\u4f59\u529b\u8a2d\u8a08\u3084\u89b3\u6e2c\u8a2d\u8a08\u304c\u5d29\u308c\u59cb\u3081\u3066\u3044\u308b\u30b5\u30a4\u30f3\u3068\u3057\u3066\u53d7\u3051\u6b62\u3081\u308b\u65b9\u304c\u5b89\u5168\u3067\u3059\u3002\u307e\u305a\u306f\u5b89\u5168\u306a\u521d\u52d5\u306b\u7d5e\u308a\u3001ENFILE \u3068 EMFILE \u3092\u5207\u308a\u5206\u3051\u3001file-nr \u3068 file-max \u3092\u78ba\u8a8d\u3057\u3001\u5f71\u97ff\u7bc4\u56f2\u3092\u898b\u3066\u304b\u3089\u3001\u5fc5\u8981\u6700\u5c0f\u9650\u306e\u5909\u66f4\u3092\u8003\u3048\u308b\u3002\u3053\u306e\u9806\u756a\u304c\u5b88\u308c\u308b\u3060\u3051\u3067\u3082\u3001\u969c\u5bb3\u306e\u53ce\u675f\u3068\u793e\u5185\u8aac\u660e\u306f\u304b\u306a\u308a\u3084\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u3067\u3059\u304c\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u30b3\u30f3\u30c6\u30ca\u3001\u672c\u756a\u30c7\u30fc\u30bf\u3001\u76e3\u67fb\u8981\u4ef6\u3001\u8cac\u4efb\u5206\u754c\u70b9\u304c\u7d61\u3080\u6848\u4ef6\u3067\u306f\u3001\u4e00\u822c\u8ad6\u3060\u3051\u3067\u300c\u3053\u3053\u307e\u3067\u306a\u3089\u5927\u4e08\u592b\u300d\u3068\u8a00\u3044\u5207\u308b\u306e\u306f\u96e3\u3057\u3044\u306e\u304c\u5b9f\u60c5\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u5177\u4f53\u7684\u306a\u6848\u4ef6\u30fb\u5951\u7d04\u30fb\u30b7\u30b9\u30c6\u30e0\u69cb\u6210\u306b\u7167\u3089\u3057\u3066\u5224\u65ad\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u3001<strong>\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240<\/strong>\u3078\u306e\u76f8\u8ac7\u30fb\u4f9d\u983c\u3092\u691c\u8a0e\u3059\u308b\u610f\u5473\u304c\u3042\u308a\u307e\u3059\u3002\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u306f https:\/\/jouhou.main.jp\/?page_id=26983 \u3001\u96fb\u8a71\u306f 0120-838-831 \u3067\u3059\u3002\u4e00\u822c\u8ad6\u3067\u898b\u3048\u308b\u3068\u3053\u308d\u307e\u3067\u6574\u7406\u3057\u305f\u3046\u3048\u3067\u5c02\u9580\u5bb6\u3078\u3064\u306a\u3052\u308c\u3070\u3001\u7121\u7406\u306a\u5909\u66f4\u3092\u91cd\u306d\u308b\u3088\u308a\u3082\u3001\u53ce\u675f\u30fb\u88ab\u5bb3\u6700\u5c0f\u5316\u30fb\u518d\u767a\u9632\u6b62\u3092\u4e00\u3064\u306e\u6d41\u308c\u3068\u3057\u3066\u8a2d\u8a08\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u8a3a\u65ad\u3067\u304d\u308c\u3070\u8aac\u660e\u3067\u304d\u307e\u3059\u3002\u8aac\u660e\u3067\u304d\u308c\u3070\u3001\u6b21\u306e\u5224\u65ad\u304c\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u305d\u3057\u3066\u305d\u306e\u5148\u3067\u3001\u4e00\u822c\u8ad6\u306e\u9650\u754c\u304c\u898b\u3048\u305f\u3068\u304d\u306b\u3001\u9069\u5207\u306a\u76f8\u8ac7\u5148\u3078\u3064\u306a\u3052\u3089\u308c\u308b\u304b\u3069\u3046\u304b\u304c\u3001\u904b\u7528\u306e\u5b89\u5b9a\u6027\u3092\u5de6\u53f3\u3057\u307e\u3059\u3002ENFILE (23) \u3092\u304d\u3063\u304b\u3051\u306b\u3001\u300c\u4e0a\u9650\u3092\u5897\u3084\u3059\u304b\u3069\u3046\u304b\u300d\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u300c\u3069\u3053\u307e\u3067\u3092\u81ea\u793e\u3067\u5224\u65ad\u3057\u3001\u3069\u3053\u304b\u3089\u3092\u5c02\u9580\u5bb6\u3068\u9032\u3081\u308b\u304b\u300d\u3068\u3044\u3046\u4f9d\u983c\u5224\u65ad\u307e\u3067\u542b\u3081\u3066\u898b\u76f4\u3057\u3066\u304a\u304f\u3053\u3068\u304c\u3001\u9577\u3044\u76ee\u3067\u306f\u3082\u3063\u3068\u3082\u5b9f\u52d9\u7684\u306a\u5099\u3048\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<style>h1.dai {    display: inline-block;    font-weight: bold;    border-left: solid 5px #38b3f2;    border-bottom: solid 1px #38b3f2;    margin-top: 25px; \/* \u4e0a\u306e\u7a7a\u767d\u30922\u500d *\/    margin-bottom: 5px;    padding: 5px 5px 5px 5px;    font-size: 18px; \/* \u6587\u5b57\u306e\u5927\u304d\u3055\u309218px\u306b\u8a2d\u5b9a *\/}h2.fukudai {    display: inline-block;    font-weight: bold;    border-left: solid 5px #38b3f2;    border-bottom: solid 1px #38b3f2;    margin-top: 25px; \/* \u4e0a\u306e\u7a7a\u767d\u30922\u500d *\/    margin-bottom: 5px;    padding: 5px 5px 5px 5px;    font-size: 18px; \/* \u6587\u5b57\u306e\u5927\u304d\u3055\u309218px\u306b\u8a2d\u5b9a *\/}.fukudai {    display: inline-block;    font-weight: bold;    border-left: solid 5px #38b3f2;    border-bottom: solid 1px #38b3f2;    margin: 0 auto 50px;    padding: 5px 5px 5px 5px;    font-size: 18px; \/* \u6587\u5b57\u306e\u5927\u304d\u3055\u309218px\u306b\u8a2d\u5b9a *\/}.fukudai {    display: inline-block;    font-weight: bold;    border-left: solid 5px #38b3f2;    border-bottom: solid 1px #38b3f2;    margin: 0 auto 50px;    padding: 5px 5px 5px 5px;    font-size: 18px; \/* \u6587\u5b57\u306e\u5927\u304d\u3055\u309218px\u306b\u8a2d\u5b9a *\/}<\/style>\n<h2 class='fukudai'>\u306f\u3058\u3081\u306b<\/h2>\n<p><\/p>\n<p>     Linux\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3044\u3066\u3001\u591a\u304f\u306e\u7ba1\u7406\u8005\u3084IT\u62c5\u5f53\u8005\u304c\u76f4\u9762\u3059\u308b\u8ab2\u984c\u306e\u4e00\u3064\u306b\u300cENFILE (23)\u300d\u30a8\u30e9\u30fc\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u30c6\u30fc\u30d6\u30eb\u3068\u547c\u3070\u308c\u308b\u30b7\u30b9\u30c6\u30e0\u30ea\u30bd\u30fc\u30b9\u306e\u4e0a\u9650\u306b\u9054\u3057\u305f\u969b\u306b\u767a\u751f\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u6b63\u5e38\u306a\u52d5\u4f5c\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3059\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001ENFILE\u30a8\u30e9\u30fc\u306e\u57fa\u672c\u7684\u306a\u5b9a\u7fa9\u3068\u539f\u56e0\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3001\u5b9f\u969b\u306e\u4e8b\u4f8b\u3092\u4ea4\u3048\u306a\u304c\u3089\u3001\u30a8\u30e9\u30fc\u306e\u691c\u51fa\u65b9\u6cd5\u3084\u518d\u5272\u5f53\u306e\u5177\u4f53\u7684\u306a\u5bfe\u5fdc\u7b56\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u6027\u3092\u7dad\u6301\u3057\u3001\u696d\u52d9\u3078\u306e\u5f71\u97ff\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u308b\u305f\u3081\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u62bc\u3055\u3048\u3001\u5b89\u5fc3\u3057\u3066\u904b\u7528\u3092\u7d9a\u3051\u3089\u308c\u308b\u77e5\u8b58\u3092\u63d0\u4f9b\u3044\u305f\u3057\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u306e\u73fe\u5834\u3067\u5f79\u7acb\u3064\u60c5\u5831\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u3001\u5fc5\u8981\u306a\u5bfe\u5fdc\u3092\u9069\u5207\u306b\u884c\u3048\u308b\u3088\u3046\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>ENFILE\u30a8\u30e9\u30fc\u306e\u6839\u672c\u7684\u306a\u539f\u56e0\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30d5\u30a1\u30a4\u30eb\u30c6\u30fc\u30d6\u30eb\u306e\u4e0a\u9650\u306b\u9054\u3059\u308b\u3053\u3068\u306b\u3042\u308a\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u30c6\u30fc\u30d6\u30eb\u3068\u306f\u3001\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u304c\u540c\u6642\u306b\u958b\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u30d5\u30a1\u30a4\u30eb\u3084\u30bd\u30b1\u30c3\u30c8\u306a\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3067\u3059\u3002Linux\u3092\u306f\u3058\u3081\u3068\u3059\u308bUnix\u7cfb\u306eOS\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u30ea\u30bd\u30fc\u30b9\u306e\u6570\u306b\u306f\u5236\u9650\u304c\u8a2d\u3051\u3089\u308c\u3066\u304a\u308a\u3001\u305d\u306e\u5236\u9650\u306b\u9054\u3059\u308b\u3068\u65b0\u305f\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u63a5\u7d9a\u3092\u958b\u304f\u3053\u3068\u304c\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u7d50\u679c\u3068\u3057\u3066\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b5\u30fc\u30d3\u30b9\u304c\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u306a\u304f\u306a\u308a\u3001\u6700\u60aa\u306e\u5834\u5408\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u5b89\u5b9a\u6027\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3059\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002  \u3053\u306e\u30a8\u30e9\u30fc\u306e\u767a\u751f\u306b\u306f\u8907\u6570\u306e\u539f\u56e0\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u9577\u6642\u9593\u7a3c\u50cd\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u3084\u3001\u7279\u5b9a\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5927\u91cf\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u540c\u6642\u306b\u958b\u304d\u7d9a\u3051\u308b\u30b1\u30fc\u30b9\u3001\u307e\u305f\u306f\u4e0d\u9069\u5207\u306a\u30ea\u30bd\u30fc\u30b9\u7ba1\u7406\u306b\u3088\u308b\u30ea\u30fc\u30af\uff08\u89e3\u653e\u3055\u308c\u306a\u3044\u30ea\u30bd\u30fc\u30b9\u306e\u84c4\u7a4d\uff09\u306a\u3069\u3067\u3059\u3002\u7279\u306b\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u89e3\u653e\u3092\u9069\u5207\u306b\u884c\u308f\u306a\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u3084\u3001\u8a2d\u5b9a\u5024\u304c\u4f4e\u304f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u77ed\u671f\u9593\u3067\u4e0a\u9650\u306b\u9054\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002  \u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u306b\u3068\u3063\u3066\u91cd\u8981\u306a\u306e\u306f\u3001\u3053\u308c\u3089\u306e\u539f\u56e0\u3092\u7406\u89e3\u3057\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u969b\u306b\u8fc5\u901f\u306b\u691c\u77e5\u3057\u5bfe\u5fdc\u3067\u304d\u308b\u4f53\u5236\u3092\u6574\u3048\u308b\u3053\u3068\u3067\u3059\u3002\u6b21\u7ae0\u3067\u306f\u3001\u5177\u4f53\u7684\u306a\u4e8b\u4f8b\u3084\u30a8\u30e9\u30fc\u306e\u8a3a\u65ad\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3001\u3069\u306e\u3088\u3046\u306b\u3057\u3066\u554f\u984c\u306e\u6839\u672c\u306b\u30a2\u30d7\u30ed\u30fc\u30c1\u3059\u308c\u3070\u826f\u3044\u304b\u3092\u793a\u3057\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u904b\u7528\u3092\u7dad\u6301\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u539f\u56e0\u306e\u7279\u5b9a\u3068\u9069\u5207\u306a\u5bfe\u7b56\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002<\/p>\n<p>ENFILE\u30a8\u30e9\u30fc\u306e\u5177\u4f53\u7684\u306a\u4e8b\u4f8b\u3084\u8a3a\u65ad\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7406\u89e3\u3092\u6df1\u3081\u308b\u3053\u3068\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u6027\u3092\u4fdd\u3064\u4e0a\u3067\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002\u5b9f\u969b\u306e\u904b\u7528\u73fe\u5834\u3067\u306f\u3001\u30a8\u30e9\u30fc\u306e\u767a\u751f\u6642\u306b\u3069\u306e\u3088\u3046\u306b\u539f\u56e0\u3092\u7279\u5b9a\u3057\u3001\u5bfe\u51e6\u3059\u308c\u3070\u826f\u3044\u306e\u304b\u3092\u77e5\u308b\u3053\u3068\u304c\u3001\u8fc5\u901f\u306a\u5bfe\u5fdc\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002  \u307e\u305a\u3001\u30a8\u30e9\u30fc\u306e\u5146\u5019\u3068\u3057\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u52d5\u4f5c\u9045\u5ef6\u3084\u7279\u5b9a\u306e\u30b5\u30fc\u30d3\u30b9\u306e\u5fdc\u7b54\u505c\u6b62\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u5146\u5019\u3092\u898b\u9003\u3055\u305a\u306b\u3001\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3084\u30b7\u30b9\u30c6\u30e0\u30b3\u30de\u30f3\u30c9\u3092\u7528\u3044\u3066\u539f\u56e0\u3092\u8ffd\u7a76\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001`ulimit`\u30b3\u30de\u30f3\u30c9\u3084`\/proc\/sys\/fs\/file-max`\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u306e\u4e0a\u9650\u5024\u3092\u628a\u63e1\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u5024\u304c\u4f4e\u304f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3084\u3001\u5b9f\u969b\u306e\u4f7f\u7528\u6570\u306b\u6bd4\u3079\u3066\u5927\u304d\u304f\u4e56\u96e2\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u8a2d\u5b9a\u306e\u898b\u76f4\u3057\u3084\u30ea\u30bd\u30fc\u30b9\u306e\u89e3\u653e\u304c\u5fc5\u8981\u3067\u3059\u3002  \u307e\u305f\u3001`lsof`\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u3066\u3001\u73fe\u5728\u958b\u304b\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u3084\u30bd\u30b1\u30c3\u30c8\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3001\u3069\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u5927\u91cf\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u5360\u6709\u3057\u3066\u3044\u308b\u304b\u3092\u7279\u5b9a\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30ea\u30bd\u30fc\u30b9\u30ea\u30fc\u30af\u3084\u4e0d\u9069\u5207\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u52d5\u4f5c\u3092\u691c\u51fa\u3067\u304d\u3001\u539f\u56e0\u7a76\u660e\u306e\u624b\u52a9\u3051\u3068\u306a\u308a\u307e\u3059\u3002  \u3055\u3089\u306b\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u76e3\u8996\u30c4\u30fc\u30eb\u3084\u30a2\u30e9\u30fc\u30c8\u8a2d\u5b9a\u3092\u6d3b\u7528\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u306e\u4f7f\u7528\u72b6\u6cc1\u3084\u4e0a\u9650\u5024\u306b\u8fd1\u3065\u3044\u305f\u969b\u306b\u901a\u77e5\u3092\u53d7\u3051\u53d6\u308b\u4ed5\u7d44\u307f\u3092\u6574\u3048\u308b\u3053\u3068\u3082\u52b9\u679c\u7684\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u524d\u306b\u4e88\u9632\u7684\u306a\u5bfe\u5fdc\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002  \u3053\u308c\u3089\u306e\u8a3a\u65ad\u624b\u6cd5\u3092\u9069\u5207\u306b\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001ENFILE\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3092\u8fc5\u901f\u306b\u7279\u5b9a\u3057\u3001\u518d\u767a\u9632\u6b62\u7b56\u3092\u8b1b\u3058\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306e\u5065\u5168\u6027\u3092\u7dad\u6301\u3057\u3001\u696d\u52d9\u3078\u306e\u5f71\u97ff\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u308b\u305f\u3081\u306b\u306f\u3001\u65e5\u3005\u306e\u76e3\u8996\u3068\u5b9a\u671f\u7684\u306a\u8a2d\u5b9a\u306e\u898b\u76f4\u3057\u304c\u6b20\u304b\u305b\u307e\u305b\u3093\u3002<\/p>\n<p>\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30a8\u30e9\u30fc\u306e\u4e88\u5146\u3092\u65e9\u671f\u306b\u5bdf\u77e5\u3057\u3001\u9069\u5207\u306a\u5bfe\u5fdc\u3092\u884c\u3046\u3053\u3068\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u5b9a\u671f\u7684\u306a\u30b7\u30b9\u30c6\u30e0\u76e3\u8996\u3068\u3068\u3082\u306b\u3001\u7570\u5e38\u5024\u3092\u691c\u77e5\u3057\u305f\u969b\u306e\u8fc5\u901f\u306a\u5bfe\u5fdc\u7b56\u3092\u6574\u5099\u3057\u3066\u304a\u304f\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002  \u307e\u305a\u3001\u30b7\u30b9\u30c6\u30e0\u76e3\u8996\u30c4\u30fc\u30eb\u3092\u6d3b\u7528\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u306e\u4f7f\u7528\u72b6\u6cc1\u3084\u30b7\u30b9\u30c6\u30e0\u306e\u30ea\u30bd\u30fc\u30b9\u72b6\u6cc1\u3092\u7d99\u7d9a\u7684\u306b\u76e3\u8996\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u4f7f\u7528\u7387\u304c\u4e00\u5b9a\u306e\u95be\u5024\u3092\u8d85\u3048\u305f\u5834\u5408\u306b\u30a2\u30e9\u30fc\u30c8\u3092\u767a\u3057\u3001\u4e8b\u524d\u306b\u5bfe\u7b56\u3092\u8b1b\u3058\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001`\/proc\/sys\/fs\/file-max`\u3084`\/proc\/sys\/fs\/file-nr`\u306e\u5024\u3092\u5b9a\u671f\u7684\u306b\u78ba\u8a8d\u3057\u3001\u95be\u5024\u306b\u8fd1\u3065\u3044\u305f\u5834\u5408\u306b\u306f\u81ea\u52d5\u7684\u306b\u901a\u77e5\u3092\u9001\u308b\u4ed5\u7d44\u307f\u3092\u5c0e\u5165\u3059\u308b\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u307e\u3059\u3002  \u6b21\u306b\u3001`lsof`\u3084`fuser`\u3068\u3044\u3063\u305f\u30b3\u30de\u30f3\u30c9\u3092\u7528\u3044\u3066\u3001\u3069\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u591a\u304f\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u3044\u308b\u304b\u3092\u7279\u5b9a\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30ea\u30bd\u30fc\u30b9\u306e\u89e3\u653e\u3084\u518d\u8d77\u52d5\u3092\u884c\u3044\u307e\u3059\u3002\u7279\u306b\u3001\u9577\u6642\u9593\u7a3c\u50cd\u3057\u3066\u3044\u308b\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u30ea\u30bd\u30fc\u30b9\u30ea\u30fc\u30af\u3084\u4e0d\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u306e\u84c4\u7a4d\u304c\u539f\u56e0\u3068\u306a\u308b\u30b1\u30fc\u30b9\u3082\u591a\u3044\u305f\u3081\u3001\u5b9a\u671f\u7684\u306a\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u4f5c\u696d\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u898b\u76f4\u3057\u3082\u91cd\u8981\u3067\u3059\u3002  \u307e\u305f\u3001\u8a2d\u5b9a\u5024\u306e\u898b\u76f4\u3057\u3082\u52b9\u679c\u7684\u3067\u3059\u3002`\/etc\/security\/limits.conf`\u3084`\/etc\/sysctl.conf`\u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u306e\u4e0a\u9650\u5024\u3092\u9069\u5207\u306b\u8abf\u6574\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u8ca0\u8377\u306b\u5fdc\u3058\u305f\u6700\u9069\u306a\u30ea\u30bd\u30fc\u30b9\u914d\u5206\u3092\u884c\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30a8\u30e9\u30fc\u306e\u767a\u751f\u983b\u5ea6\u3092\u4f4e\u6e1b\u3055\u305b\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002  \u6700\u5f8c\u306b\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30ea\u30bd\u30fc\u30b9\u72b6\u6cc1\u3084\u30a8\u30e9\u30fc\u306e\u5146\u5019\u3092\u8a18\u9332\u3057\u3001\u5b9a\u671f\u7684\u306a\u30ec\u30d3\u30e5\u30fc\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u554f\u984c\u306e\u65e9\u671f\u767a\u898b\u3068\u6839\u672c\u7684\u306a\u89e3\u6c7a\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u53d6\u308a\u7d44\u307f\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u6027\u3092\u9ad8\u3081\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u904b\u7528\u30b3\u30b9\u30c8\u306e\u4f4e\u6e1b\u3084\u696d\u52d9\u306e\u7d99\u7d9a\u6027\u78ba\u4fdd\u306b\u3082\u5bc4\u4e0e\u3057\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u3084IT\u62c5\u5f53\u8005\u306f\u3001\u65e5\u3005\u306e\u76e3\u8996\u3068\u6539\u5584\u3092\u7d99\u7d9a\u7684\u306b\u884c\u3046\u3053\u3068\u304c\u3001ENFILE\u30a8\u30e9\u30fc\u306e\u672a\u7136\u9632\u6b62\u306b\u304a\u3044\u3066\u6700\u3082\u52b9\u679c\u7684\u306a\u624b\u6bb5\u3067\u3059\u3002<\/p>\n<p>ENFILE\u30a8\u30e9\u30fc\u306e\u6839\u672c\u7684\u306a\u89e3\u6c7a\u7b56\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30ea\u30bd\u30fc\u30b9\u8a2d\u5b9a\u3092\u9069\u5207\u306b\u8abf\u6574\u3057\u3001\u30ea\u30bd\u30fc\u30b9\u7ba1\u7406\u306e\u6539\u5584\u3092\u56f3\u308b\u3053\u3068\u306b\u3042\u308a\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u307e\u305a\u30b7\u30b9\u30c6\u30e0\u306e\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u306e\u4e0a\u9650\u5024\u3092\u898b\u76f4\u3059\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002`\/etc\/sysctl.conf`\u3084`\/etc\/security\/limits.conf`\u306b\u304a\u3044\u3066\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u4e0a\u9650\u5024\u3092\u5f15\u304d\u4e0a\u3052\u308b\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u969b\u306b\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u8ca0\u8377\u3084\u904b\u7528\u72b6\u6cc1\u3092\u5341\u5206\u306b\u8003\u616e\u3057\u3001\u904e\u5270\u306a\u30ea\u30bd\u30fc\u30b9\u5272\u308a\u5f53\u3066\u304c\u4ed6\u306e\u30b7\u30b9\u30c6\u30e0\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u60aa\u5f71\u97ff\u3092\u53ca\u307c\u3055\u306a\u3044\u3088\u3046\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002  \u6b21\u306b\u3001\u30ea\u30bd\u30fc\u30b9\u30ea\u30fc\u30af\u3092\u9632\u3050\u305f\u3081\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u8a2d\u8a08\u3084\u904b\u7528\u306e\u6539\u5584\u3082\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b5\u30fc\u30d3\u30b9\u304c\u30d5\u30a1\u30a4\u30eb\u3084\u30bd\u30b1\u30c3\u30c8\u3092\u958b\u3044\u305f\u5f8c\u306f\u3001\u5fc5\u305a\u9069\u5207\u306b\u9589\u3058\u308b\u3053\u3068\u3092\u5fb9\u5e95\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u4e0d\u8981\u306a\u30ea\u30bd\u30fc\u30b9\u306e\u84c4\u7a4d\u3092\u672a\u7136\u306b\u9632\u304e\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u7121\u99c4\u9063\u3044\u3084\u4e0a\u9650\u3078\u306e\u9054\u6210\u3092\u6291\u5236\u3067\u304d\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u306f\u3001\u5b9a\u671f\u7684\u306a\u30ed\u30b0\u76e3\u67fb\u3084\u30ea\u30bd\u30fc\u30b9\u4f7f\u7528\u72b6\u6cc1\u306e\u5206\u6790\u3092\u884c\u3044\u3001\u7570\u5e38\u306a\u50be\u5411\u3092\u65e9\u671f\u306b\u5bdf\u77e5\u3057\u5bfe\u51e6\u3059\u308b\u3053\u3068\u3082\u52b9\u679c\u7684\u3067\u3059\u3002  \u307e\u305f\u3001\u81ea\u52d5\u5316\u3055\u308c\u305f\u76e3\u8996\u3068\u30a2\u30e9\u30fc\u30c8\u8a2d\u5b9a\u3092\u6574\u5099\u3059\u308b\u3053\u3068\u3082\u63a8\u5968\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u306e\u4f7f\u7528\u7387\u304c\u4e00\u5b9a\u306e\u95be\u5024\u3092\u8d85\u3048\u305f\u969b\u306b\u901a\u77e5\u3092\u53d7\u3051\u3001\u8fc5\u901f\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u4f53\u5236\u3092\u6574\u3048\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001`\/proc\/sys\/fs\/file-max`\u3084`\/proc\/sys\/fs\/file-nr`\u306e\u5024\u3092\u5b9a\u671f\u7684\u306b\u76e3\u8996\u3057\u3001\u95be\u5024\u306b\u8fd1\u3065\u3044\u305f\u6bb5\u968e\u3067\u81ea\u52d5\u7684\u306b\u901a\u77e5\u3084\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3088\u308b\u5bfe\u51e6\u3092\u884c\u3046\u4ed5\u7d44\u307f\u3092\u5c0e\u5165\u3059\u308b\u3053\u3068\u304c\u671b\u307e\u3057\u3044\u3067\u3059\u3002  \u6700\u7d42\u7684\u306b\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30ea\u30bd\u30fc\u30b9\u7ba1\u7406\u3092\u7d99\u7d9a\u7684\u306b\u898b\u76f4\u3057\u3001\u9069\u5207\u306a\u8a2d\u5b9a\u3068\u904b\u7528\u3092\u884c\u3046\u3053\u3068\u304c\u3001ENFILE\u30a8\u30e9\u30fc\u306e\u6839\u672c\u7684\u306a\u6291\u5236\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u53d6\u308a\u7d44\u307f\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u6027\u3068\u4fe1\u983c\u6027\u3092\u9ad8\u3081\u3001\u696d\u52d9\u306e\u7d99\u7d9a\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306e\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u306f\u3001\u6700\u65b0\u306e\u904b\u7528\u72b6\u6cc1\u3092\u628a\u63e1\u3057\u306a\u304c\u3089\u3001\u9069\u5207\u306a\u30ea\u30bd\u30fc\u30b9\u914d\u5206\u3068\u7ba1\u7406\u3092\u5fc3\u304c\u3051\u308b\u3053\u3068\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002    \u203b\u5f53\u793e\u306f\u3001\u7d30\u5fc3\u306e\u6ce8\u610f\u3092\u6255\u3063\u3066\u5f53\u793e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u60c5\u5831\u3092\u63b2\u8f09\u3057\u3066\u304a\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u60c5\u5831\u306e\u6b63\u78ba\u6027\u304a\u3088\u3073\u5b8c\u5168\u6027\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5f53\u793e\u306f\u4e88\u544a\u306a\u3057\u306b\u3001\u5f53\u793e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u63b2\u8f09\u3055\u308c\u3066\u3044\u308b\u60c5\u5831\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5f53\u793e\u304a\u3088\u3073\u305d\u306e\u95a2\u9023\u4f1a\u793e\u306f\u3001\u304a\u5ba2\u3055\u307e\u304c\u5f53\u793e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u542b\u307e\u308c\u308b\u60c5\u5831\u3082\u3057\u304f\u306f\u5185\u5bb9\u3092\u3054\u5229\u7528\u3055\u308c\u305f\u3053\u3068\u3067\u76f4\u63a5\u30fb\u9593\u63a5\u7684\u306b\u751f\u3058\u305f\u640d\u5931\u306b\u95a2\u3057\u4e00\u5207\u8cac\u4efb\u3092\u8ca0\u3046<\/p>\n<h2 class='fukudai'>5\u7ae0<\/h2>\n<p><\/p>\n<p>\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u6027\u3092\u7dad\u6301\u3057\u3001ENFILE\u30a8\u30e9\u30fc\u306e\u518d\u767a\u3092\u9632\u3050\u305f\u3081\u306b\u306f\u3001\u7d99\u7d9a\u7684\u306a\u76e3\u8996\u3068\u9069\u5207\u306a\u30ea\u30bd\u30fc\u30b9\u7ba1\u7406\u306e\u5b9f\u8df5\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u306e\u4e0a\u9650\u5024\u3092\u5b9a\u671f\u7684\u306b\u898b\u76f4\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u8ca0\u8377\u306b\u5fdc\u3058\u305f\u8abf\u6574\u3092\u884c\u3046\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u904e\u5270\u306a\u6d88\u8cbb\u3084\u30ea\u30fc\u30af\u3092\u672a\u7136\u306b\u9632\u304e\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u5b89\u5b9a\u6027\u3092\u78ba\u4fdd\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b5\u30fc\u30d3\u30b9\u306e\u8a2d\u8a08\u6bb5\u968e\u304b\u3089\u30ea\u30bd\u30fc\u30b9\u306e\u9069\u5207\u306a\u89e3\u653e\u3092\u5fb9\u5e95\u3055\u305b\u308b\u3053\u3068\u3082\u52b9\u679c\u7684\u3067\u3059\u3002\u9577\u6642\u9593\u7a3c\u50cd\u3057\u3066\u3044\u308b\u74b0\u5883\u3067\u306f\u3001\u5b9a\u671f\u7684\u306a\u30ea\u30bd\u30fc\u30b9\u306e\u76e3\u67fb\u3084\u4e0d\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u306e\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u30ea\u30bd\u30fc\u30b9\u30ea\u30fc\u30af\u306e\u30ea\u30b9\u30af\u3092\u4f4e\u6e1b\u3067\u304d\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u81ea\u52d5\u5316\u3055\u308c\u305f\u76e3\u8996\u30c4\u30fc\u30eb\u3084\u30a2\u30e9\u30fc\u30c8\u30b7\u30b9\u30c6\u30e0\u3092\u5c0e\u5165\u3057\u3001\u95be\u5024\u3092\u8d85\u3048\u305f\u969b\u306b\u901a\u77e5\u3092\u53d7\u3051\u308b\u4ed5\u7d44\u307f\u3092\u6574\u5099\u3059\u308b\u3053\u3068\u3067\u3001\u30a8\u30e9\u30fc\u306e\u767a\u751f\u3092\u672a\u7136\u306b\u9632\u3050\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u7d99\u7d9a\u7684\u306a\u53d6\u308a\u7d44\u307f\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u4fe1\u983c\u6027\u3092\u9ad8\u3081\u3001\u696d\u52d9\u306e\u5186\u6ed1\u306a\u904b\u55b6\u306b\u5bc4\u4e0e\u3057\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u3084IT\u62c5\u5f53\u8005\u306f\u3001\u73fe\u72b6\u306e\u30ea\u30bd\u30fc\u30b9\u72b6\u6cc1\u3092\u628a\u63e1\u3057\u306a\u304c\u3089\u3001\u9069\u5207\u306a\u8abf\u6574\u3068\u904b\u7528\u6539\u5584\u3092\u9032\u3081\u3066\u3044\u304f\u3053\u3068\u304c\u3001ENFILE\u30a8\u30e9\u30fc\u306e\u6839\u672c\u7684\u306a\u6291\u5236\u306b\u3064\u306a\u304c\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001Linux\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3044\u3066\u983b\u7e41\u306b\u76f4\u9762\u3059\u308bENFILE\uff0823\uff09\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u3001\u305d\u306e\u539f\u56e0\u3068\u8a3a\u65ad\u65b9\u6cd5\u3001\u305d\u3057\u3066\u5177\u4f53\u7684\u306a\u5bfe\u5fdc\u7b56\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002\u30d5\u30a1\u30a4\u30eb\u30c6\u30fc\u30d6\u30eb\u306e\u4e0a\u9650\u306b\u9054\u3059\u308b\u3053\u3068\u304c\u30a8\u30e9\u30fc\u306e\u6839\u672c\u7684\u306a\u539f\u56e0\u3067\u3042\u308a\u3001\u9577\u6642\u9593\u7a3c\u50cd\u3084\u30ea\u30bd\u30fc\u30b9\u306e\u30ea\u30fc\u30af\u3001\u8a2d\u5b9a\u5024\u306e\u4f4e\u3055\u306a\u3069\u304c\u4e3b\u306a\u8981\u56e0\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u554f\u984c\u3092\u672a\u7136\u306b\u9632\u3050\u305f\u3081\u306b\u306f\u3001\u65e5\u3005\u306e\u76e3\u8996\u3068\u30ea\u30bd\u30fc\u30b9\u7ba1\u7406\u306e\u5fb9\u5e95\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u8a2d\u5b9a\u5024\u306e\u898b\u76f4\u3057\u3084\u3001\u30ea\u30bd\u30fc\u30b9\u30ea\u30fc\u30af\u306e\u9632\u6b62\u3001\u76e3\u8996\u30c4\u30fc\u30eb\u306e\u6d3b\u7528\u304c\u6709\u52b9\u3067\u3059\u3002\u307e\u305f\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u9069\u5207\u306a\u5272\u308a\u5f53\u3066\u3068\u5b9a\u671f\u7684\u306a\u898b\u76f4\u3057\u306b\u3088\u308a\u3001\u30a8\u30e9\u30fc\u306e\u518d\u767a\u3092\u6291\u5236\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u6027\u3092\u7dad\u6301\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u3084IT\u62c5\u5f53\u8005\u306f\u3001\u3053\u308c\u3089\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u7406\u89e3\u3057\u3001\u7d99\u7d9a\u7684\u306a\u904b\u7528\u6539\u5584\u306b\u52aa\u3081\u308b\u3053\u3068\u304c\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u4fe1\u983c\u6027\u5411\u4e0a\u306b\u5bc4\u4e0e\u3057\u307e\u3059\u3002\u9069\u5207\u306a\u5bfe\u5fdc\u3092\u7a4d\u307f\u91cd\u306d\u308b\u3053\u3068\u3067\u3001\u696d\u52d9\u3078\u306e\u5f71\u97ff\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5186\u6ed1\u306a\u904b\u7528\u3092\u30b5\u30dd\u30fc\u30c8\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u904b\u7528\u306b\u306f\u3001\u65e5\u3005\u306e\u76e3\u8996\u3068\u9069\u5207\u306a\u30ea\u30bd\u30fc\u30b9\u7ba1\u7406\u304c\u6b20\u304b\u305b\u307e\u305b\u3093\u3002ENFILE\u30a8\u30e9\u30fc\u306e\u5146\u5019\u3092\u898b\u9003\u3055\u305a\u3001\u8fc5\u901f\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u4f53\u5236\u3092\u6574\u3048\u308b\u3053\u3068\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u4fe1\u983c\u6027\u3092\u9ad8\u3081\u3001\u696d\u52d9\u3078\u306e\u5f71\u97ff\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u3082\u3057\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u6700\u9069\u5316\u3084\u76e3\u8996\u4f53\u5236\u306e\u5f37\u5316\u306b\u3064\u3044\u3066\u3054\u4e0d\u660e\u70b9\u304c\u3042\u308c\u3070\u3001\u5c02\u9580\u306e\u30b5\u30dd\u30fc\u30c8\u3084\u30b3\u30f3\u30b5\u30eb\u30c6\u30a3\u30f3\u30b0\u3092\u691c\u8a0e\u3055\u308c\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002\u79c1\u305f\u3061\u306f\u3001\u5b9f\u7e3e\u306b\u57fa\u3065\u304f\u30a2\u30c9\u30d0\u30a4\u30b9\u3068\u78ba\u304b\u306a\u6280\u8853\u529b\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u6027\u5411\u4e0a\u3092\u304a\u624b\u4f1d\u3044\u3044\u305f\u3057\u307e\u3059\u3002\u307e\u305a\u306f\u304a\u6c17\u8efd\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u3044\u305f\u3060\u304d\u3001\u73fe\u72b6\u306e\u30b7\u30b9\u30c6\u30e0\u904b\u7528\u72b6\u6cc1\u306b\u3064\u3044\u3066\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002\u9069\u5207\u306a\u5bfe\u7b56\u3092\u8b1b\u3058\u308b\u3053\u3068\u3067\u3001\u5b89\u5fc3\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u3092\u904b\u7528\u3057\u7d9a\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u74b0\u5883\u3065\u304f\u308a\u306b\u304a\u5f79\u7acb\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p>ENFILE\u30a8\u30e9\u30fc\u306e\u5bfe\u7b56\u3092\u884c\u3046\u969b\u306b\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8\u306b\u6ce8\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u8a2d\u5b9a\u5024\u3092\u5909\u66f4\u3059\u308b\u5834\u5408\u306f\u3001\u5341\u5206\u306a\u7406\u89e3\u3068\u614e\u91cd\u3055\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u904e\u5ea6\u306b\u4e0a\u9650\u5024\u3092\u5f15\u304d\u4e0a\u3052\u308b\u3053\u3068\u306f\u3001\u4ed6\u306e\u30b7\u30b9\u30c6\u30e0\u30ea\u30bd\u30fc\u30b9\u3084\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u60aa\u5f71\u97ff\u3092\u53ca\u307c\u3059\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u4e8b\u524d\u306b\u8ca0\u8377\u72b6\u6cc1\u3084\u904b\u7528\u74b0\u5883\u3092\u8a73\u7d30\u306b\u628a\u63e1\u3057\u305f\u4e0a\u3067\u8abf\u6574\u3092\u884c\u3046\u3053\u3068\u304c\u671b\u307e\u3057\u3044\u3067\u3059\u3002\u6b21\u306b\u3001\u30ea\u30bd\u30fc\u30b9\u30ea\u30fc\u30af\u306e\u9632\u6b62\u7b56\u3068\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u8a08\u898b\u76f4\u3057\u3084\u904b\u7528\u6539\u5584\u3092\u884c\u3046\u969b\u306b\u306f\u3001\u5341\u5206\u306a\u30c6\u30b9\u30c8\u3068\u76e3\u67fb\u3092\u5b9f\u65bd\u3057\u3001\u554f\u984c\u3092\u672a\u7136\u306b\u9632\u3050\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u7279\u306b\u3001\u9577\u6642\u9593\u7a3c\u50cd\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u3001\u5b9a\u671f\u7684\u306a\u30ea\u30bd\u30fc\u30b9\u306e\u76e3\u67fb\u3068\u4e0d\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30bd\u30b1\u30c3\u30c8\u306e\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u3092\u6020\u3089\u306a\u3044\u3053\u3068\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u307e\u305f\u3001\u76e3\u8996\u30b7\u30b9\u30c6\u30e0\u3084\u30a2\u30e9\u30fc\u30c8\u8a2d\u5b9a\u306f\u3001\u8aa4\u3063\u305f\u95be\u5024\u8a2d\u5b9a\u3084\u901a\u77e5\u306e\u9045\u308c\u304c\u306a\u3044\u3088\u3046\u306b\u9069\u5207\u306b\u8abf\u6574\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u72b6\u614b\u3092\u6b63\u78ba\u306b\u53cd\u6620\u3055\u305b\u308b\u3053\u3068\u304c\u5fc5\u8981\u3067\u3059\u3002\u6700\u5f8c\u306b\u3001\u30ea\u30bd\u30fc\u30b9\u7ba1\u7406\u306e\u5909\u66f4\u3084\u8a2d\u5b9a\u306e\u8abf\u6574\u306f\u3001\u904b\u7528\u4e2d\u306e\u30b7\u30b9\u30c6\u30e0\u306b\u5bfe\u3057\u3066\u884c\u3046\u5834\u5408\u306f\u7279\u306b\u6ce8\u610f\u3057\u3001\u5f71\u97ff\u7bc4\u56f2\u3092\u8003\u616e\u3057\u305f\u4e0a\u3067\u3001\u8a08\u753b\u7684\u306b\u5b9f\u65bd\u3059\u308b\u3053\u3068\u304c\u671b\u307e\u3057\u3044\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u6ce8\u610f\u70b9\u3092\u5b88\u308b\u3053\u3068\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u6027\u3068\u4fe1\u983c\u6027\u3092\u9ad8\u3081\u3001\u4e88\u671f\u305b\u306c\u30c8\u30e9\u30d6\u30eb\u3092\u672a\u7136\u306b\u9632\u3050\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2 class='fukudai'>\u88dc\u8db3\u60c5\u5831<\/h2>\n<p><\/p>\n<p>\u203b\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240\u306f\uff08\u4ee5\u4e0b\u3001\u5f53\u793e\uff09\u306f\u3001\u7d30\u5fc3\u306e\u6ce8\u610f\u3092\u6255\u3063\u3066\u5f53\u793e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u60c5\u5831\u3092\u63b2\u8f09\u3057\u3066\u304a\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u60c5\u5831\u306e\u6b63\u78ba\u6027\u304a\u3088\u3073\u5b8c\u5168\u6027\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5f53\u793e\u306f\u4e88\u544a\u306a\u3057\u306b\u3001\u5f53\u793e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u63b2\u8f09\u3055\u308c\u3066\u3044\u308b\u60c5\u5831\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5f53\u793e\u304a\u3088\u3073\u305d\u306e\u95a2\u9023\u4f1a\u793e\u306f\u3001\u304a\u5ba2\u3055\u307e\u304c\u5f53\u793e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u542b\u307e\u308c\u308b\u60c5\u5831\u3082\u3057\u304f\u306f\u5185\u5bb9\u3092\u3054\u5229\u7528\u3055\u308c\u305f\u3053\u3068\u3067\u76f4\u63a5\u30fb\u9593\u63a5\u7684\u306b\u751f\u3058\u305f\u640d\u5931\u306b\u95a2\u3057\u4e00\u5207\u8cac\u4efb\u3092\u8ca0\u3046\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u77ed\u30c1\u30a7\u30c3\u30af Linux ENFILE (23) \u3092\u3001\u6b62\u3081\u305a\u306b\u898b\u6975\u3081\u308b\u305f\u3081\u306e\u78ba\u8a8d\u30dd\u30a4\u30f3\u30c8 \u300c\u3044\u304d\u306a\u308a\u4e0a\u9650\u3092\u4e0a\u3052\u308b\u300d\u3067\u306f\u306a\u304f\u3001\u307e\u305a\u4e89\u70b9\u3092\u7d5e\u3063\u3066\u3001\u6700\u5c0f\u5909\u66f4\u3067\u5f71\u97ff\u7bc4\u56f2\u3092\u898b\u306a\u304c\u3089\u5224\u65ad\u3057\u305f\u3044\u5834\u9762\u5411\u3051\u306e\u8981\u70b9\u3067\u3059\u3002 1 30\u79d2\u3067\u4e89\u70b9\u3092 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"","site-content-layout":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[62],"tags":[56,50,43],"class_list":["post-42393","post","type-post","status-publish","format-standard","hentry","category-1-","tag-56","tag-50","tag-43"],"_links":{"self":[{"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=\/wp\/v2\/posts\/42393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=42393"}],"version-history":[{"count":2,"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=\/wp\/v2\/posts\/42393\/revisions"}],"predecessor-version":[{"id":69942,"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=\/wp\/v2\/posts\/42393\/revisions\/69942"}],"wp:attachment":[{"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=42393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=42393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=42393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}