{"id":42392,"date":"2025-06-22T19:15:41","date_gmt":"2025-06-22T10:15:41","guid":{"rendered":"https:\/\/jouhou.main.jp\/?p=42392"},"modified":"2026-04-03T17:02:42","modified_gmt":"2026-04-03T08:02:42","slug":"linux-enfile-23-%e8%a7%a3%e8%aa%ac%ef%bc%9a%e3%82%b7%e3%82%b9%e3%83%86%e3%83%a0%e5%85%a8%e4%bd%93%e3%81%ae%e3%82%aa%e3%83%bc%e3%83%97%e3%83%b3%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e4%b8%8a%e9%99%90","status":"publish","type":"post","link":"https:\/\/jouhou.main.jp\/?p=42392","title":{"rendered":"Linux ENFILE (23) \u89e3\u8aac\uff1a\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u30aa\u30fc\u30d7\u30f3\u30d5\u30a1\u30a4\u30eb\u4e0a\u9650\u30a8\u30e9\u30fc\u306e\u7ba1\u7406\u3068\u5bfe\u7b56\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; margin:0 0 24px 0;\">\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.4; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">ENFILE \u306f\u300c\u500b\u5225\u8a2d\u5b9a\u300d\u3067\u306f\u306a\u304f\u300c\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u67a0\u300d\u3092\u898b\u306a\u3044\u3068\u518d\u767a\u3057\u3084\u3059\u3044<\/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;\">\u30ec\u30ac\u30b7\u30fc\u74b0\u5883\u3084\u6b62\u3081\u306b\u304f\u3044\u672c\u756a\u3067\u306f\u3001\u5358\u7d14\u306a\u4e0a\u9650\u5f15\u304d\u4e0a\u3052\u3088\u308a\u5148\u306b\u3001\u4e89\u70b9\u306e\u5207\u308a\u5206\u3051\u3068\u5f71\u97ff\u7bc4\u56f2\u306e\u898b\u6975\u3081\u304c\u52b9\u304d\u3084\u3059\u3044\u3067\u3059\u3002<\/p>\n<\/p><\/div>\n<div style=\"max-width:100%; box-sizing:border-box; overflow:visible; border:1px solid #fecaca; border-radius:3px; padding:14px; background:#fff7f7; margin:0 0 14px 0;\">\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; font-weight:700; box-sizing:border-box;\">1<\/span> <strong style=\"margin-left:8px; font-size:18px; line-height:1.6; 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;\">ENFILE \u306f\u300c\u305d\u306e\u30d7\u30ed\u30bb\u30b9\u3060\u3051\u304c\u591a\u3044\u300d\u306e\u3067\u306f\u306a\u304f\u3001OS \u5168\u4f53\u3067\u958b\u3051\u308b\u30d5\u30a1\u30a4\u30eb\u6570\u306e\u4e0a\u9650\u306b\u8fd1\u3065\u3044\u3066\u3044\u308b\u30b5\u30a4\u30f3\u3067\u3059\u3002\u307e\u305a\u306f EMFILE \u3068\u6df7\u540c\u305b\u305a\u3001\u5168\u4f53\u4e0a\u9650\u304b\u3001\u30ea\u30fc\u30af\u304b\u3001\u6025\u5897\u304b\u3092\u5207\u308a\u5206\u3051\u308b\u3068\u5224\u65ad\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; border:1px solid #bbf7d0; border-radius:3px; padding:14px; background:#f6fff8; margin:0 0 14px 0;\">\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; font-weight:700; box-sizing:border-box;\">2<\/span> <strong style=\"margin-left:8px; font-size:18px; line-height:1.6; 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 10px 0; font-size:14px; line-height:1.8; color:#374151; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u6700\u5c0f\u5909\u66f4\u3067\u9032\u3081\u308b\u306b\u306f\u3001\u300c\u3069\u306e\u4e89\u70b9\u304b\u300d\u3067\u624b\u9806\u3092\u5206\u3051\u3066\u8003\u3048\u308b\u307b\u3046\u304c\u5b89\u5168\u3067\u3059\u3002\u30b1\u30fc\u30b9\u3054\u3068\u306b\u9078\u629e\u3068\u884c\u52d5\u3092\u6574\u7406\u3059\u308b\u3068\u3001\u4e0a\u53f8\u3084\u95a2\u4fc2\u90e8\u7f72\u306b\u3082\u8aac\u660e\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<div style=\"border:1px solid #d1d5db; border-radius:3px; padding:10px; background:#ffffff; margin:0 0 10px 0; max-width:100%; box-sizing:border-box; overflow:visible;\">\n<p style=\"margin:0 0 8px 0; font-size:15px; font-weight:700; line-height:1.7; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u4e89\u70b9\uff1a\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e open files \u304c\u4e0a\u9650\u306b\u5f35\u308a\u4ed8\u3044\u3066\u3044\u308b<\/p>\n<pre style=\"margin:0; padding:10px; border-radius:3px; background:#000000; color:#ffffff; 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\u306e\u5f15\u304d\u4e0a\u3052\u3060\u3051\u3067\u7d42\u308f\u3089\u305b\u305a\u3001fs.file-max \u3068\u5b9f\u4f7f\u7528\u91cf\u306e\u5dee\u5206\u3092\u78ba\u8a8d\u3057\u306a\u304c\u3089\u3001\n\u6025\u5897\u306e\u767a\u751f\u6642\u523b\u30fb\u5897\u3048\u65b9\u30fb\u3069\u306e\u7cfb\u7d71\u3067\u5897\u3048\u305f\u304b\u3092\u8ffd\u3046\u3002\n\u672c\u756a\u306f\u6700\u5c0f\u5909\u66f4\u3067\u3001\u76e3\u8996\u8ffd\u52a0\u2192\u539f\u56e0\u5019\u88dc\u306e\u7d5e\u308a\u8fbc\u307f\u2192\u6052\u4e45\u5bfe\u7b56\u306e\u9806\u304c\u53ce\u675f\u3057\u3084\u3059\u3044\u3002<\/pre>\n<\/div>\n<div style=\"border:1px solid #d1d5db; border-radius:3px; padding:10px; background:#ffffff; margin:0 0 10px 0; max-width:100%; box-sizing:border-box; overflow:visible;\">\n<p style=\"margin:0 0 8px 0; font-size:15px; font-weight:700; line-height:1.7; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u4e89\u70b9\uff1a\u7279\u5b9a\u30b5\u30fc\u30d3\u30b9\u3084\u30d0\u30c3\u30c1\u306e\u30ea\u30fc\u30af\u304c\u7591\u308f\u3057\u3044<\/p>\n<pre style=\"margin:0; padding:10px; border-radius:3px; background:#111827; color:#ffffff; white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; max-width:100%; box-sizing:border-box;\">\u9078\u629e\u3068\u884c\u52d5:\n\u4e0a\u9650\u5024\u3092\u5148\u306b\u5927\u304d\u304f\u3059\u308b\u3088\u308a\u3001\u518d\u73fe\u6761\u4ef6\u30fb\u30ea\u30ea\u30fc\u30b9\u5dee\u5206\u30fb\u63a5\u7d9a\u5148\u4f9d\u5b58\u3092\u898b\u76f4\u3059\u3002\n\u9577\u6642\u9593\u7a3c\u50cd\u30d7\u30ed\u30bb\u30b9\u3001\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3001\u30bd\u30b1\u30c3\u30c8\u3084\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u5468\u8fba\u3092\u91cd\u70b9\u78ba\u8a8d\u3057\u3001\n\u4fee\u6b63\u524d\u306b\u5f71\u97ff\u7bc4\u56f2\u3092\u898b\u7a4d\u3082\u308b\u3068\u624b\u623b\u308a\u304c\u6e1b\u308a\u3084\u3059\u3044\u3002<\/pre>\n<\/div>\n<div style=\"border:1px solid #d1d5db; border-radius:3px; padding:10px; background:#ffffff; margin:0; max-width:100%; box-sizing:border-box; overflow:visible;\">\n<p style=\"margin:0 0 8px 0; font-size:15px; font-weight:700; line-height:1.7; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u4e89\u70b9\uff1a\u30b3\u30f3\u30c6\u30ca\u30fb\u5171\u6709\u57fa\u76e4\u30fb\u8907\u6570\u30b5\u30fc\u30d3\u30b9\u3067\u8ca0\u8377\u304c\u91cd\u306a\u3063\u3066\u3044\u308b<\/p>\n<pre style=\"margin:0; padding:10px; border-radius:3px; background:#000000; color:#ffffff; 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\u4f53\u30db\u30b9\u30c8\u306e\u611f\u899a\u3067\u6a29\u9650\u3084\u5236\u9650\u5024\u3060\u3051\u3092\u89e6\u308b\u3068\u3001\u5225\u30b5\u30fc\u30d3\u30b9\u3078\u5f71\u97ff\u304c\u6ce2\u53ca\u3057\u3084\u3059\u3044\u3002\n\u30ce\u30fc\u30c9\u5168\u4f53\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u672c\u756a\u30c7\u30fc\u30bf\u3001\u76e3\u67fb\u8981\u4ef6\u3092\u542b\u3081\u3066\u6574\u7406\u3057\u3001\n\u5909\u66f4\u524d\u306b\u95a2\u4fc2\u8005\u3068\u78ba\u8a8d\u7dda\u3092\u5f15\u3044\u3066\u304a\u304f\u3068\u5b89\u5168\u306b\u9032\u3081\u3084\u3059\u3044\u3002<\/pre>\n<\/div>\n<\/div>\n<div style=\"max-width:100%; box-sizing:border-box; overflow:visible; border:1px solid #bfdbfe; border-radius:3px; padding:14px; background:#f7fbff; margin:0 0 14px 0;\">\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; font-weight:700; box-sizing:border-box;\">3<\/span> <strong style=\"margin-left:8px; font-size:18px; line-height:1.6; 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;\">ENFILE \u306f\u30a2\u30d7\u30ea\u6539\u4fee\u3060\u3051\u3067\u9589\u3058\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u30ce\u30fc\u30c9\u5168\u4f53\u3001\u95a2\u9023\u30b8\u30e7\u30d6\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u76e3\u8996\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u76e3\u67fb\u30ed\u30b0\u307e\u3067\u898b\u6e21\u3059\u3068\u3001\u300c\u3069\u3053\u307e\u3067\u304c\u5909\u66f4\u5bfe\u8c61\u304b\u300d\u3092\u5148\u306b\u5b9a\u3081\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/p><\/div>\n<div style=\"max-width:100%; box-sizing:border-box; overflow:visible; border:1px solid #fed7aa; border-radius:3px; padding:14px; background:#fff7ed; margin:0 0 14px 0;\">\n<h3 style=\"margin:0 0 10px 0; font-size:20px; line-height:1.5; color:#9a3412; 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;\">EMFILE \u3068\u53d6\u308a\u9055\u3048\u305f\u307e\u307e\u5bfe\u51e6\u3057\u3001\u539f\u56e0\u304c\u6b8b\u3063\u3066\u518d\u767a\u3057\u3084\u3059\u304f\u306a\u308b<\/li>\n<li style=\"margin:0 0 8px 0; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u4e0a\u9650\u5024\u3060\u3051\u3092\u5f15\u304d\u4e0a\u3052\u3001\u30ea\u30fc\u30af\u306e\u767a\u898b\u304c\u9045\u308c\u3066\u969c\u5bb3\u306e\u898b\u3048\u65b9\u304c\u60aa\u304f\u306a\u308b<\/li>\n<li style=\"margin:0 0 8px 0; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u5171\u6709\u57fa\u76e4\u3084\u30b3\u30f3\u30c6\u30ca\u306e\u524d\u63d0\u3092\u898b\u843d\u3068\u3057\u3001\u5225\u7cfb\u7d71\u307e\u3067\u5f71\u97ff\u304c\u5e83\u304c\u308b<\/li>\n<li style=\"margin:0; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\">\u76e3\u67fb\u3084\u672c\u756a\u30c7\u30fc\u30bf\u306e\u6761\u4ef6\u6574\u7406\u304c\u8db3\u308a\u305a\u3001\u5909\u66f4\u5f8c\u306e\u8aac\u660e\u8ca0\u8377\u304c\u5897\u3048\u3084\u3059\u304f\u306a\u308b<\/li>\n<\/ul><\/div>\n<div style=\"max-width:100%; box-sizing:border-box; overflow:visible; border:1px solid #c7d2fe; border-radius:3px; padding:14px; background:#f8faff; margin:0;\">\n<h3 style=\"margin:0 0 10px 0; font-size:20px; line-height:1.5; color:#1e3a8a; 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 12px 0; font-size:14px; line-height:1.8; color:#374151; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\"><strong>\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240<\/strong>\u3078\u7121\u6599\u76f8\u8ac7\u3002\u73fe\u5834\u306e\u6b62\u3081\u306b\u304f\u3055\u3084\u8aac\u660e\u306e\u96e3\u3057\u3055\u3092\u8e0f\u307e\u3048\u3066\u3001\u6700\u5c0f\u5909\u66f4\u30fb\u5f71\u97ff\u7bc4\u56f2\u30fb\u518d\u767a\u9632\u6b62\u306e\u89b3\u70b9\u3067\u6574\u7406\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<div style=\"margin:0 0 12px 0; font-size:12px; line-height:1.9; color:#4b5563; overflow-wrap:anywhere; max-width:100%; box-sizing:border-box;\"> \u4e0a\u9650\u5909\u66f4\u3060\u3051\u3067\u3088\u3044\u304b\u3067\u8ff7\u3063\u305f\u3089\u3002<br \/> \u30ea\u30fc\u30af\u5207\u308a\u5206\u3051\u306e\u8a3a\u65ad\u304c\u3067\u304d\u306a\u3044\u3002<br \/> \u30b3\u30f3\u30c6\u30ca\u3068\u30db\u30b9\u30c8\u306e\u8cac\u4efb\u5206\u754c\u3067\u8ff7\u3063\u305f\u3089\u3002<br \/> \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\u307f\u3001\u7121\u7406\u306b\u6a29\u9650\u3092\u89e6\u308b\u524d\u306b\u76f8\u8ac7\u3057\u305f\u3044\u3002<br \/> \u3069\u3053\u307e\u3067\u304c\u5f71\u97ff\u7bc4\u56f2\u304b\u8aac\u660e\u3057\u306b\u304f\u3044\u3002<br \/> \u672c\u756a\u505c\u6b62\u306a\u3057\u3067\u9032\u3081\u3089\u308c\u308b\u304b\u3067\u8ff7\u3063\u305f\u3089\u3002<br \/> \u5f79\u54e1\u3084\u4e0a\u53f8\u3078\u306e\u6574\u7406\u6750\u6599\u304c\u8db3\u308a\u306a\u3044\u3002<br \/> \u6052\u4e45\u5bfe\u7b56\u3068\u66ab\u5b9a\u5bfe\u5fdc\u306e\u5f15\u304d\u65b9\u3067\u8ff7\u3063\u305f\u3089\u3002 <\/div>\n<div style=\"max-width:100%; box-sizing:border-box; overflow:visible; margin:0 0 12px 0;\"> <a href=\"https:\/\/jouhou.main.jp\/?page_id=26983\" style=\"display:inline-block; margin:0 8px 8px 0; padding:10px 14px; background:#2563eb; color:#ffffff; text-decoration:none; border-radius:3px; font-size:14px; line-height:1.4; 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; margin:0 8px 8px 0; padding:10px 14px; background:#1e3a8a; color:#ffffff; text-decoration:none; border-radius:3px; font-size:14px; line-height:1.4; 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; margin:0 0 8px 0; padding:10px 14px; background:#0b1f4b; color:#ffffff; text-decoration:none; border-radius:3px; font-size:14px; line-height:1.4; 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 ENFILE\u3001\u30a2\u30d7\u30ea\u306e\u4e0d\u5177\u5408\u3067\u306f\u306a\u304f\u300c\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u4e0a\u9650\u300d\u306b\u5f53\u305f\u3063\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u306a\u3044<\/a><\/li>\n<li style=\"margin:40px 0;\"><a href=\"#sec02\">\u7b2c2\u7ae0\uff1aEMFILE \u3068\u306e\u9055\u3044\u3092\u62bc\u3055\u3048\u308b\u3068\u3001\u306a\u305c\u4e00\u90e8\u4fee\u6b63\u3067\u306f\u518d\u767a\u3059\u308b\u306e\u304b\u304c\u898b\u3048\u3066\u304f\u308b<\/a><\/li>\n<li style=\"margin:40px 0;\"><a href=\"#sec03\">\u7b2c3\u7ae0\uff1a\u307e\u305a\u7591\u3046\u3079\u304d\u306f\u3069\u3053\u304b\u2015\u2015 open files\u30fbfs.file-max\u30fb\u30ea\u30fc\u30af\u306e\u5207\u308a\u5206\u3051\u3067\u4e89\u70b9\u3092\u7d5e\u308b<\/a><\/li>\n<li style=\"margin:40px 0;\"><a href=\"#sec04\">\u7b2c4\u7ae0\uff1a\u4e0a\u9650\u7de9\u548c\u3060\u3051\u3067\u306f\u5371\u306a\u3044\u7406\u7531\u2015\u2015 \u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3084\u30b3\u30f3\u30c6\u30ca\u3067\u5f71\u97ff\u304c\u5e83\u304c\u308b\u6761\u4ef6\u3092\u8aad\u3080<\/a><\/li>\n<li style=\"margin:40px 0;\"><a href=\"#sec05\">\u7b2c5\u7ae0\uff1a\u6b62\u3081\u306b\u304f\u3044\u672c\u756a\u3067\u3069\u3046\u76f4\u3059\u304b\u2015\u2015 \u6700\u5c0f\u5909\u66f4\u3067\u5b89\u5168\u306b\u9032\u3081\u308b\u6052\u4e45\u5bfe\u7b56\u3068\u904b\u7528\u8a2d\u8a08<\/a><\/li>\n<li style=\"margin:40px 0;\"><a href=\"#sec06\">\u7b2c6\u7ae0\uff1a\u73fe\u5834\u8aac\u660e\u307e\u3067\u542b\u3081\u3066\u7247\u3065\u3051\u308b\u2015\u2015 ENFILE \u5bfe\u5fdc\u3092\u300c\u305d\u306e\u5834\u3057\u306e\u304e\u300d\u3067\u7d42\u308f\u3089\u305b\u306a\u3044\u5224\u65ad\u8ef8<\/a><\/li>\n<\/ul><\/div>\n<p>\u3010\u6ce8\u610f\u3011Linux \u306e ENFILE\uff08\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u30aa\u30fc\u30d7\u30f3\u30d5\u30a1\u30a4\u30eb\u4e0a\u9650\u5230\u9054\uff09\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u500b\u5225\u306e\u4e0d\u5177\u5408\u306b\u898b\u3048\u3066\u3082\u3001OS \u5168\u4f53\u30fb\u5171\u6709\u57fa\u76e4\u30fb\u5468\u8fba\u30b5\u30fc\u30d3\u30b9\u307e\u3067\u5f71\u97ff\u304c\u53ca\u3076\u3053\u3068\u304c\u3042\u308b\u305f\u3081\u3001\u307e\u305a\u306f\u81ea\u529b\u3067\u8a2d\u5b9a\u5024\u3084\u6a29\u9650\u3092\u5927\u304d\u304f\u52d5\u304b\u3055\u305a\u3001\u5f71\u97ff\u7bc4\u56f2\u3092\u898b\u6975\u3081\u308b\u5b89\u5168\u306a\u521d\u52d5\u3092\u512a\u5148\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u7279\u306b\u672c\u756a\u74b0\u5883\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u30b3\u30f3\u30c6\u30ca\u3001\u76e3\u67fb\u8981\u4ef6\u304c\u95a2\u308f\u308b\u5834\u5408\u306f\u3001\u4e00\u822c\u8ad6\u3060\u3051\u3067\u5224\u65ad\u305b\u305a\u3001<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\u3059\u308b\u3053\u3068\u304c\u53ce\u675f\u3092\u65e9\u3081\u308b\u8fd1\u9053\u306b\u306a\u308a\u307e\u3059\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 ENFILE\u3001\u30a2\u30d7\u30ea\u306e\u4e0d\u5177\u5408\u3067\u306f\u306a\u304f\u300c\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u4e0a\u9650\u300d\u306b\u5f53\u305f\u3063\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u306a\u3044<\/h2>\n<p>Linux \u3067 ENFILE \u304c\u51fa\u305f\u3068\u304d\u3001\u6700\u521d\u306b\u62bc\u3055\u3048\u305f\u3044\u306e\u306f\u300c\u3042\u308b 1 \u30d7\u30ed\u30bb\u30b9\u304c\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3059\u304e\u305f\u300d\u306e\u3067\u306f\u306a\u304f\u3001\u300c\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u3067\u958b\u3051\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u7dcf\u91cf\u306b\u9054\u3057\u305f\u53ef\u80fd\u6027\u304c\u3042\u308b\u300d\u3068\u3044\u3046\u70b9\u3067\u3059\u3002Linux \u306e open(2) \u3067\u306f\u3001ENFILE \u306f system-wide limit on the total number of open files\u3001\u3064\u307e\u308a\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u7dcf\u91cf\u4e0a\u9650\u306b\u9054\u3057\u305f\u5834\u5408\u306e\u30a8\u30e9\u30fc\u3068\u3057\u3066\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001RLIMIT_NOFILE \u306b\u3088\u308b\u30d7\u30ed\u30bb\u30b9\u5358\u4f4d\u306e\u4e0a\u9650\u3067\u8d77\u3053\u308b EMFILE \u3068\u306f\u610f\u5473\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u73fe\u5834\u3067\u306f\u3001\u76e3\u8996\u753b\u9762\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30ed\u30b0\u306b\u300c\u30d5\u30a1\u30a4\u30eb\u304c\u958b\u3051\u306a\u3044\u300d\u300c\u30bd\u30b1\u30c3\u30c8\u751f\u6210\u306b\u5931\u6557\u3057\u305f\u300d\u300c\u4e00\u90e8 API \u3060\u3051\u4e0d\u5b89\u5b9a\u300d\u3068\u3044\u3063\u305f\u5f62\u3067\u73fe\u308c\u3001\u6700\u521d\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5074\u306e\u30d0\u30b0\u3084\u63a5\u7d9a\u5148\u969c\u5bb3\u306b\u898b\u3048\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057 Linux \u306e\u30de\u30cb\u30e5\u30a2\u30eb\u3067\u306f\u3001open(2) \u3060\u3051\u3067\u306a\u304f accept(2) \u3084 socket(2) \u306a\u3069\u3067\u3082 ENFILE \u304c\u8fd4\u308a\u5f97\u308b\u3068\u3055\u308c\u3066\u304a\u308a\u3001\u5358\u7d14\u306a\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u306b\u9650\u3089\u305a\u3001\u901a\u4fe1\u3084\u5468\u8fba\u51e6\u7406\u307e\u3067\u5dfb\u304d\u8fbc\u3093\u3067\u75c7\u72b6\u304c\u5e83\u304c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u307e\u305a\u306f\u300c\u75c7\u72b6 \u2192 \u53d6\u308b\u3079\u304d\u884c\u52d5\u300d\u3092\u5148\u306b\u6574\u7406\u3059\u308b<\/h3>\n<p>\u6025\u3044\u3067\u3044\u308b\u5834\u9762\u307b\u3069\u3001\u5bfe\u51e6\u3092\u5897\u3084\u3059\u3088\u308a\u5148\u306b\u3001\u75c7\u72b6\u3068\u521d\u52d5\u3092\u63c3\u3048\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002ENFILE \u306f\u300c\u4f55\u3092\u5897\u3084\u305b\u3070\u76f4\u308b\u304b\u300d\u3088\u308a\u524d\u306b\u3001\u300c\u3069\u306e\u5c64\u3067\u7dcf\u91cf\u304c\u8a70\u307e\u3063\u3066\u3044\u308b\u304b\u300d\u3092\u898b\u308b\u3079\u304d\u969c\u5bb3\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u8868\u306f\u3001\u5192\u982d 30 \u79d2\u304b\u3089\u6570\u5206\u3067\u4e89\u70b9\u3092\u7d5e\u308b\u305f\u3081\u306e\u6574\u7406\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; text-align:left;\">\u75c7\u72b6<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u898b\u3066\u3044\u308b\u3079\u304d\u53ef\u80fd\u6027<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u6700\u521d\u306b\u53d6\u308b\u3079\u304d\u884c\u52d5<\/th>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">open() \u3084 socket() \u3067 ENFILE \u304c\u51fa\u308b<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e open files \u7dcf\u91cf\u304c\u4e0a\u9650\u306b\u8fd1\u3044\u3001\u307e\u305f\u306f\u5230\u9054\u3057\u3066\u3044\u308b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30a2\u30d7\u30ea\u5358\u4f53\u3060\u3051\u3092\u7591\u308f\u305a\u3001\u30db\u30b9\u30c8\u5168\u4f53\u306e open files \u4f7f\u7528\u91cf\u3001\u6025\u5897\u30bf\u30a4\u30df\u30f3\u30b0\u3001\u540c\u5c45\u30b5\u30fc\u30d3\u30b9\u306e\u52d5\u304d\u3092\u78ba\u8a8d\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u7279\u5b9a\u306e 1 \u30b5\u30fc\u30d3\u30b9\u518d\u8d77\u52d5\u3067\u4e00\u6642\u7684\u306b\u9759\u304b\u306b\u306a\u308b<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u305d\u306e\u30b5\u30fc\u30d3\u30b9\u306e\u30ea\u30fc\u30af\u3001\u307e\u305f\u306f\u8ca0\u8377\u96c6\u4e2d\u306e\u53ef\u80fd\u6027<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u76f4\u8fd1\u30ea\u30ea\u30fc\u30b9\u5dee\u5206\u3001\u63a5\u7d9a\u5148\u5909\u66f4\u3001\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3001\u9577\u6642\u9593\u7a3c\u50cd\u51e6\u7406\u3092\u78ba\u8a8d\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u8907\u6570\u30b5\u30fc\u30d3\u30b9\u304c\u540c\u6642\u306b\u4e0d\u5b89\u5b9a<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30ce\u30fc\u30c9\u5168\u4f53\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u30b3\u30f3\u30c6\u30ca\u5bc6\u5ea6\u3001\u5171\u901a\u57fa\u76e4\u5074\u306e\u7dcf\u91cf\u903c\u8feb<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5f71\u97ff\u7bc4\u56f2\u3092\u30db\u30b9\u30c8\u5358\u4f4d\u30fb\u30ce\u30fc\u30c9\u5358\u4f4d\u3067\u78ba\u8a8d\u3057\u3001\u500b\u5225\u30a2\u30d7\u30ea\u4fee\u6b63\u306b\u98db\u3070\u306a\u3044<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">ulimit \u3092\u4e0a\u3052\u3066\u3082\u518d\u767a\u3059\u308b<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">EMFILE \u3067\u306f\u306a\u304f ENFILE\u3001\u307e\u305f\u306f\u30ea\u30fc\u30af\u3092\u5024\u5909\u66f4\u3067\u898b\u3048\u306b\u304f\u304f\u3057\u3066\u3044\u308b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30d7\u30ed\u30bb\u30b9\u5358\u4f4d\u3068\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u4e0a\u9650\u3092\u5206\u3051\u3066\u898b\u76f4\u3057\u3001\u66ab\u5b9a\u63aa\u7f6e\u3068\u6052\u4e45\u5bfe\u7b56\u3092\u5206\u96e2\u3059\u308b<\/td>\n<\/tr>\n<\/table>\n<p>\u3053\u306e\u6574\u7406\u304c\u91cd\u8981\u306a\u306e\u306f\u3001ENFILE \u306e\u539f\u56e0\u8aac\u660e\u304c\u300c\u305d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u60aa\u3044\u300d\u3067\u7d42\u308f\u3089\u306a\u3044\u304b\u3089\u3067\u3059\u3002Linux \u306e \/proc\/sys\/fs\/file-max \u306f\u3001\u30ab\u30fc\u30cd\u30eb\u304c\u78ba\u4fdd\u3067\u304d\u308b file handles \u306e\u6700\u5927\u6570\u3092\u793a\u3059\u5024\u3067\u3042\u308a\u3001man5 proc_sys_fs \u3067\u3082\u3001\u3053\u306e\u4e0a\u9650\u306b\u9054\u3057\u305f\u3068\u304d\u306b\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u304c ENFILE \u3067\u5931\u6557\u3059\u308b\u3068\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u8abf\u6574\u5bfe\u8c61\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb 1 \u679a\u3067\u9589\u3058\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002<\/p>\n<hr>\n<h3>\u306a\u305c\u300c\u8a2d\u5b9a\u5024\u3092\u4e0a\u3052\u308c\u3070\u7d42\u308f\u308a\u300d\u3067\u306f\u306a\u3044\u306e\u304b<\/h3>\n<p>\u672c\u756a\u73fe\u5834\u3067\u3042\u308a\u304c\u3061\u306a\u306e\u306f\u3001\u969c\u5bb3\u3092\u65e9\u304f\u30af\u30fc\u30eb\u30c0\u30a6\u30f3\u3055\u305b\u305f\u3044\u3042\u307e\u308a\u3001ulimit \u3084\u5404\u7a2e\u4e0a\u9650\u5024\u3060\u3051\u3092\u5148\u306b\u5f15\u304d\u4e0a\u3052\u308b\u5224\u65ad\u3067\u3059\u3002\u3082\u3061\u308d\u3093\u3001\u30b5\u30fc\u30d3\u30b9\u7d99\u7d9a\u306e\u305f\u3081\u306b\u66ab\u5b9a\u7684\u306a\u6291\u3048\u8fbc\u307f\u304c\u5fc5\u8981\u306a\u5c40\u9762\u306f\u3042\u308a\u307e\u3059\u3002\u305f\u3060\u3057 ENFILE \u306f\u3001\u7dcf\u91cf\u306e\u903c\u8feb\u3092\u4e00\u6642\u7684\u306b\u5148\u9001\u308a\u3067\u304d\u3066\u3082\u3001\u5897\u3048\u7d9a\u3051\u308b\u539f\u56e0\u305d\u306e\u3082\u306e\u306f\u6b8b\u308a\u307e\u3059\u3002\u3068\u304f\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u306e\u89e3\u653e\u6f0f\u308c\u3001\u30bd\u30b1\u30c3\u30c8\u6ede\u7559\u3001\u60f3\u5b9a\u5916\u306e\u4e26\u5217\u5ea6\u4e0a\u6607\u3001\u30ed\u30b0\u51e6\u7406\u3084\u76e3\u8996\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u6319\u52d5\u5909\u5316\u304c\u80cc\u666f\u306b\u3042\u308b\u5834\u5408\u3001\u4e0a\u9650\u7de9\u548c\u3060\u3051\u3067\u306f\u518d\u767a\u6642\u306e\u898f\u6a21\u304c\u5927\u304d\u304f\u306a\u308a\u3084\u3059\u3044\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002ENFILE \u306f open(2) \u3060\u3051\u3067\u306a\u304f socket(2) \u3084 accept(2) \u3067\u3082\u73fe\u308c\u5f97\u308b\u305f\u3081\u3001\u75c7\u72b6\u304c\u300c\u901a\u4fe1\u969c\u5bb3\u300d\u300c\u63a5\u7d9a\u5931\u6557\u300d\u306b\u898b\u3048\u3066\u3057\u307e\u3046\u3053\u3068\u3082\u3001\u5224\u65ad\u3092\u96e3\u3057\u304f\u3057\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u30ec\u30ac\u30b7\u30fc\u74b0\u5883\u3084\u6b62\u3081\u306b\u304f\u3044\u672c\u756a\u3067\u306f\u30011 \u53f0\u306e\u30b5\u30fc\u30d0\u3060\u3051\u306e\u8a71\u3067\u306f\u6e08\u307e\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u4ecb\u3057\u305f\u51e6\u7406\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u30d0\u30c3\u30c1\u3001\u30b3\u30f3\u30c6\u30ca\u4e0a\u306e\u8907\u6570\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3001\u76e3\u67fb\u30ed\u30b0\u51fa\u529b\u306a\u3069\u304c\u540c\u4e00\u30ce\u30fc\u30c9\u3084\u540c\u4e00\u57fa\u76e4\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u3042\u308b\u30b5\u30fc\u30d3\u30b9\u306e\u5897\u52a0\u304c\u5225\u30b5\u30fc\u30d3\u30b9\u306e\u5931\u6557\u3068\u3057\u3066\u8868\u9762\u5316\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001\u73fe\u5834\u3067\u306f\u300c\u3069\u3053\u3092\u89e6\u308b\u3068\u5b89\u5168\u304b\u300d\u300c\u3069\u3053\u307e\u3067\u304c\u5f71\u97ff\u7bc4\u56f2\u304b\u300d\u3092\u8aac\u660e\u3057\u3065\u3089\u304f\u306a\u308a\u3001\u6280\u8853\u5224\u65ad\u304c\u305d\u306e\u307e\u307e\u793e\u5185\u8abf\u6574\u306e\u96e3\u3057\u3055\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002\u3060\u304b\u3089\u3053\u305d\u3001\u7b2c 1 \u7ae0\u306e\u6bb5\u968e\u3067\u306f\u4fee\u7406\u624b\u9806\u3088\u308a\u3082\u5148\u306b\u3001<strong>\u6700\u5c0f\u5909\u66f4\u3067\u72b6\u6cc1\u3092\u6574\u3048\u308b\u8996\u70b9<\/strong>\u304c\u6b20\u304b\u305b\u307e\u305b\u3093\u3002<\/p>\n<ul>\n<li>\u307e\u305a ENFILE \u304b EMFILE \u304b\u3092\u53d6\u308a\u9055\u3048\u306a\u3044\u3053\u3068<\/li>\n<li>\u30db\u30b9\u30c8\u5168\u4f53\u3067\u4f55\u304c\u540c\u6642\u306b\u5897\u3048\u3066\u3044\u305f\u304b\u3092\u6642\u7cfb\u5217\u3067\u898b\u308b\u3053\u3068<\/li>\n<li>\u4e0a\u9650\u5909\u66f4\u306f\u300c\u6052\u4e45\u5bfe\u7b56\u300d\u3067\u306f\u306a\u304f\u300c\u66ab\u5b9a\u5bfe\u5fdc\u300d\u306b\u306a\u308a\u3084\u3059\u3044\u3068\u8a8d\u8b58\u3059\u308b\u3053\u3068<\/li>\n<li>\u5171\u6709\u57fa\u76e4\u3001\u672c\u756a\u30c7\u30fc\u30bf\u3001\u76e3\u67fb\u8981\u4ef6\u304c\u7d61\u3080\u5834\u5408\u306f\u3001\u72ec\u65ad\u3067\u5e83\u304f\u6a29\u9650\u3084\u5236\u9650\u5024\u3092\u89e6\u3089\u306a\u3044\u3053\u3068<\/li>\n<\/ul>\n<p>\u7279\u306b BtoB \u306e\u904b\u7528\u73fe\u5834\u3067\u306f\u3001\u300c\u76f4\u3057\u305f\u300d\u3053\u3068\u3068\u300c\u5b89\u5fc3\u3057\u3066\u8aac\u660e\u3067\u304d\u308b\u300d\u3053\u3068\u306f\u5225\u3067\u3059\u3002ENFILE \u306f\u3001\u30ab\u30fc\u30cd\u30eb\u306e system-wide \u306a\u4e0a\u9650\u306b\u95a2\u308f\u308b\u4ee5\u4e0a\u3001\u4e00\u822c\u8ad6\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3060\u3051\u3067\u5b89\u5168\u306b\u53ce\u675f\u3067\u304d\u308b\u6848\u4ef6\u3070\u304b\u308a\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u969c\u5bb3\u306e\u30c0\u30e1\u30fc\u30b8\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3068\u518d\u767a\u9632\u6b62\u3092\u4e21\u7acb\u3057\u305f\u3044\u5834\u5408\u3001\u3069\u3053\u307e\u3067\u304c\u81ea\u793e\u3067\u5224\u65ad\u3067\u304d\u308b\u7bc4\u56f2\u3067\u3001\u3069\u3053\u304b\u3089\u304c\u500b\u5225\u69cb\u6210\u3092\u524d\u63d0\u306b\u3057\u305f\u8a3a\u65ad\u306b\u306a\u308b\u304b\u3092\u5207\u308a\u5206\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\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\u5834\u5408\u306b\u306f\u3001<strong>\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240<\/strong>\u306e\u3088\u3046\u306a\u5c02\u9580\u5bb6\u306b\u76f8\u8ac7\u3057\u3001\u5f71\u97ff\u7bc4\u56f2\u30fb\u5909\u66f4\u624b\u9806\u30fb\u8aac\u660e\u6750\u6599\u3092\u542b\u3081\u3066\u6574\u7406\u3059\u308b\u307b\u3046\u304c\u3001\u7d50\u679c\u3068\u3057\u3066\u73fe\u5834\u306e\u8ca0\u62c5\u3092\u4e0b\u3052\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u7ae0\u3067\u306f\u3001\u6df7\u540c\u3055\u308c\u3084\u3059\u3044 EMFILE \u3068\u306e\u9055\u3044\u3092\u660e\u78ba\u306b\u3057\u306a\u304c\u3089\u3001\u300c\u306a\u305c\u4e00\u90e8\u8a2d\u5b9a\u3060\u3051\u3067\u306f\u518d\u767a\u3057\u3084\u3059\u3044\u306e\u304b\u300d\u3092\u3001\u30d7\u30ed\u30bb\u30b9\u5358\u4f4d\u3068\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u8996\u70b9\u3092\u5206\u3051\u3066\u6574\u7406\u3057\u3066\u3044\u304d\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\u306e\u9055\u3044\u3092\u62bc\u3055\u3048\u308b\u3068\u3001\u306a\u305c\u4e00\u90e8\u4fee\u6b63\u3067\u306f\u518d\u767a\u3059\u308b\u306e\u304b\u304c\u898b\u3048\u3066\u304f\u308b<\/h2>\n<p>ENFILE \u3092\u6b63\u3057\u304f\u6271\u3046\u305f\u3081\u306b\u306f\u3001\u307e\u305a EMFILE \u3068\u306e\u9055\u3044\u3092\u660e\u78ba\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4e21\u8005\u306f\u3069\u3061\u3089\u3082\u300copen files \u304c\u591a\u3059\u304e\u308b\u300d\u3068\u3044\u3046\u898b\u3048\u65b9\u3092\u3057\u307e\u3059\u304c\u3001Linux \u306e\u5b9a\u7fa9\u3067\u306f\u5bfe\u8c61\u7bc4\u56f2\u304c\u7570\u306a\u308a\u307e\u3059\u3002open(2) \u3067\u306f\u3001EMFILE \u306f\u300c\u305d\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u958b\u3051\u308b\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u6570\u306e\u4e0a\u9650\u306b\u9054\u3057\u305f\u300d\u72b6\u614b\u3001ENFILE \u306f\u300c\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u3067\u958b\u3051\u308b\u30d5\u30a1\u30a4\u30eb\u7dcf\u91cf\u306e\u4e0a\u9650\u306b\u9054\u3057\u305f\u300d\u72b6\u614b\u3068\u3057\u3066\u533a\u5225\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001EMFILE \u306f\u30d7\u30ed\u30bb\u30b9\u5358\u4f4d\u3001ENFILE \u306f OS \u5168\u4f53\u306e\u8cc7\u6e90\u67a0\u3092\u898b\u3066\u3044\u308b\u30a8\u30e9\u30fc\u3067\u3059\u3002([man7.org](https:\/\/man7.org\/linux\/man-pages\/man2\/open.2.html?utm_source=chatgpt.com))<\/p>\n<p>\u3053\u306e\u9055\u3044\u306f\u3001\u5bfe\u7b56\u306e\u65b9\u5411\u6027\u3092\u5927\u304d\u304f\u5909\u3048\u307e\u3059\u3002EMFILE \u306e\u5834\u5408\u3001\u3042\u308b 1 \u3064\u306e\u30b5\u30fc\u30d3\u30b9\u3084\u30d0\u30c3\u30c1\u3001\u30ef\u30fc\u30ab\u30fc\u3001\u76e3\u8996\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306a\u3069\u304c\u3001\u81ea\u8eab\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u4e0a\u9650\u3092\u8d85\u3048\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002\u4e00\u65b9\u3067 ENFILE \u306f\u3001\u540c\u4e00\u30db\u30b9\u30c8\u4e0a\u306e\u8907\u6570\u30d7\u30ed\u30bb\u30b9\u3001\u8907\u6570\u30b3\u30f3\u30c6\u30ca\u3001\u5171\u901a\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3001\u30ed\u30b0\u53ce\u96c6\u3084\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u51e6\u7406\u306a\u3069\u3092\u5408\u7b97\u3057\u305f\u7d50\u679c\u3068\u3057\u3066\u4e0a\u9650\u306b\u5c4a\u3044\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u30011 \u30b5\u30fc\u30d3\u30b9\u3060\u3051\u3092\u898b\u3066\u3082\u5168\u4f53\u50cf\u304c\u3064\u304b\u3081\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>EMFILE \u306f\u300c\u305d\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u67a0\u300d\u3001ENFILE \u306f\u300c\u30db\u30b9\u30c8\u5168\u4f53\u306e\u67a0\u300d<\/h3>\n<p>Linux \u306e getrlimit(2) \u3067\u306f\u3001RLIMIT_NOFILE \u306f\u300c\u305d\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u958b\u3051\u308b\u6700\u5927\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u756a\u53f7\u3088\u308a 1 \u5927\u304d\u3044\u5024\u300d\u3068\u3057\u3066\u8aac\u660e\u3055\u308c\u3066\u304a\u308a\u3001\u3053\u306e\u5236\u9650\u3092\u8d85\u3048\u308b\u3068 open(2)\u3001pipe(2)\u3001dup(2) \u306a\u3069\u304c EMFILE \u3067\u5931\u6557\u3057\u307e\u3059\u3002\u3059\u306a\u308f\u3061\u3001ulimit -n \u3084 systemd \u306e LimitNOFILE \u306a\u3069\u3067\u8abf\u6574\u3055\u308c\u308b\u4ee3\u8868\u7684\u306a\u5024\u306f\u3001\u307e\u305a\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u5358\u4f4d\u306e\u4e0a\u9650\u306b\u95a2\u308f\u308a\u307e\u3059\u3002([man7.org](https:\/\/man7.org\/linux\/man-pages\/man2\/getrlimit.2.html?utm_source=chatgpt.com))<\/p>\n<p>\u5bfe\u3057\u3066\u3001\/proc\/sys\/fs\/file-max \u306f\u30ab\u30fc\u30cd\u30eb\u304c\u5272\u308a\u5f53\u3066\u308b file handles \u306e\u6700\u5927\u6570\u3092\u793a\u3057\u3001\u3053\u306e\u7dcf\u91cf\u4e0a\u9650\u306b\u8fd1\u3065\u304f\u3068\u3001\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u304c ENFILE \u3067\u5931\u6557\u3057\u5f97\u308b\u3068\u30ab\u30fc\u30cd\u30eb\u6587\u66f8\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001ulimit \u3092\u5f15\u304d\u4e0a\u3052\u3066\u3082 file-max \u5074\u306e\u4f59\u88d5\u304c\u306a\u3051\u308c\u3070\u3001\u30db\u30b9\u30c8\u5168\u4f53\u306e\u4f59\u767d\u306f\u5e83\u304c\u308a\u307e\u305b\u3093\u3002\u9006\u306b file-max \u3092\u5f15\u304d\u4e0a\u3052\u3066\u3082\u3001\u5404\u30d7\u30ed\u30bb\u30b9\u306e RLIMIT_NOFILE \u304c\u5c0f\u3055\u3044\u307e\u307e\u3067\u3042\u308c\u3070\u3001\u305d\u306e\u30d7\u30ed\u30bb\u30b9\u306f EMFILE \u306e\u307e\u307e\u3067\u3059\u3002\u3053\u3053\u3092\u6df7\u540c\u3059\u308b\u3068\u3001\u300c\u8a2d\u5b9a\u5909\u66f4\u3057\u305f\u306e\u306b\u76f4\u3089\u306a\u3044\u300d\u300c\u4e00\u6642\u7684\u306b\u9759\u304b\u306b\u306a\u3063\u305f\u306e\u306b\u518d\u767a\u3057\u305f\u300d\u3068\u3044\u3046\u4e8b\u614b\u304c\u8d77\u3053\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002([docs.kernel.org](https:\/\/docs.kernel.org\/admin-guide\/sysctl\/fs.html?utm_source=chatgpt.com) [man7.org](https:\/\/man7.org\/linux\/man-pages\/man2\/getrlimit.2.html?utm_source=chatgpt.com))<\/p>\n<table style=\"border-collapse:collapse; width:100%;\">\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u9805\u76ee<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">EMFILE<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">ENFILE<\/th>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u610f\u5473<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30d7\u30ed\u30bb\u30b9\u5358\u4f4d\u306e open file descriptor \u4e0a\u9650\u5230\u9054<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e open files \u7dcf\u91cf\u4e0a\u9650\u5230\u9054<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u4e3b\u306b\u898b\u308b\u8a2d\u5b9a<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">RLIMIT_NOFILE\u3001ulimit\u3001\u30b5\u30fc\u30d3\u30b9\u5b9a\u7fa9\u3054\u3068\u306e\u4e0a\u9650<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\/proc\/sys\/fs\/file-max\u3001\u30db\u30b9\u30c8\u5168\u4f53\u306e file handle \u6d88\u8cbb<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u8abf\u67fb\u306e\u4e2d\u5fc3<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u7279\u5b9a\u30d7\u30ed\u30bb\u30b9\u306e\u4f7f\u7528\u91cf\u3001\u30ea\u30fc\u30af\u3001\u4e26\u5217\u5ea6<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u540c\u5c45\u30b5\u30fc\u30d3\u30b9\u5168\u4f53\u3001\u6025\u5897\u30bf\u30a4\u30df\u30f3\u30b0\u3001\u30ce\u30fc\u30c9\u8a2d\u8a08<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u3042\u308a\u304c\u3061\u306a\u8aa4\u5bfe\u5fdc<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30db\u30b9\u30c8\u5168\u4f53\u306e\u5024\u3060\u3051\u3092\u4e0a\u3052\u308b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u500b\u5225\u30b5\u30fc\u30d3\u30b9\u306e ulimit \u3060\u3051\u3092\u4e0a\u3052\u308b<\/td>\n<\/tr>\n<\/table>\n<hr>\n<h3>\u306a\u305c\u300c\u4e00\u90e8\u4fee\u6b63\u300d\u3067\u518d\u767a\u3057\u3084\u3059\u3044\u306e\u304b<\/h3>\n<p>\u73fe\u5834\u3067\u518d\u767a\u3057\u3084\u3059\u3044\u7406\u7531\u306f\u3001\u5b9f\u969b\u306e\u969c\u5bb3\u304c\u300c\u5358\u4e00\u306e\u8a2d\u5b9a\u30df\u30b9\u300d\u3067\u306f\u306a\u304f\u3001\u300c\u8907\u6570\u306e\u5236\u7d04\u304c\u91cd\u306a\u3063\u3066\u3044\u308b\u300d\u3053\u3068\u304c\u591a\u3044\u305f\u3081\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u3042\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3001\u30bd\u30b1\u30c3\u30c8\u3001\u30d1\u30a4\u30d7\u3001\u5171\u6709\u30e9\u30a4\u30d6\u30e9\u30ea\u95a2\u9023\u306e\u8a18\u8ff0\u5b50\u3092\u5927\u91cf\u306b\u958b\u304d\u3001\u305d\u306e\u30b5\u30fc\u30d3\u30b9\u81ea\u8eab\u306f RLIMIT_NOFILE \u306b\u4f59\u88d5\u304c\u3042\u308b\u4e00\u65b9\u3067\u3001\u540c\u4e00\u30db\u30b9\u30c8\u4e0a\u306e\u5225\u30b5\u30fc\u30d3\u30b9\u3084\u76e3\u8996\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u30b3\u30f3\u30c6\u30ca\u30e9\u30f3\u30bf\u30a4\u30e0\u304c\u7dcf\u91cf\u3092\u62bc\u3057\u4e0a\u3052\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u30011 \u3064\u306e\u30b5\u30fc\u30d3\u30b9\u3060\u3051\u4e0a\u9650\u3092\u5897\u3084\u3059\u3068\u3001\u305d\u306e\u30b5\u30fc\u30d3\u30b9\u306f\u3057\u3070\u3089\u304f\u52d5\u3044\u3066\u3082\u3001\u30db\u30b9\u30c8\u5168\u4f53\u306e\u7dcf\u91cf\u903c\u8feb\u306f\u3080\u3057\u308d\u52a0\u901f\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3082 Linux \u3067\u306f open(2) \u306b\u9650\u3089\u305a\u3001accept(2) \u3084 socket(2) \u3067\u3082 ENFILE \u3084 EMFILE \u304c\u8fd4\u308a\u5f97\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u969c\u5bb3\u306e\u898b\u3048\u65b9\u304c\u300c\u30d5\u30a1\u30a4\u30eb\u304c\u958b\u3051\u306a\u3044\u300d\u3067\u306f\u306a\u304f\u3001\u300c\u63a5\u7d9a\u6570\u306f\u591a\u304f\u306a\u3044\u306e\u306b\u53d7\u3051\u4ed8\u3051\u304c\u8a70\u307e\u308b\u300d\u300c\u4e00\u90e8\u30ef\u30fc\u30ab\u30fc\u3060\u3051\u5916\u90e8\u63a5\u7d9a\u306b\u5931\u6557\u3059\u308b\u300d\u300c\u76e3\u8996\u306f\u7570\u5e38\u3060\u304c\u696d\u52d9\u30ed\u30b0\u306b\u306f\u51fa\u306b\u304f\u3044\u300d\u3068\u3044\u3063\u305f\u5f62\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u63a5\u7d9a\u5148\u5909\u66f4\u3084\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u969c\u5bb3\u3060\u3051\u3092\u8ffd\u3063\u3066\u3057\u307e\u3046\u3068\u3001\u6839\u306e\u6df1\u3044\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u6d88\u8cbb\u3092\u898b\u843d\u3068\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002([man7.org](https:\/\/man7.org\/linux\/man-pages\/man2\/open.2.html?utm_source=chatgpt.com))<\/p>\n<p>\u307e\u305f\u3001file-max \u3092\u3080\u3084\u307f\u306b\u5f15\u304d\u4e0a\u3052\u308b\u5224\u65ad\u306b\u3082\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002\u30ab\u30fc\u30cd\u30eb\u6587\u66f8\u3067\u306f\u3001file-max \u306f\u30ab\u30fc\u30cd\u30eb\u304c\u5272\u308a\u5f53\u3066\u308b file handles \u306e\u6700\u5927\u6570\u3067\u3042\u308a\u3001file-nr \u3067\u5272\u308a\u5f53\u3066\u6e08\u307f\u306e\u72b6\u6cc1\u3092\u78ba\u8a8d\u3067\u304d\u308b\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4e0a\u9650\u5f15\u304d\u4e0a\u3052\u304c\u5fc5\u8981\u306a\u5c40\u9762\u306f\u78ba\u304b\u306b\u3042\u308a\u307e\u3059\u304c\u3001\u5897\u52a0\u306e\u80cc\u666f\u304c\u30ea\u30fc\u30af\u3084\u8a2d\u8a08\u4e0d\u6574\u5408\u3067\u3042\u308b\u5834\u5408\u3001\u5024\u3060\u3051\u3092\u5e83\u3052\u308b\u3068\u554f\u984c\u306e\u9855\u5728\u5316\u304c\u9045\u308c\u3001\u7d50\u679c\u3068\u3057\u3066\u969c\u5bb3\u306e\u898f\u6a21\u3084\u8aac\u660e\u306e\u96e3\u3057\u3055\u304c\u5897\u3059\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u3001\u591c\u9593\u30d0\u30c3\u30c1\u3084\u6708\u672b\u51e6\u7406\u306e\u3088\u3046\u306b\u8ca0\u8377\u304c\u504f\u308b\u74b0\u5883\u3067\u306f\u3001\u666e\u6bb5\u306f\u898b\u3048\u306a\u3044\u5897\u52a0\u50be\u5411\u304c\u7e41\u5fd9\u6642\u3060\u3051\u8868\u9762\u5316\u3059\u308b\u305f\u3081\u3001\u5358\u7d14\u306a\u8a2d\u5b9a\u5909\u66f4\u3067\u300c\u89e3\u6c7a\u3057\u305f\u300d\u3068\u5224\u65ad\u3059\u308b\u306e\u306f\u65e9\u8a08\u3067\u3059\u3002([docs.kernel.org](https:\/\/docs.kernel.org\/admin-guide\/sysctl\/fs.html?utm_source=chatgpt.com))<\/p>\n<hr>\n<h3>\u5224\u65ad\u3092\u8aa4\u308a\u306b\u304f\u304f\u3059\u308b\u898b\u65b9<\/h3>\n<p>ENFILE \u3068 EMFILE \u3092\u898b\u5206\u3051\u308b\u3046\u3048\u3067\u5927\u5207\u306a\u306e\u306f\u3001\u300c\u3069\u306e\u5358\u4f4d\u3067\u8cc7\u6e90\u3092\u6570\u3048\u3066\u3044\u308b\u304b\u300d\u3092\u5d29\u3055\u306a\u3044\u3053\u3068\u3067\u3059\u3002\u30d7\u30ed\u30bb\u30b9\u5358\u4f4d\u3067\u9589\u3058\u308b\u8a71\u306a\u306e\u304b\u3001\u30db\u30b9\u30c8\u5168\u4f53\u3067\u7a4d\u307f\u4e0a\u304c\u3063\u3066\u3044\u308b\u8a71\u306a\u306e\u304b\u3092\u5206\u3051\u3066\u898b\u308c\u3070\u3001\u8abf\u67fb\u3084\u8aac\u660e\u306e\u7b4b\u9053\u304c\u7acb\u3061\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002BtoB \u306e\u73fe\u5834\u3067\u306f\u3001\u6280\u8853\u7684\u306a\u6b63\u3057\u3055\u3060\u3051\u3067\u306a\u304f\u3001\u95a2\u4fc2\u90e8\u7f72\u3078\u306e\u8aac\u660e\u3001\u76e3\u67fb\u5bfe\u5fdc\u3001\u5909\u66f4\u7533\u8acb\u306e\u901a\u3057\u3084\u3059\u3055\u3082\u91cd\u8981\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u6b21\u306e\u3088\u3046\u306a\u89b3\u70b9\u3067\u6574\u7406\u3059\u308b\u3068\u3001\u5834\u3092\u843d\u3061\u7740\u304b\u305b\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30ed\u30b0\u306b\u51fa\u3066\u3044\u308b errno \u304c EMFILE \u304b ENFILE \u304b\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n<li>\u7279\u5b9a\u30d7\u30ed\u30bb\u30b9\u306e\u5897\u52a0\u306a\u306e\u304b\u3001\u30db\u30b9\u30c8\u5168\u4f53\u306e\u5897\u52a0\u306a\u306e\u304b\u3092\u5206\u3051\u308b<\/li>\n<li>\u5024\u5909\u66f4\u3092\u3059\u308b\u5834\u5408\u3082\u3001\u305d\u308c\u3092\u66ab\u5b9a\u5bfe\u5fdc\u3068\u3057\u3066\u6271\u3046\u306e\u304b\u3001\u6052\u4e45\u904b\u7528\u306b\u7d44\u307f\u8fbc\u3080\u306e\u304b\u3092\u660e\u78ba\u306b\u3059\u308b<\/li>\n<li>\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u30b3\u30f3\u30c6\u30ca\u3001\u76e3\u8996\u57fa\u76e4\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u542b\u3081\u305f\u5f71\u97ff\u7bc4\u56f2\u3092\u5148\u306b\u8a00\u8a9e\u5316\u3059\u308b<\/li>\n<\/ul>\n<p>\u3053\u3053\u3067\u91cd\u8981\u306a\u306e\u306f\u3001\u300c\u8a2d\u5b9a\u5024\u3092\u3044\u3058\u308b\u3053\u3068\u300d\u81ea\u4f53\u304c\u76ee\u7684\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u70b9\u3067\u3059\u3002\u76ee\u7684\u306f\u3001\u969c\u5bb3\u306e\u53ce\u675f\u3001\u88ab\u5bb3\u6700\u5c0f\u5316\u3001\u518d\u767a\u9632\u6b62\u3001\u305d\u3057\u3066\u793e\u5185\u3067\u8aac\u660e\u53ef\u80fd\u306a\u72b6\u614b\u3092\u3064\u304f\u308b\u3053\u3068\u3067\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u500b\u5225\u4e8b\u60c5\u306e\u5927\u304d\u3044\u672c\u756a\u74b0\u5883\u3067\u306f\u3001\u4e00\u822c\u8ad6\u3060\u3051\u3092\u983c\u308a\u306b\u5927\u304d\u306a\u5909\u66f4\u3092\u5165\u308c\u308b\u3088\u308a\u3001\u5f71\u97ff\u7bc4\u56f2\u3092\u8aad\u307f\u306a\u304c\u3089\u6700\u5c0f\u5909\u66f4\u3067\u6574\u3048\u308b\u5224\u65ad\u304c\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u5171\u6709\u57fa\u76e4\u3084\u76e3\u67fb\u8981\u4ef6\u3092\u542b\u3080\u6848\u4ef6\u3067\u306f\u3001<strong>\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240<\/strong>\u306e\u3088\u3046\u306a\u5c02\u9580\u5bb6\u306b\u76f8\u8ac7\u3057\u3001\u5358\u306a\u308b\u5024\u8abf\u6574\u3067\u306f\u306a\u304f\u3001\u3069\u306e\u5236\u7d04\u304c\u771f\u306e\u4e89\u70b9\u304b\u3092\u6574\u7406\u3057\u305f\u3046\u3048\u3067\u9032\u3081\u308b\u307b\u3046\u304c\u3001\u7d50\u679c\u3068\u3057\u3066\u65e9\u3044\u53ce\u675f\u306b\u3064\u306a\u304c\u308a\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\u305a\u7591\u3046\u3079\u304d\u306f\u3069\u3053\u304b\u2015\u2015 open files\u30fbfs.file-max\u30fb\u30ea\u30fc\u30af\u306e\u5207\u308a\u5206\u3051\u3067\u4e89\u70b9\u3092\u7d5e\u308b<\/h2>\n<p>ENFILE \u306e\u5bfe\u5fdc\u3067\u91cd\u8981\u306a\u306e\u306f\u3001\u6700\u521d\u304b\u3089\u539f\u56e0\u3092 1 \u3064\u306b\u6c7a\u3081\u3064\u3051\u306a\u3044\u3053\u3068\u3067\u3059\u3002Linux \u3067\u306f\u3001\/proc\/sys\/fs\/file-max \u304c\u300c\u5168\u30d7\u30ed\u30bb\u30b9\u5408\u8a08\u306e open files \u306b\u5bfe\u3059\u308b system-wide limit\u300d\u3068\u3057\u3066\u6271\u308f\u308c\u3001\u3053\u306e\u4e0a\u9650\u306b\u3076\u3064\u304b\u308b\u3068 ENFILE \u304c\u8fd4\u308a\u5f97\u307e\u3059\u3002\u3055\u3089\u306b\u3001\/proc\/sys\/fs\/file-nr \u3067\u306f\u3001\u5272\u308a\u5f53\u3066\u6e08\u307f file handle \u6570\u3068\u6700\u5927\u5024\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u30ab\u30fc\u30cd\u30eb\u6587\u66f8\u3067\u306f\u3001Linux 2.6 \u4ee5\u964d\u306f file-nr \u306e 2 \u5217\u76ee\u306f\u5e38\u306b 0 \u306b\u306a\u308a\u30011 \u5217\u76ee\u304c\u5b9f\u8cea\u7684\u306b\u73fe\u5728\u4f7f\u7528\u4e2d\u3068\u898b\u3066\u3088\u3044\u3001\u3068\u3044\u3046\u6271\u3044\u3067\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u307e\u305a\u898b\u308b\u3079\u304d\u306a\u306e\u306f\u300c\u8ab0\u304c\u60aa\u3044\u304b\u300d\u3067\u306f\u306a\u304f\u3001\u300c\u7dcf\u91cf\u304c\u3069\u308c\u3060\u3051\u903c\u8feb\u3057\u3066\u3044\u308b\u304b\u300d\u300c\u3044\u3064\u5897\u3048\u305f\u304b\u300d\u300c\u3069\u306e\u7cfb\u7d71\u3067\u5897\u3048\u305f\u304b\u300d\u3067\u3059\u3002<\/p>\n<p>\u73fe\u5834\u3067\u306f\u3001\u969c\u5bb3\u304c\u767a\u751f\u3059\u308b\u3068\u500b\u5225\u30b5\u30fc\u30d3\u30b9\u306e\u30ed\u30b0\u3060\u3051\u3092\u8ffd\u3044\u304c\u3061\u3067\u3059\u3002\u3057\u304b\u3057 ENFILE \u306e\u5834\u5408\u3001\u3042\u308b 1 \u30b5\u30fc\u30d3\u30b9\u304c\u76f4\u63a5\u306e\u30c8\u30ea\u30ac\u30fc\u3067\u3042\u3063\u3066\u3082\u3001\u80cc\u666f\u306b\u306f\u30ce\u30fc\u30c9\u5168\u4f53\u306e\u6df7\u96d1\u3001\u5171\u6709\u57fa\u76e4\u5074\u306e\u8a2d\u8a08\u3001\u30b3\u30f3\u30c6\u30ca\u5bc6\u5ea6\u3001\u76e3\u8996\u3084\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306a\u3069\u306e\u5e38\u99d0\u51e6\u7406\u306e\u7a4d\u307f\u4e0a\u304c\u308a\u304c\u3042\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u300c\u307e\u305a\u4e0a\u9650\u5024\u3092\u4e0a\u3052\u308b\u300d\u300c\u307e\u305a\u30a2\u30d7\u30ea\u3092\u518d\u8d77\u52d5\u3059\u308b\u300d\u3068\u3044\u3063\u305f\u5358\u767a\u306e\u64cd\u4f5c\u3088\u308a\u3082\u3001\u89b3\u6e2c\u70b9\u3092\u63c3\u3048\u3066\u4e89\u70b9\u3092\u7d5e\u308b\u307b\u3046\u304c\u3001\u7d50\u679c\u3068\u3057\u3066\u53ce\u675f\u304c\u65e9\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u6700\u521d\u306b\u78ba\u8a8d\u3057\u305f\u3044\u89b3\u6e2c\u70b9<\/h3>\n<p>\u5207\u308a\u5206\u3051\u306e\u521d\u52d5\u3067\u306f\u3001\u6b21\u306e 3 \u3064\u3092\u5206\u3051\u3066\u8003\u3048\u308b\u3068\u6574\u7406\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u30021 \u3064\u76ee\u306f\u3001\u30db\u30b9\u30c8\u5168\u4f53\u306e open files \u7dcf\u91cf\u304c\u672c\u5f53\u306b\u4e0a\u9650\u306b\u8fd1\u3065\u3044\u3066\u3044\u308b\u306e\u304b\u30022 \u3064\u76ee\u306f\u3001\u7279\u5b9a\u306e\u30b5\u30fc\u30d3\u30b9\u3084\u30b3\u30f3\u30c6\u30ca\u3060\u3051\u304c\u6025\u5897\u3057\u3066\u3044\u308b\u306e\u304b\u30023 \u3064\u76ee\u306f\u3001\u5897\u52a0\u304c\u4e00\u6642\u7684\u306a\u8ca0\u8377\u30d4\u30fc\u30af\u306a\u306e\u304b\u3001\u7d99\u7d9a\u7684\u306a\u30ea\u30fc\u30af\u306a\u306e\u304b\u3001\u3068\u3044\u3046\u70b9\u3067\u3059\u3002\u3053\u306e 3 \u3064\u3092\u6df7\u305c\u308b\u3068\u3001\u8abf\u67fb\u306e\u8ef8\u304c\u3076\u308c\u3084\u3059\u304f\u306a\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; text-align:left;\">\u78ba\u8a8d\u9805\u76ee<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u4f55\u3092\u898b\u308b\u304b<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u898b\u3048\u305f\u3068\u304d\u306e\u610f\u5473<\/th>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u30db\u30b9\u30c8\u5168\u4f53\u306e\u7dcf\u91cf<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">file-nr \u3068 file-max \u306e\u5dee\u3001\u6642\u9593\u5e2f\u3054\u3068\u306e\u5897\u6e1b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">ENFILE \u304c system-wide \u306a\u903c\u8feb\u3068\u3057\u3066\u8d77\u304d\u3066\u3044\u308b\u304b\u3092\u628a\u63e1\u3057\u3084\u3059\u3044<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u7279\u5b9a\u30d7\u30ed\u30bb\u30b9\u306e\u504f\u308a<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u3069\u306e PID \u3084\u30b5\u30fc\u30d3\u30b9\u304c open files \u3092\u591a\u304f\u6d88\u8cbb\u3057\u3066\u3044\u308b\u304b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u72af\u4eba\u635c\u3057\u3067\u306f\u306a\u304f\u3001\u5897\u52a0\u6e90\u306e\u5019\u88dc\u3092\u7d5e\u308a\u3084\u3059\u3044<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u5897\u3048\u65b9\u306e\u50be\u5411<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u6025\u5897\u304b\u3001\u53f3\u80a9\u4e0a\u304c\u308a\u304b\u3001\u5468\u671f\u6027\u304c\u3042\u308b\u304b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30d0\u30fc\u30b9\u30c8\u8ca0\u8377\u306a\u306e\u304b\u3001\u30ea\u30fc\u30af\u306a\u306e\u304b\u3001\u5b9a\u671f\u51e6\u7406\u306a\u306e\u304b\u306e\u76ee\u5b89\u306b\u306a\u308b<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u5358\u4f4d\u3054\u3068\u306e\u4e0a\u9650<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">RLIMIT_NOFILE\u3001\u30b5\u30fc\u30d3\u30b9\u5b9a\u7fa9\u3001\u5b9f\u884c\u57fa\u76e4\u306e\u5236\u7d04<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">ENFILE \u3068 EMFILE \u304c\u6df7\u5728\u3057\u3066\u3044\u306a\u3044\u304b\u3092\u898b\u5206\u3051\u3084\u3059\u3044<\/td>\n<\/tr>\n<\/table>\n<p>\u3068\u304f\u306b file-max \u3068 file-nr \u306f\u3001\u30db\u30b9\u30c8\u5168\u4f53\u306e\u7a7a\u6c17\u3092\u8aad\u3080\u305f\u3081\u306e\u57fa\u790e\u60c5\u5831\u3067\u3059\u3002man5 proc_sys_fs \u3067\u306f file-max \u306f\u300c\u5168\u30d7\u30ed\u30bb\u30b9\u306b\u5bfe\u3059\u308b system-wide limit on the number of open files\u300d\u3067\u3042\u308a\u3001\u3053\u306e\u5236\u9650\u306b\u5f53\u305f\u308b\u3068 system calls fail with ENFILE \u3068\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u304b\u3089\u5206\u304b\u308b\u306e\u306f\u3001\u500b\u5225\u30b5\u30fc\u30d3\u30b9\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u3067\u306f\u628a\u63e1\u3057\u304d\u308c\u306a\u3044\u9818\u57df\u304c\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<hr>\n<h3>\u30ea\u30fc\u30af\u3068\u4e00\u6642\u7684\u6025\u5897\u306f\u3001\u5897\u3048\u65b9\u3067\u898b\u5206\u3051\u308b<\/h3>\n<p>\u6b21\u306b\u91cd\u8981\u306a\u306e\u304c\u3001\u300c\u6570\u304c\u591a\u3044\u300d\u3053\u3068\u3068\u300c\u5897\u3048\u7d9a\u3051\u308b\u300d\u3053\u3068\u3092\u5206\u3051\u308b\u8996\u70b9\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u5927\u91cf\u63a5\u7d9a\u3092\u53d7\u3051\u308b\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3084\u9ad8\u4e26\u5217\u30ef\u30fc\u30ab\u30fc\u3067\u306f\u3001\u4e00\u5b9a\u6642\u9593\u3060\u3051 open files \u304c\u9ad8\u304f\u306a\u308b\u3053\u3068\u81ea\u4f53\u306f\u73cd\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u30d4\u30fc\u30af\u5f8c\u306b\u6e1b\u308b\u306e\u3067\u3042\u308c\u3070\u3001\u8a2d\u8a08\u4e0a\u306e\u9ad8\u8ca0\u8377\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u4e00\u65b9\u3001\u30a2\u30af\u30bb\u30b9\u304c\u843d\u3061\u7740\u3044\u3066\u3044\u308b\u306e\u306b open files \u3060\u3051\u304c\u6bb5\u968e\u7684\u306b\u5897\u3048\u3001\u3057\u3070\u3089\u304f\u3059\u308b\u3068\u6e1b\u3089\u305a\u306b\u7a4d\u307f\u4e0a\u304c\u308b\u5834\u5408\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3084\u30bd\u30b1\u30c3\u30c8\u306e\u89e3\u653e\u6f0f\u308c\u3001\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3068\u306e\u76f8\u6027\u554f\u984c\u3001\u9577\u5bff\u547d\u30ef\u30fc\u30ab\u30fc\u306e\u5f8c\u59cb\u672b\u4e0d\u8db3\u306a\u3069\u3001\u30ea\u30fc\u30af\u3092\u7591\u3046\u6839\u62e0\u304c\u5f37\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u5384\u4ecb\u306a\u306e\u306f\u3001\u30ea\u30fc\u30af\u304c\u5fc5\u305a\u3057\u3082\u300c\u666e\u901a\u306e\u30d5\u30a1\u30a4\u30eb\u300d\u3092\u958b\u304d\u7d9a\u3051\u308b\u3068\u306f\u9650\u3089\u306a\u3044\u3053\u3068\u3067\u3059\u3002\u30bd\u30b1\u30c3\u30c8\u3001FIFO\u3001\u30d1\u30a4\u30d7\u3001\u533f\u540d inode\u3001\u76e3\u8996\u95a2\u9023\u306e\u8a18\u8ff0\u5b50\u306a\u3069\u3082 file handle \u306e\u6d88\u8cbb\u5bfe\u8c61\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30a2\u30d7\u30ea\u62c5\u5f53\u8005\u304b\u3089\u898b\u308b\u3068\u300c\u30d5\u30a1\u30a4\u30eb\u3092\u5927\u91cf\u306b\u958b\u304f\u51e6\u7406\u306f\u306a\u3044\u306f\u305a\u300d\u3068\u3044\u3046\u611f\u899a\u3067\u3082\u3001\u5b9f\u969b\u306b\u306f\u901a\u4fe1\u7cfb\u3084\u5468\u8fba\u30c4\u30fc\u30eb\u304c\u62bc\u3057\u4e0a\u3052\u3066\u3044\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002open(2) \u306e\u969c\u5bb3\u3060\u3051\u3092\u898b\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u63a5\u7d9a\u53d7\u4ed8\u3001\u30ef\u30fc\u30ab\u30fc\u751f\u6210\u3001\u30ed\u30b0\u642c\u9001\u3001\u76e3\u8996\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306a\u3069\u3092\u542b\u3081\u305f\u5b9f\u884c\u30d1\u30b9\u5168\u4f53\u3092\u898b\u305f\u307b\u3046\u304c\u3001\u30ce\u30a4\u30ba\u3092\u6e1b\u3089\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30d4\u30fc\u30af\u6642\u3060\u3051\u4e0a\u304c\u3063\u3066\u81ea\u7136\u306b\u623b\u308b\u306a\u3089\u3001\u307e\u305a\u306f\u8ca0\u8377\u7279\u6027\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n<li>\u8ca0\u8377\u304c\u843d\u3061\u3066\u3082\u5897\u52a0\u304c\u623b\u3089\u306a\u3044\u306a\u3089\u3001\u30ea\u30fc\u30af\u3084\u56de\u53ce\u9045\u5ef6\u3092\u7591\u3046<\/li>\n<li>\u518d\u8d77\u52d5\u3067\u9759\u304b\u306b\u306a\u308b\u304c\u6570\u65e5\u5f8c\u306b\u518d\u767a\u3059\u308b\u306a\u3089\u3001\u9577\u6642\u9593\u904b\u8ee2\u6642\u306e\u5f8c\u59cb\u672b\u4e0d\u8db3\u3092\u7591\u3046<\/li>\n<li>\u7279\u5b9a\u6642\u523b\u306b\u3060\u3051\u5897\u3048\u308b\u306a\u3089\u3001\u30d0\u30c3\u30c1\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u96c6\u8a08\u3001\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u306e\u5b9a\u671f\u51e6\u7406\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n<\/ul>\n<hr>\n<h3>systemd \u7ba1\u7406\u4e0b\u306e\u30b5\u30fc\u30d3\u30b9\u3067\u306f\u3001LimitNOFILE \u3082\u5207\u308a\u5206\u3051\u5bfe\u8c61\u306b\u306a\u308b<\/h3>\n<p>\u591a\u304f\u306e\u696d\u52d9\u30b7\u30b9\u30c6\u30e0\u3067\u306f systemd \u7ba1\u7406\u4e0b\u3067\u30b5\u30fc\u30d3\u30b9\u304c\u52d5\u3044\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u30b5\u30fc\u30d3\u30b9\u3054\u3068\u306e LimitNOFILE \u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u3001\u30db\u30b9\u30c8\u5168\u4f53\u306b\u4f59\u88d5\u304c\u3042\u3063\u3066\u3082\u500b\u5225\u30b5\u30fc\u30d3\u30b9\u5074\u3067 EMFILE \u304c\u5148\u306b\u51fa\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002systemd \u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u3082\u3001LimitNOFILE= \u306f\u30d7\u30ed\u30bb\u30b9\u306e\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u4e0a\u9650\u306b\u95a2\u308f\u308b\u5b9f\u884c\u6642\u5236\u9650\u3068\u3057\u3066\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30ed\u30b0\u4e0a\u306e errno \u304c ENFILE \u306a\u306e\u304b EMFILE \u306a\u306e\u304b\u3001\u3042\u308b\u3044\u306f\u8907\u6570\u30a8\u30e9\u30fc\u304c\u6df7\u5728\u3057\u3066\u3044\u308b\u306e\u304b\u3092\u898b\u306a\u3044\u307e\u307e\u3001\u300c\u4e0a\u9650\u4e0d\u8db3\u3060\u304b\u3089\u540c\u3058\u5bfe\u7b56\u3067\u3088\u3044\u300d\u3068\u307e\u3068\u3081\u3066\u3057\u307e\u3046\u306e\u306f\u5371\u967a\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u52d9\u3067\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u6df7\u5728\u304c\u8d77\u3053\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u3042\u308b\u30b5\u30fc\u30d3\u30b9 A \u306f LimitNOFILE \u304c\u5c0f\u3055\u3044\u305f\u3081\u306b EMFILE \u3092\u51fa\u3057\u3066\u3044\u308b\u4e00\u65b9\u3067\u3001\u540c\u5c45\u3057\u3066\u3044\u308b\u5225\u30b5\u30fc\u30d3\u30b9 B\u30fbC\u30fbD \u306e\u5408\u7b97\u3067\u30db\u30b9\u30c8\u5168\u4f53\u306e\u7dcf\u91cf\u3082\u5897\u3048\u3001\u5225\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u306f ENFILE \u3082\u767a\u751f\u3057\u3066\u3044\u308b\u3001\u3068\u3044\u3046\u30b1\u30fc\u30b9\u3067\u3059\u3002\u3053\u306e\u5834\u5408\u3001A \u306e\u4e0a\u9650\u3060\u3051\u3092\u4e0a\u3052\u308b\u3068 A \u306f\u4e00\u898b\u5b89\u5b9a\u3057\u307e\u3059\u304c\u3001\u4eca\u5ea6\u306f\u30db\u30b9\u30c8\u5168\u4f53\u306e\u4f59\u767d\u3092\u3055\u3089\u306b\u6d88\u8cbb\u3057\u3001B \u3084 C \u306b\u5f71\u97ff\u304c\u5e83\u304c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u306b\u300c\u4e00\u90e8\u4fee\u6b63\u3067\u518d\u767a\u3057\u3084\u3059\u3044\u300d\u69cb\u9020\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; text-align:left;\">\u72b6\u6cc1<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u8d77\u3053\u308a\u3084\u3059\u3044\u8aa4\u89e3<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u6574\u7406\u306e\u3057\u304b\u305f<\/th>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">LimitNOFILE \u304c\u5c0f\u3055\u3044<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30db\u30b9\u30c8\u5168\u4f53\u306e\u554f\u984c\u3060\u3068\u601d\u3044\u8fbc\u3080<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u307e\u305a\u306f EMFILE \u306e\u6709\u7121\u3092\u78ba\u8a8d\u3057\u3001\u500b\u5225\u5236\u9650\u306e\u5f71\u97ff\u3092\u5206\u3051\u308b<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">file-max \u304c\u903c\u8feb<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u7279\u5b9a\u30a2\u30d7\u30ea\u306e\u5024\u3060\u3051\u4e0a\u3052\u308c\u3070\u3088\u3044\u3068\u8003\u3048\u308b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30db\u30b9\u30c8\u5168\u4f53\u306e\u4f7f\u7528\u91cf\u63a8\u79fb\u3068\u540c\u5c45\u30d7\u30ed\u30bb\u30b9\u3092\u78ba\u8a8d\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u4e21\u65b9\u304c\u6df7\u5728<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u3069\u3061\u3089\u304b\u4e00\u65b9\u306e\u5909\u66f4\u3067\u53ce\u675f\u3059\u308b\u3068\u671f\u5f85\u3059\u308b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u500b\u5225\u4e0a\u9650\u3068\u7dcf\u91cf\u4e0a\u9650\u3092\u5225\u30bf\u30b9\u30af\u3068\u3057\u3066\u6271\u3044\u3001\u66ab\u5b9a\u5bfe\u5fdc\u3068\u6052\u4e45\u5bfe\u7b56\u3092\u5206\u96e2\u3059\u308b<\/td>\n<\/tr>\n<\/table>\n<hr>\n<h3>\u5207\u308a\u5206\u3051\u3067\u512a\u5148\u3057\u305f\u3044\u306e\u306f\u300c\u6700\u5c0f\u5909\u66f4\u300d\u3068\u300c\u5f71\u97ff\u7bc4\u56f2\u300d<\/h3>\n<p>\u672c\u756a\u74b0\u5883\u3067\u306e\u5bfe\u5fdc\u306f\u3001\u8abf\u67fb\u7cbe\u5ea6\u3060\u3051\u3067\u306a\u304f\u5909\u66f4\u306e\u5b89\u5168\u6027\u3082\u91cd\u8981\u3067\u3059\u3002\u3068\u304f\u306b\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u30b3\u30f3\u30c6\u30ca\u3001\u76e3\u8996\u57fa\u76e4\u3001\u30ed\u30b0\u8ee2\u9001\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u76e3\u67fb\u30ed\u30b0\u306a\u3069\u304c\u95a2\u308f\u308b\u5834\u5408\u3001\u5e83\u3044\u6a29\u9650\u5909\u66f4\u3084\u5927\u304d\u306a\u4e0a\u9650\u5909\u66f4\u306f\u3001\u5225\u306e\u7cfb\u7d71\u3078\u5f71\u97ff\u3092\u5e83\u3052\u308b\u304a\u305d\u308c\u304c\u3042\u308a\u307e\u3059\u3002Linux \u306e sysctl \u9805\u76ee\u306f\u6709\u7528\u3067\u3059\u304c\u3001\u516c\u5f0f\u6587\u66f8\u3067\u3082 kernel parameter \u306e\u5909\u66f4\u306f system behavior \u306b\u5f71\u97ff\u3092\u4e0e\u3048\u5f97\u308b\u305f\u3081\u3001\u5185\u5bb9\u3092\u7406\u89e3\u3057\u305f\u3046\u3048\u3067\u6271\u3046\u3079\u304d\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u6700\u521d\u306e\u76ee\u6a19\u306f\u300c\u6570\u5024\u3092\u5927\u304d\u304f\u3059\u308b\u300d\u3053\u3068\u3067\u306f\u306a\u304f\u3001\u300c\u3069\u306e\u5358\u4f4d\u3067\u4f55\u304c\u8a70\u307e\u3063\u3066\u3044\u308b\u304b\u3092\u8aad\u307f\u9055\u3048\u306a\u3044\u300d\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u610f\u5473\u3067\u3001ENFILE \u306e\u521d\u52d5\u306f\u4fee\u7406\u624b\u9806\u306e\u7af6\u4e89\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3080\u3057\u308d\u3001\u5b89\u5168\u306a\u89b3\u6e2c\u3092\u5897\u3084\u3057\u3001\u4e89\u70b9\u3092\u72ed\u3081\u3001\u5fc5\u8981\u306a\u3089\u66ab\u5b9a\u7684\u306b\u30af\u30fc\u30eb\u30aa\u30d5\u3057\u306a\u304c\u3089\u3001\u6052\u4e45\u5bfe\u7b56\u306b\u3064\u306a\u304c\u308b\u6750\u6599\u3092\u96c6\u3081\u308b\u5de5\u7a0b\u3067\u3059\u3002\u81ea\u793e\u3067\u5224\u65ad\u3067\u304d\u308b\u7bc4\u56f2\u304c\u660e\u78ba\u3067\u3001\u5f71\u97ff\u7bc4\u56f2\u3082\u72ed\u3044\u306e\u3067\u3042\u308c\u3070\u793e\u5185\u3067\u9032\u3081\u3089\u308c\u308b\u5834\u9762\u3082\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u5171\u6709\u57fa\u76e4\u30fb\u672c\u756a\u30c7\u30fc\u30bf\u30fb\u8907\u6570\u30b5\u30fc\u30d3\u30b9\u30fb\u76e3\u67fb\u8981\u4ef6\u304c\u7d61\u3080\u6848\u4ef6\u3067\u306f\u3001\u4e00\u822c\u8ad6\u3060\u3051\u3067\u62bc\u3057\u5207\u308b\u3068\u8aac\u660e\u8ca0\u8377\u3068\u624b\u623b\u308a\u304c\u5897\u3048\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u306f\u3001<strong>\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240<\/strong>\u306e\u3088\u3046\u306a\u5c02\u9580\u5bb6\u306b\u76f8\u8ac7\u3057\u3001\u30db\u30b9\u30c8\u5168\u4f53\u306e\u72b6\u6cc1\u3001\u5236\u9650\u5024\u306e\u95a2\u4fc2\u3001\u904b\u7528\u8a2d\u8a08\u307e\u3067\u542b\u3081\u3066\u6574\u7406\u3057\u305f\u3046\u3048\u3067\u9032\u3081\u308b\u307b\u3046\u304c\u3001\u7d50\u679c\u3068\u3057\u3066\u73fe\u5834\u306e\u8ca0\u62c5\u3092\u6291\u3048\u3084\u3059\u304f\u306a\u308a\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\u4e0a\u9650\u7de9\u548c\u3060\u3051\u3067\u306f\u5371\u306a\u3044\u7406\u7531\u2015\u2015 \u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3084\u30b3\u30f3\u30c6\u30ca\u3067\u5f71\u97ff\u304c\u5e83\u304c\u308b\u6761\u4ef6\u3092\u8aad\u3080<\/h2>\n<p>ENFILE \u304c\u5384\u4ecb\u306a\u306e\u306f\u3001\u5358\u4e00\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5185\u90e8\u3060\u3051\u3067\u5b8c\u7d50\u3057\u306a\u3044\u3053\u3068\u3067\u3059\u3002Linux \u3067\u306f \/proc\/sys\/fs\/file-max \u304c\u5168\u30d7\u30ed\u30bb\u30b9\u5408\u8a08\u306e open files \u306b\u5bfe\u3059\u308b system-wide limit \u3068\u3057\u3066\u6271\u308f\u308c\u3001\u3053\u306e\u5236\u9650\u306b\u5f53\u305f\u308b\u3068\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u306f ENFILE \u3067\u5931\u6557\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u540c\u3058\u30db\u30b9\u30c8\u3084\u30ce\u30fc\u30c9\u4e0a\u3067\u8907\u6570\u306e\u30b5\u30fc\u30d3\u30b9\u3001\u30b3\u30f3\u30c6\u30ca\u3001\u76e3\u8996\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3001\u30ed\u30b0\u53ce\u96c6\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u51e6\u7406\u304c\u52d5\u3044\u3066\u3044\u308c\u3070\u3001\u305d\u308c\u305e\u308c\u306e\u6d88\u8cbb\u304c\u7a4d\u307f\u4e0a\u304c\u3063\u305f\u7d50\u679c\u3068\u3057\u3066\u3001\u5225\u306e\u30b5\u30fc\u30d3\u30b9\u5074\u3067\u969c\u5bb3\u304c\u898b\u3048\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002ENFILE \u306f\u300c\u305d\u306e\u30a2\u30d7\u30ea\u304c\u4f7f\u3044\u3059\u304e\u305f\u300d\u3068\u3044\u3046\u5358\u7d14\u306a\u8a71\u3067\u306f\u306a\u304f\u3001\u300c\u3069\u306e\u57fa\u76e4\u306e\u4e0a\u3067\u4f55\u304c\u540c\u5c45\u3057\u3066\u3044\u308b\u304b\u300d\u3092\u8aad\u307e\u306a\u3051\u308c\u3070\u3001\u5bfe\u7b56\u304c\u7a7a\u632f\u308a\u3057\u3084\u3059\u3044\u30a8\u30e9\u30fc\u3067\u3059\u3002<\/p>\n<p>\u73fe\u5834\u3067\u5224\u65ad\u3092\u96e3\u3057\u304f\u3059\u308b\u306e\u306f\u3001\u30ed\u30b0\u306e\u898b\u3048\u65b9\u3068\u5b9f\u969b\u306e\u8cc7\u6e90\u6d88\u8cbb\u304c\u4e00\u81f4\u3057\u306a\u3044\u3053\u3068\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u696d\u52d9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 A \u306b ENFILE \u304c\u51fa\u3066\u3044\u3066\u3082\u3001\u5897\u52a0\u6e90\u306f\u5225\u30b3\u30f3\u30c6\u30ca\u306e\u30ed\u30b0\u642c\u9001\u3001\u76e3\u8996\u51e6\u7406\u3001\u30d0\u30c3\u30c1\u3001\u30b5\u30a4\u30c9\u30ab\u30fc\u3001\u3042\u308b\u3044\u306f\u5171\u6709\u30ce\u30fc\u30c9\u4e0a\u306e\u5225\u30b5\u30fc\u30d3\u30b9\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002cgroup v2 \u306e\u516c\u5f0f\u6587\u66f8\u3067\u3082\u3001cgroup \u306f\u30d7\u30ed\u30bb\u30b9\u3092\u968e\u5c64\u5316\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u8cc7\u6e90\u3092\u5236\u5fa1\u30fb\u914d\u5206\u3059\u308b\u4ed5\u7d44\u307f\u3068\u8aac\u660e\u3055\u308c\u3066\u304a\u308a\u3001\u8cc7\u6e90\u306e\u898b\u3048\u65b9\u306f\u300c\u30d7\u30ed\u30bb\u30b9\u500b\u5225\u300d\u3088\u308a\u300c\u30b0\u30eb\u30fc\u30d7\u5358\u4f4d\u300d\u3067\u6574\u7406\u3057\u305f\u307b\u3046\u304c\u5b9f\u614b\u306b\u8fd1\u3044\u5834\u9762\u304c\u3042\u308a\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u5316\u3055\u308c\u305f\u57fa\u76e4\u3067\u306f\u3001\u3053\u306e\u898b\u65b9\u3092\u5916\u3059\u3068\u3001\u969c\u5bb3\u306e\u767a\u751f\u7b87\u6240\u3068\u672c\u5f53\u306e\u5897\u52a0\u6e90\u304c\u305a\u308c\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u5171\u6709\u57fa\u76e4\u3067\u306f\u300c\u81ea\u5206\u306e\u30b5\u30fc\u30d3\u30b9\u3060\u3051\u898b\u308c\u3070\u3088\u3044\u300d\u3068\u306f\u9650\u3089\u306a\u3044<\/h3>\n<p>\u7269\u7406\u30b5\u30fc\u30d0 1 \u53f0\u306b\u8907\u6570\u30b5\u30fc\u30d3\u30b9\u3092\u8f09\u305b\u3066\u3044\u308b\u69cb\u6210\u3067\u3082\u3001\u30b3\u30f3\u30c6\u30ca\u30aa\u30fc\u30b1\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3\u74b0\u5883\u3067\u3082\u3001\u30db\u30b9\u30c8\u5168\u4f53\u3067 file handle \u304c\u6d88\u8cbb\u3055\u308c\u308b\u3068\u3044\u3046\u524d\u63d0\u306f\u5171\u901a\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u3042\u308b\u30b5\u30fc\u30d3\u30b9\u306e limit \u3092\u5927\u304d\u304f\u3057\u3066\u3082\u3001\u30db\u30b9\u30c8\u5168\u4f53\u306e\u4f59\u767d\u304c\u5341\u5206\u3067\u306a\u3051\u308c\u3070\u3001\u5225\u30b5\u30fc\u30d3\u30b9\u304c\u5f71\u97ff\u3092\u53d7\u3051\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u9006\u306b\u3001file-max \u3060\u3051\u3092\u5f15\u304d\u4e0a\u3052\u3066\u3082\u3001\u500b\u3005\u306e\u30b5\u30fc\u30d3\u30b9\u5074\u306e RLIMIT_NOFILE \u3084\u5b9f\u884c\u57fa\u76e4\u306e\u5236\u7d04\u304c\u8ffd\u968f\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u3001\u500b\u5225\u30d7\u30ed\u30bb\u30b9\u3067\u306f EMFILE \u304c\u7d9a\u304d\u307e\u3059\u3002\u3053\u306e\u4e8c\u91cd\u69cb\u9020\u304c\u3042\u308b\u305f\u3081\u3001\u5171\u6709\u57fa\u76e4\u3067\u306f\u300c\u4e00\u90e8\u3060\u3051\u5e83\u3052\u308b\u300d\u5bfe\u5fdc\u304c\u3001\u3080\u3057\u308d\u72b6\u6cc1\u3092\u898b\u3048\u306b\u304f\u304f\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u7279\u306b\u6ce8\u610f\u3057\u305f\u3044\u306e\u306f\u3001\u540c\u5c45\u30d7\u30ed\u30bb\u30b9\u306e\u7a2e\u985e\u304c\u591a\u3044\u69cb\u6210\u3067\u3059\u3002\u696d\u52d9\u30a2\u30d7\u30ea\u672c\u4f53\u3060\u3051\u3067\u306a\u304f\u3001\u30b5\u30a4\u30c9\u30ab\u30fc\u3001\u30b5\u30fc\u30d3\u30b9\u30e1\u30c3\u30b7\u30e5\u3001\u76e3\u8996\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3001\u30ed\u30b0\u8ee2\u9001\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u76e3\u67fb\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u30e1\u30c8\u30ea\u30af\u30b9\u53ce\u96c6\u306a\u3069\u304c\u3001\u305d\u308c\u305e\u308c file descriptor \u3092\u6d88\u8cbb\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u3068\u805e\u304f\u3068\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u3092\u60f3\u50cf\u3057\u304c\u3061\u3067\u3059\u304c\u3001Linux \u3067\u306f\u30bd\u30b1\u30c3\u30c8\u3084\u5404\u7a2e\u8a18\u8ff0\u5b50\u3082 file handle \u6d88\u8cbb\u306e\u5bfe\u8c61\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u8868\u9762\u4e0a\u306f\u300c\u30d5\u30a1\u30a4\u30eb I\/O \u3092\u305d\u3053\u307e\u3067\u4f7f\u3063\u3066\u3044\u306a\u3044\u30b7\u30b9\u30c6\u30e0\u300d\u3067\u3042\u3063\u3066\u3082\u3001\u63a5\u7d9a\u7cfb\u3084\u89b3\u6e2c\u7cfb\u306e\u7a4d\u307f\u4e0a\u304c\u308a\u3067 system-wide limit \u306b\u8fd1\u3065\u304f\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; text-align:left;\">\u69cb\u6210\u8981\u7d20<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u898b\u843d\u3068\u3057\u3084\u3059\u3044\u70b9<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u5b9f\u52d9\u4e0a\u306e\u898b\u65b9<\/th>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u696d\u52d9\u30a2\u30d7\u30ea\u672c\u4f53<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30ed\u30b0\u4e0a\u306e\u30a8\u30e9\u30fc\u767a\u751f\u6e90\u3068\u3057\u3066\u6700\u521d\u306b\u7591\u308f\u308c\u3084\u3059\u3044<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u672c\u4f53\u3060\u3051\u3067\u306a\u304f\u5468\u8fba\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u5408\u7b97\u3057\u3066\u898b\u308b<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u76e3\u8996\u30fb\u30ed\u30b0\u53ce\u96c6<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5e73\u5e38\u6642\u306f\u76ee\u7acb\u305f\u306a\u3044\u304c\u5e38\u6642\u7a3c\u50cd\u3067\u7a4d\u307f\u4e0a\u304c\u308a\u3084\u3059\u3044<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30b5\u30a4\u30c9\u30ab\u30fc\u3084\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3082\u542b\u3081\u3066\u30ce\u30fc\u30c9\u5358\u4f4d\u3067\u898b\u308b<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30fb\u5b9a\u671f\u51e6\u7406<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u7279\u5b9a\u6642\u523b\u3060\u3051\u6025\u5897\u3057\u3001\u518d\u73fe\u304c\u96e3\u3057\u3044<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u6642\u523b\u76f8\u95a2\u3068\u5b9f\u884c\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3092\u91cd\u306d\u3066\u78ba\u8a8d\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u5171\u6709\u30ce\u30fc\u30c9\u4e0a\u306e\u5225\u30b5\u30fc\u30d3\u30b9<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u62c5\u5f53\u5916\u306e\u305f\u3081\u76f2\u70b9\u306b\u306a\u308a\u3084\u3059\u3044<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u8cac\u4efb\u5206\u754c\u3092\u8d85\u3048\u3066\u3082\u3001\u307e\u305a\u306f\u6d88\u8cbb\u5b9f\u614b\u3092\u4e8b\u5b9f\u3068\u3057\u3066\u6574\u7406\u3059\u308b<\/td>\n<\/tr>\n<\/table>\n<hr>\n<h3>\u30b3\u30f3\u30c6\u30ca\u74b0\u5883\u3067\u306f\u3001\u30ce\u30fc\u30c9\u5074\u306e\u524d\u63d0\u3092\u5916\u3059\u3068\u5224\u65ad\u3092\u8aa4\u308a\u3084\u3059\u3044<\/h3>\n<p>\u30b3\u30f3\u30c6\u30ca\u57fa\u76e4\u3067\u306f\u3001\u300c\u30b3\u30f3\u30c6\u30ca\u3054\u3068\u306b\u9589\u3058\u305f\u4e16\u754c\u3067\u52d5\u3044\u3066\u3044\u308b\u300d\u3068\u611f\u3058\u3084\u3059\u3044\u4e00\u65b9\u3001\u5b9f\u969b\u306b\u306f\u30db\u30b9\u30c8\u30ab\u30fc\u30cd\u30eb\u306e\u8cc7\u6e90\u3092\u5171\u6709\u3057\u3066\u3044\u307e\u3059\u3002Kubernetes \u306e\u516c\u5f0f\u6587\u66f8\u3067\u3082\u3001Pod \u3084\u30b3\u30f3\u30c6\u30ca\u306e resource limits \u306f CPU \u3084\u30e1\u30e2\u30ea\u306a\u3069\u3092\u4e2d\u5fc3\u306b\u6271\u3044\u307e\u3059\u304c\u3001\u30ab\u30fc\u30cd\u30eb\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u8abf\u6574\u306f sysctl \u306e\u9818\u57df\u3068\u3057\u3066\u5225\u67a0\u3067\u7ba1\u7406\u3055\u308c\u3001\u3057\u304b\u3082 sysctl \u306b\u306f safe \u3068 unsafe \u304c\u3042\u308a\u3001\u30af\u30e9\u30b9\u30bf\u904b\u7528\u5074\u306e\u7d71\u5236\u304c\u524d\u63d0\u306b\u306a\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30ce\u30fc\u30c9\u5074\u306b\u304b\u304b\u308f\u308b\u5024\u3084\u30ab\u30fc\u30cd\u30eb\u8a2d\u5b9a\u306f\u3001\u30a2\u30d7\u30ea\u62c5\u5f53\u8005\u3060\u3051\u3067\u81ea\u7531\u306b\u89e6\u308b\u3079\u304d\u5bfe\u8c61\u3067\u306f\u306a\u304f\u3001\u57fa\u76e4\u8a2d\u8a08\u3084\u904b\u7528\u30dd\u30ea\u30b7\u30fc\u3068\u5207\u308a\u96e2\u305b\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306e\u70b9\u306f ENFILE \u306e\u5bfe\u5fdc\u3068\u3082\u76f8\u6027\u304c\u6df1\u304f\u95a2\u308f\u308a\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u5185\u304b\u3089\u898b\u3048\u3066\u3044\u308b\u73fe\u8c61\u304c\u3001\u30ce\u30fc\u30c9\u5168\u4f53\u306e file handle \u6d88\u8cbb\u3092\u53cd\u6620\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30b3\u30f3\u30c6\u30ca\u8a2d\u5b9a\u3060\u3051\u3092\u898b\u76f4\u3057\u3066\u3082\u6839\u672c\u89e3\u6c7a\u306b\u306a\u3089\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u9006\u306b\u3001\u30ce\u30fc\u30c9\u5074\u306e\u8abf\u6574\u3092\u5148\u884c\u3055\u305b\u308b\u3068\u3001\u5225 Namespace \u3084\u5225 Pod \u7fa4\u306b\u307e\u3067\u5f71\u97ff\u3059\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002Kubernetes \u3067 sysctl \u3092\u6271\u3046\u516c\u5f0f\u6587\u66f8\u304c\u3001\u5b89\u5168\u6027\u533a\u5206\u3084\u30ce\u30fc\u30c9\u5358\u4f4d\u306e\u5f71\u97ff\u3092\u5f37\u8abf\u3057\u3066\u3044\u308b\u306e\u306f\u3001\u307e\u3055\u306b\u3053\u3046\u3057\u305f\u6a2a\u65ad\u7684\u306a\u5f71\u97ff\u304c\u3042\u308b\u305f\u3081\u3067\u3059\u3002\u5f71\u97ff\u7bc4\u56f2\u3092\u898b\u8aa4\u308b\u3068\u3001\u73fe\u5834\u306e\u4f5c\u696d\u306f\u5897\u3048\u305f\u306e\u306b\u969c\u5bb3\u3060\u3051\u304c\u5225\u306e\u5f62\u3067\u6b8b\u308b\u3001\u3068\u3044\u3046\u4e8b\u614b\u306b\u306a\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u30b3\u30f3\u30c6\u30ca\u5b9f\u884c\u74b0\u5883\u3067\u306f\u3001\u30a2\u30d7\u30ea\u672c\u4f53\u306e PID \u3060\u3051\u898b\u3066\u3082\u8db3\u308a\u306a\u3044\u5834\u9762\u304c\u3042\u308a\u307e\u3059\u3002\u30b5\u30a4\u30c9\u30ab\u30fc\u3084\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u5225\u30d7\u30ed\u30bb\u30b9\u3068\u3057\u3066\u5b58\u5728\u3057\u3001\u3057\u304b\u3082\u540c\u4e00 Pod \u3084\u540c\u4e00\u30ce\u30fc\u30c9\u306e\u4e2d\u3067\u7d99\u7d9a\u7684\u306b\u63a5\u7d9a\u3084\u30d5\u30a1\u30a4\u30eb\u76e3\u8996\u3092\u884c\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u5897\u52a0\u6e90\u304c\u672c\u4f53\u30d7\u30ed\u30bb\u30b9\u306b\u898b\u3048\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u73fe\u5834\u3067\u300c\u30b3\u30fc\u30c9\u5909\u66f4\u306f\u3057\u3066\u3044\u306a\u3044\u306e\u306b\u5897\u3048\u305f\u300d\u3068\u3044\u3046\u5834\u5408\u3067\u3082\u3001\u30a4\u30e1\u30fc\u30b8\u66f4\u65b0\u3001\u30ed\u30b0\u8a2d\u5b9a\u5909\u66f4\u3001\u76e3\u8996\u8a2d\u5b9a\u8ffd\u52a0\u3001\u30e1\u30c3\u30b7\u30e5\u5c0e\u5165\u306a\u3069\u3001\u5468\u8fba\u306e\u5909\u5316\u3067 file handle \u6d88\u8cbb\u69cb\u9020\u304c\u5909\u308f\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3046\u3057\u305f\u69cb\u6210\u3067\u306f\u3001\u5358\u4e00\u30b3\u30f3\u30c6\u30ca\u306e\u4e2d\u3060\u3051\u3067\u7b54\u3048\u3092\u63a2\u3055\u306a\u3044\u307b\u3046\u304c\u3001\u30ce\u30a4\u30ba\u30ab\u30c3\u30c8\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3084\u672c\u756a\u30c7\u30fc\u30bf\u304c\u7d61\u3080\u3068\u3001\u64cd\u4f5c\u306e\u91cd\u307f\u304c\u5909\u308f\u308b<\/h3>\n<p>\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u304c\u95a2\u308f\u308b\u74b0\u5883\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u306e\u91cf\u3060\u3051\u3067\u306a\u304f\u3001\u696d\u52d9\u30c7\u30fc\u30bf\u306e\u4fdd\u5168\u3084\u76e3\u67fb\u306e\u89b3\u70b9\u304c\u5224\u65ad\u306b\u52a0\u308f\u308a\u307e\u3059\u3002Linux \u306e overlayfs \u3084\u5404\u7a2e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u6587\u66f8\u3092\u898b\u3066\u3082\u3001\u5b9f\u4f53\u3068\u898b\u3048\u65b9\u304c\u5206\u304b\u308c\u308b\u69cb\u6210\u3067\u306f inode \u3084 file handle \u306e\u898b\u3048\u65b9\u304c\u5358\u7d14\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u52a0\u3048\u3066\u3001\u672c\u756a\u30c7\u30fc\u30bf\u3092\u6271\u3046\u74b0\u5883\u3067\u306f\u3001\u969c\u5bb3\u5bfe\u5fdc\u306e\u305f\u3081\u306b\u6a29\u9650\u3084\u8a2d\u5b9a\u3092\u5e83\u304f\u5909\u66f4\u3059\u308b\u3068\u3001\u5f8c\u304b\u3089\u8aac\u660e\u8ca0\u8377\u304c\u5927\u304d\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u6280\u8853\u7684\u306b\u306f\u53ef\u80fd\u3067\u3082\u3001\u76e3\u67fb\u3084\u5909\u66f4\u7ba1\u7406\u306e\u89b3\u70b9\u3067\u300c\u306a\u305c\u305d\u306e\u5909\u66f4\u304c\u5fc5\u8981\u3060\u3063\u305f\u306e\u304b\u300d\u300c\u4ed6\u7cfb\u7d71\u306b\u5f71\u97ff\u3057\u306a\u3044\u3068\u3069\u3046\u5224\u65ad\u3057\u305f\u306e\u304b\u300d\u3092\u554f\u308f\u308c\u308b\u5834\u9762\u304c\u3042\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u672c\u756a\u30c7\u30fc\u30bf\u3001\u76e3\u67fb\u8981\u4ef6\u304c\u7d61\u3080\u5834\u5408\u306b\u306f\u3001\u969c\u5bb3\u3092\u65e9\u304f\u9759\u304b\u306b\u3057\u305f\u3044\u6c17\u6301\u3061\u304c\u3042\u3063\u3066\u3082\u3001\u5e83\u7bc4\u56f2\u306e\u6a29\u9650\u5909\u66f4\u3084\u5927\u304d\u306a\u4e0a\u9650\u5909\u66f4\u3092\u5148\u306b\u884c\u3046\u306e\u306f\u614e\u91cd\u3067\u3042\u308b\u3079\u304d\u3067\u3059\u3002\u307e\u305a\u306f\u5f71\u97ff\u7bc4\u56f2\u3092\u9650\u5b9a\u3057\u3066\u628a\u63e1\u3057\u3001\u3069\u306e\u5358\u4f4d\u3067\u8a70\u307e\u3063\u3066\u3044\u308b\u306e\u304b\u3001\u3069\u3053\u307e\u3067\u304c\u89b3\u6e2c\u3067\u78ba\u8a8d\u3067\u304d\u3066\u3044\u308b\u306e\u304b\u3092\u6574\u7406\u3057\u305f\u307b\u3046\u304c\u3001\u7d50\u679c\u3068\u3057\u3066\u793e\u5185\u8aac\u660e\u3082\u9032\u3081\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002BtoB \u306e\u73fe\u5834\u3067\u306f\u3001\u6280\u8853\u5bfe\u5fdc\u305d\u306e\u3082\u306e\u3088\u308a\u3001\u300c\u5b89\u5168\u306b\u9032\u3081\u305f\u3068\u8aac\u660e\u3067\u304d\u308b\u304b\u300d\u304c\u5951\u7d04\u3084\u7d99\u7d9a\u904b\u7528\u306b\u5f71\u97ff\u3059\u308b\u3053\u3068\u3082\u5c11\u306a\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<hr>\n<h3>\u4e0a\u9650\u7de9\u548c\u3092\u884c\u3046\u306a\u3089\u3001\u524d\u63d0\u6761\u4ef6\u3092\u63c3\u3048\u3066\u304b\u3089\u306e\u307b\u3046\u304c\u5b89\u5168<\/h3>\n<p>\u3082\u3061\u308d\u3093\u3001\u7a3c\u50cd\u7d99\u7d9a\u306e\u305f\u3081\u306b\u4e00\u6642\u7684\u306a\u4e0a\u9650\u7de9\u548c\u304c\u5fc5\u8981\u306a\u30b1\u30fc\u30b9\u306f\u3042\u308a\u307e\u3059\u3002\u30ab\u30fc\u30cd\u30eb\u6587\u66f8\u3067\u3082\u3001file-max \u306f file handles \u4e0a\u9650\u305d\u306e\u3082\u306e\u3067\u3042\u308a\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u591a\u767a\u3059\u308b\u5834\u5408\u306b\u5f15\u304d\u4e0a\u3052\u3092\u691c\u8a0e\u3059\u308b\u4f59\u5730\u304c\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u305d\u308c\u306f\u300c\u5897\u3084\u305b\u3070\u5b89\u5168\u300d\u3068\u3044\u3046\u610f\u5473\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3044\u3064\u5897\u3048\u305f\u306e\u304b\u3001\u8ab0\u304c\u5897\u3084\u3057\u305f\u306e\u304b\u3001\u5897\u52a0\u304c\u623b\u308b\u306e\u304b\u3001\u3069\u306e\u5171\u6709\u57fa\u76e4\u306b\u6ce2\u53ca\u3059\u308b\u306e\u304b\u304c\u898b\u3048\u3066\u3044\u306a\u3044\u307e\u307e\u5024\u3060\u3051\u5e83\u3052\u308b\u3068\u3001\u969c\u5bb3\u306e\u9855\u5728\u5316\u3092\u9045\u3089\u305b\u308b\u3060\u3051\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3082\u5171\u6709\u30ce\u30fc\u30c9\u74b0\u5883\u3067\u306f\u3001\u3042\u308b\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u306e\u4f59\u767d\u3092\u5897\u3084\u3057\u305f\u7d50\u679c\u3068\u3057\u3066\u3001\u5225\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u306e\u4f59\u767d\u304c\u7e2e\u3080\u3053\u3068\u3082\u8d77\u3053\u308a\u5f97\u307e\u3059\u3002<\/p>\n<p>\u3057\u305f\u304c\u3063\u3066\u3001\u4e0a\u9650\u7de9\u548c\u3092\u9078\u3076\u5834\u5408\u3067\u3082\u3001\u5c11\u306a\u304f\u3068\u3082\u6b21\u306e\u89b3\u70b9\u306f\u63c3\u3048\u3066\u304a\u304d\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30db\u30b9\u30c8\u5168\u4f53\u306e file-max \u3068\u73fe\u6642\u70b9\u306e\u4f7f\u7528\u91cf\u306e\u5dee\u304c\u78ba\u8a8d\u3067\u304d\u3066\u3044\u308b\u3053\u3068<\/li>\n<li>\u500b\u5225\u30b5\u30fc\u30d3\u30b9\u306e RLIMIT_NOFILE \u3084\u5b9f\u884c\u57fa\u76e4\u4e0a\u306e\u5236\u7d04\u304c\u628a\u63e1\u3067\u304d\u3066\u3044\u308b\u3053\u3068<\/li>\n<li>\u540c\u5c45\u30b5\u30fc\u30d3\u30b9\u3001\u76e3\u8996\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u30b5\u30a4\u30c9\u30ab\u30fc\u3092\u542b\u3081\u305f\u6d88\u8cbb\u69cb\u9020\u304c\u6574\u7406\u3067\u304d\u3066\u3044\u308b\u3053\u3068<\/li>\n<li>\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u672c\u756a\u30c7\u30fc\u30bf\u3001\u76e3\u67fb\u8981\u4ef6\u306b\u5bfe\u3059\u308b\u8aac\u660e\u7dda\u304c\u5f15\u3051\u3066\u3044\u308b\u3053\u3068<\/li>\n<\/ul>\n<p>\u3053\u3053\u307e\u3067\u6761\u4ef6\u304c\u63c3\u3063\u3066\u3044\u308c\u3070\u3001\u4e0a\u9650\u7de9\u548c\u306f\u300c\u305d\u306e\u5834\u3057\u306e\u304e\u306e\u5024\u5909\u66f4\u300d\u3067\u306f\u306a\u304f\u3001\u5f71\u97ff\u7bc4\u56f2\u3092\u8aad\u3093\u3060\u3046\u3048\u3067\u306e\u6291\u3048\u8fbc\u307f\u7b56\u3068\u3057\u3066\u6271\u3044\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u9006\u306b\u3001\u3053\u306e\u6574\u7406\u304c\u306a\u3044\u307e\u307e\u52d5\u304f\u3068\u3001\u3044\u3063\u305f\u3093\u9759\u304b\u306b\u306a\u3063\u3066\u3082\u5225\u306e\u6642\u9593\u5e2f\u3001\u5225\u306e\u7cfb\u7d71\u3001\u5225\u306e\u30b5\u30fc\u30d3\u30b9\u3067\u518d\u71c3\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u500b\u5225\u6848\u4ef6\u3067\u306f\u3001\u69cb\u6210\u3001\u8cac\u4efb\u5206\u754c\u3001\u30c7\u30fc\u30bf\u4fdd\u5168\u8981\u4ef6\u3001\u5909\u66f4\u7ba1\u7406\u306e\u6761\u4ef6\u304c\u305d\u308c\u305e\u308c\u7570\u306a\u308b\u305f\u3081\u3001\u4e00\u822c\u8ad6\u3060\u3051\u3067\u5b89\u5168\u306a\u7b54\u3048\u304c\u51fa\u306a\u3044\u5834\u9762\u3082\u3042\u308a\u307e\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\u69cb\u6210\u3067\u306f\u3001<strong>\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240<\/strong>\u306e\u3088\u3046\u306a\u5c02\u9580\u5bb6\u306b\u76f8\u8ac7\u3057\u3001\u6700\u5c0f\u5909\u66f4\u3067\u306e\u53ce\u675f\u7b56\u3068\u6052\u4e45\u5bfe\u7b56\u306e\u7dda\u5f15\u304d\u3092\u6574\u7406\u3057\u305f\u3046\u3048\u3067\u9032\u3081\u308b\u307b\u3046\u304c\u3001\u7d50\u679c\u3068\u3057\u3066\u73fe\u5834\u306e\u8ca0\u62c5\u3068\u8aac\u660e\u30b3\u30b9\u30c8\u3092\u6291\u3048\u3084\u3059\u304f\u306a\u308a\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\u6b62\u3081\u306b\u304f\u3044\u672c\u756a\u3067\u3069\u3046\u76f4\u3059\u304b\u2015\u2015 \u6700\u5c0f\u5909\u66f4\u3067\u5b89\u5168\u306b\u9032\u3081\u308b\u6052\u4e45\u5bfe\u7b56\u3068\u904b\u7528\u8a2d\u8a08<\/h2>\n<p>ENFILE \u306e\u5bfe\u5fdc\u3067\u672c\u5f53\u306b\u96e3\u3057\u3044\u306e\u306f\u3001\u300c\u4eca\u3053\u306e\u77ac\u9593\u306e\u4e0d\u5b89\u5b9a\u3055\u3092\u9759\u304b\u306b\u3059\u308b\u3053\u3068\u300d\u3068\u300c\u540c\u3058\u3053\u3068\u3092\u7e70\u308a\u8fd4\u3055\u306a\u3044\u8a2d\u8a08\u306b\u623b\u3059\u3053\u3068\u300d\u3092\u3001\u540c\u6642\u306b\u8003\u3048\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u70b9\u3067\u3059\u3002Linux \u3067\u306f ENFILE \u306f system-wide limit on the total number of open files \u306b\u5230\u9054\u3057\u305f\u72b6\u614b\u3068\u3057\u3066\u5b9a\u7fa9\u3055\u308c\u3066\u304a\u308a\u3001open(2) \u3060\u3051\u3067\u306a\u304f accept(2)\u3001socket(2)\u3001pipe(2) \u306a\u3069\u3067\u3082\u767a\u751f\u3057\u5f97\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u969c\u5bb3\u306e\u898b\u3048\u65b9\u304c\u30a2\u30d7\u30ea I\/O \u306b\u9650\u3089\u308c\u305a\u3001\u63a5\u7d9a\u53d7\u4ed8\u3084\u30ef\u30fc\u30ab\u30fc\u751f\u6210\u307e\u3067\u5e83\u304c\u308b\u305f\u3081\u3001\u672c\u756a\u3067\u306e\u5bfe\u51e6\u306f\u300c\u5024\u3092\u4e0a\u3052\u308b\u300d\u3060\u3051\u3067\u306f\u7d42\u308f\u308a\u307e\u305b\u3093\u3002\u307e\u305a\u306f\u5f71\u97ff\u7bc4\u56f2\u3092\u5e83\u3052\u305a\u306b\u72b6\u6cc1\u3092\u843d\u3061\u7740\u304b\u305b\u3001\u305d\u306e\u3046\u3048\u3067\u5897\u52a0\u8981\u56e0\u3092\u8a2d\u8a08\u3068\u904b\u7528\u306e\u4e21\u9762\u304b\u3089\u6e1b\u3089\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3082\u672c\u756a\u74b0\u5883\u3067\u306f\u3001\u6b62\u3081\u3084\u3059\u3055\u3088\u308a\u8aac\u660e\u53ef\u80fd\u6027\u304c\u91cd\u8981\u306b\u306a\u308b\u5834\u9762\u304c\u5c11\u306a\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u5171\u6709\u30ce\u30fc\u30c9\u3001\u76e3\u8996\u3001\u30ed\u30b0\u8ee2\u9001\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u30b5\u30a4\u30c9\u30ab\u30fc\u306a\u3069\u304c\u540c\u5c45\u3057\u3066\u3044\u308b\u3068\u3001\u3042\u308b\u30b5\u30fc\u30d3\u30b9\u306e\u5909\u66f4\u304c\u5225\u30b5\u30fc\u30d3\u30b9\u306e\u4f59\u767d\u3092\u5727\u8feb\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\/proc\/sys\/fs\/file-max \u306f\u30db\u30b9\u30c8\u5168\u4f53\u306e file handle \u4e0a\u9650\u3067\u3042\u308a\u3001file-nr \u306f\u5272\u308a\u5f53\u3066\u6e08\u307f file handles \u3068\u6700\u5927\u5024\u306e\u78ba\u8a8d\u306b\u4f7f\u3048\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u6052\u4e45\u5bfe\u7b56\u3092\u8003\u3048\u308b\u3068\u304d\u306f\u3001\u500b\u5225\u30b5\u30fc\u30d3\u30b9\u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3068\u30db\u30b9\u30c8\u5168\u4f53\u306e\u8cc7\u6e90\u8a2d\u8a08\u3092\u5206\u3051\u3066\u6271\u3046\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<hr>\n<h3>\u6052\u4e45\u5bfe\u7b56\u306f\u300c\u5024\u306e\u5f15\u304d\u4e0a\u3052\u300d\u3067\u306f\u306a\u304f\u300c\u5897\u3048\u65b9\u306e\u8a2d\u8a08\u5909\u66f4\u300d\u304b\u3089\u8003\u3048\u308b<\/h3>\n<p>ENFILE \u306e\u518d\u767a\u3092\u9632\u3050\u3046\u3048\u3067\u3001\u6700\u3082\u52b9\u679c\u304c\u5927\u304d\u3044\u306e\u306f\u300c\u4f55\u304c\u5897\u3048\u3066\u3044\u308b\u304b\u300d\u306b\u5fdc\u3058\u3066\u3001\u5897\u3048\u65b9\u305d\u306e\u3082\u306e\u3092\u7a4f\u3084\u304b\u306b\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30d5\u30a1\u30a4\u30eb\u3084\u30bd\u30b1\u30c3\u30c8\u306e\u89e3\u653e\u6f0f\u308c\u304c\u3042\u308b\u306a\u3089\u30b3\u30fc\u30c9\u4fee\u6b63\u304c\u4e2d\u5fc3\u306b\u306a\u308a\u307e\u3059\u3057\u3001\u30d4\u30fc\u30af\u6642\u3060\u3051\u6025\u5897\u3059\u308b\u306a\u3089\u540c\u6642\u5b9f\u884c\u6570\u3001\u63a5\u7d9a\u30d7\u30fc\u30eb\u3001\u30ef\u30fc\u30ab\u30fc\u6570\u3001\u30d0\u30c3\u30c1\u306e\u5b9f\u884c\u30bf\u30a4\u30df\u30f3\u30b0\u3001\u30ed\u30b0\u51fa\u529b\u8a2d\u8a08\u3092\u898b\u76f4\u3059\u307b\u3046\u304c\u7b4b\u304c\u901a\u308a\u307e\u3059\u3002epoll_create(2) \u306e\u6587\u66f8\u3067\u3082\u3001epoll \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u81ea\u4f53\u304c file descriptor \u3092\u8fd4\u3057\u3001\u4e0d\u8981\u306b\u306a\u308c\u3070 close(2) \u3067\u89e3\u653e\u3059\u3079\u304d\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u73fe\u4ee3\u7684\u306a\u9ad8\u4e26\u5217\u51e6\u7406\u3067\u3042\u3063\u3066\u3082\u300c\u4f7f\u3044\u7d42\u308f\u3063\u305f\u8a18\u8ff0\u5b50\u3092\u78ba\u5b9f\u306b\u9589\u3058\u308b\u300d\u3068\u3044\u3046\u57fa\u672c\u306f\u5909\u308f\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u5b9f\u52d9\u3067\u3042\u308a\u304c\u3061\u306a\u306e\u306f\u3001\u30b3\u30fc\u30c9\u4fee\u6b63\u304c\u3059\u3050\u306b\u306f\u96e3\u3057\u3044\u305f\u3081\u3001\u307e\u305a LimitNOFILE \u3084 file-max \u306e\u62e1\u5927\u3060\u3051\u3067\u53ce\u3081\u3088\u3046\u3068\u3059\u308b\u5224\u65ad\u3067\u3059\u3002\u3082\u3061\u308d\u3093\u3001\u30b5\u30fc\u30d3\u30b9\u7d99\u7d9a\u306e\u305f\u3081\u306b\u4e00\u6642\u7684\u306a\u4f59\u767d\u3092\u78ba\u4fdd\u3059\u308b\u3053\u3068\u304c\u5fc5\u8981\u306a\u5834\u9762\u306f\u3042\u308a\u307e\u3059\u3002\u305f\u3060\u3057 systemd \u306e\u516c\u5f0f\u6587\u66f8\u3067\u306f\u3001LimitNOFILE= \u306f\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u6570\u306e\u5236\u9650\u306b\u95a2\u308f\u308b\u3082\u306e\u306e\u3001Linux \u3067\u306f soft limit \u3092 1024 \u3088\u308a\u5927\u304d\u304f\u3059\u308b\u3068 select(2) \u3092\u4f7f\u3046\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u6b63\u3057\u304f\u52d5\u304b\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3042\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u9ad8\u3044 FD \u756a\u53f7\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u524d\u63d0\u306b\u6271\u3046\u3079\u304d\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u4e0a\u9650\u5024\u3092\u5897\u3084\u3059\u3053\u3068\u81ea\u4f53\u306b\u3082\u524d\u63d0\u6761\u4ef6\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; text-align:left;\">\u5897\u52a0\u8981\u56e0\u306e\u4f8b<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u6052\u4e45\u5bfe\u7b56\u306e\u65b9\u5411<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u5024\u5909\u66f4\u306e\u4f4d\u7f6e\u3065\u3051<\/th>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u89e3\u653e\u6f0f\u308c\u30fb\u30ea\u30fc\u30af<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">close \u6f0f\u308c\u3001\u30bd\u30b1\u30c3\u30c8\u56de\u53ce\u3001\u9577\u5bff\u547d\u30ef\u30fc\u30ab\u30fc\u306e\u5f8c\u59cb\u672b\u3092\u4fee\u6b63\u3059\u308b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u4fee\u6b63\u5b8c\u4e86\u307e\u3067\u306e\u66ab\u5b9a\u4f59\u767d\u3068\u3057\u3066\u6271\u3046<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u30d4\u30fc\u30af\u6642\u306e\u6025\u5897<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u4e26\u5217\u5ea6\u3001\u63a5\u7d9a\u6570\u3001\u30b8\u30e7\u30d6\u5b9f\u884c\u30bf\u30a4\u30df\u30f3\u30b0\u3001\u30d7\u30fc\u30eb\u8a2d\u8a08\u3092\u898b\u76f4\u3059<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30d4\u30fc\u30af\u5438\u53ce\u306e\u88dc\u52a9\u7b56\u3068\u3057\u3066\u6271\u3046<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u540c\u5c45\u30b5\u30fc\u30d3\u30b9\u306e\u7a4d\u307f\u4e0a\u304c\u308a<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30ce\u30fc\u30c9\u914d\u7f6e\u3001\u5f79\u5272\u5206\u96e2\u3001\u76e3\u8996\u30fb\u30ed\u30b0\u7d4c\u8def\u306e\u6574\u7406\u3092\u884c\u3046<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5168\u4f53\u8a2d\u8a08\u306e\u898b\u76f4\u3057\u524d\u63d0\u3067\u614e\u91cd\u306b\u6271\u3046<\/td>\n<\/tr>\n<\/table>\n<hr>\n<h3>\u5b89\u5168\u306b\u9032\u3081\u308b\u9806\u756a\u3092\u6c7a\u3081\u3066\u304a\u304f\u3068\u3001\u73fe\u5834\u306e\u8ca0\u62c5\u304c\u8efd\u304f\u306a\u308b<\/h3>\n<p>\u6b62\u3081\u306b\u304f\u3044\u672c\u756a\u3067\u306f\u3001\u5bfe\u7b56\u306e\u6b63\u3057\u3055\u3068\u540c\u3058\u304f\u3089\u3044\u3001\u9032\u3081\u308b\u9806\u756a\u304c\u91cd\u8981\u3067\u3059\u3002\u4e00\u822c\u306b\u3001\u6700\u3082\u5b89\u5168\u306a\u306e\u306f\u300c\u89b3\u6e2c\u3092\u5897\u3084\u3059\u300d\u300c\u5897\u52a0\u6e90\u3092\u7d5e\u308b\u300d\u300c\u5fc5\u8981\u6700\u5c0f\u9650\u306e\u66ab\u5b9a\u5bfe\u5fdc\u3092\u884c\u3046\u300d\u300c\u6052\u4e45\u5bfe\u7b56\u3092\u5165\u308c\u308b\u300d\u300c\u76e3\u8996\u6761\u4ef6\u3092\u66f4\u65b0\u3059\u308b\u300d\u3068\u3044\u3046\u6d41\u308c\u3067\u3059\u3002\u306a\u305c\u306a\u3089\u3001\/proc\/sys\/fs\/file-nr \u3084 RLIMIT_NOFILE \u306e\u3088\u3046\u306b\u3001\u30db\u30b9\u30c8\u5168\u4f53\u3068\u30d7\u30ed\u30bb\u30b9\u5358\u4f4d\u306e\u4e21\u65b9\u306b\u89b3\u6e2c\u70b9\u304c\u3042\u308b\u305f\u3081\u3001\u5148\u306b\u53ef\u8996\u5316\u3092\u6574\u3048\u305f\u307b\u3046\u304c\u5909\u66f4\u306e\u59a5\u5f53\u6027\u3092\u8aac\u660e\u3057\u3084\u3059\u304f\u306a\u308b\u304b\u3089\u3067\u3059\u3002RLIMIT_NOFILE \u306f\u30d7\u30ed\u30bb\u30b9\u304c\u958b\u3051\u308b\u6700\u5927 file descriptor \u756a\u53f7\u30d7\u30e9\u30b9 1 \u3067\u3042\u308a\u3001\u3053\u306e\u5236\u9650\u3092\u8d85\u3048\u308b\u3068 EMFILE \u306b\u306a\u308a\u307e\u3059\u3002\u30db\u30b9\u30c8\u5168\u4f53\u306e ENFILE \u3068\u6df7\u5728\u3059\u308b\u3053\u3068\u3082\u3042\u308b\u305f\u3081\u3001\u9806\u756a\u3092\u8aa4\u308b\u3068\u5207\u308a\u5206\u3051\u304c\u96e3\u3057\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u904b\u7528\u3067\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u4e26\u3073\u304c\u6bd4\u8f03\u7684\u5b89\u5168\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u73fe\u5728\u306e\u30db\u30b9\u30c8\u5168\u4f53\u306e\u4f7f\u7528\u91cf\u3001\u6642\u7cfb\u5217\u306e\u5897\u6e1b\u3001\u4e3b\u8981\u30d7\u30ed\u30bb\u30b9\u306e\u6d88\u8cbb\u3092\u628a\u63e1\u3059\u308b<\/li>\n<li>\u518d\u73fe\u6761\u4ef6\u3084\u5897\u52a0\u30c8\u30ea\u30ac\u30fc\u304c\u5206\u304b\u308b\u306a\u3089\u3001\u5909\u66f4\u524d\u306b\u8a18\u9332\u3068\u3057\u3066\u6b8b\u3059<\/li>\n<li>\u672c\u5f53\u306b\u5fc5\u8981\u306a\u5834\u5408\u306e\u307f\u3001\u5f71\u97ff\u7bc4\u56f2\u3092\u9650\u5b9a\u3057\u305f\u66ab\u5b9a\u7de9\u548c\u3092\u884c\u3046<\/li>\n<li>\u30b3\u30fc\u30c9\u3001\u4e26\u5217\u5ea6\u3001\u30b8\u30e7\u30d6\u8a2d\u8a08\u3001\u914d\u7f6e\u8a2d\u8a08\u306e\u3044\u305a\u308c\u304c\u672c\u547d\u304b\u3092\u6c7a\u3081\u308b<\/li>\n<li>\u6052\u4e45\u5bfe\u7b56\u5f8c\u306b\u76e3\u8996\u95be\u5024\u3068\u904b\u7528\u624b\u9806\u3092\u66f4\u65b0\u3057\u3001\u518d\u767a\u6642\u306e\u5224\u65ad\u3092\u77ed\u304f\u3059\u308b<\/li>\n<\/ol>\n<p>\u3053\u306e\u9806\u756a\u306e\u5229\u70b9\u306f\u3001\u300c\u4eca\u306f\u9759\u304b\u3060\u304c\u3001\u306a\u305c\u9759\u304b\u306b\u306a\u3063\u305f\u304b\u8aac\u660e\u3067\u304d\u306a\u3044\u300d\u3068\u3044\u3046\u72b6\u614b\u3092\u907f\u3051\u3084\u3059\u3044\u3053\u3068\u3067\u3059\u3002BtoB \u306e\u6848\u4ef6\u3067\u306f\u3001\u969c\u5bb3\u305d\u306e\u3082\u306e\u3088\u308a\u3082\u3001\u305d\u306e\u5f8c\u306e\u8aac\u660e\u4e0d\u8db3\u304c\u4fe1\u983c\u4f4e\u4e0b\u306b\u3064\u306a\u304c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u6700\u5c0f\u5909\u66f4\u3067\u53ce\u675f\u3055\u305b\u308b\u306b\u306f\u3001\u4f5c\u696d\u91cf\u3092\u5897\u3084\u3059\u306e\u3067\u306f\u306a\u304f\u3001\u610f\u601d\u6c7a\u5b9a\u306b\u5fc5\u8981\u306a\u89b3\u6e2c\u70b9\u3092\u305d\u308d\u3048\u308b\u3053\u3068\u304c\u8fd1\u9053\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u76e3\u8996\u306f\u300c\u4ef6\u6570\u76e3\u8996\u300d\u3060\u3051\u3067\u306a\u304f\u300c\u4f59\u767d\u76e3\u8996\u300d\u306b\u3059\u308b\u3068\u518d\u767a\u3092\u62fe\u3044\u3084\u3059\u3044<\/h3>\n<p>\u6052\u4e45\u5bfe\u7b56\u306e\u4e00\u90e8\u3068\u3057\u3066\u898b\u843d\u3068\u3055\u308c\u3084\u3059\u3044\u306e\u304c\u76e3\u8996\u8a2d\u8a08\u3067\u3059\u3002ENFILE \u306f\u3001\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u77ac\u9593\u3060\u3051\u3092\u898b\u308b\u3068\u5f8c\u624b\u306b\u56de\u308a\u3084\u3059\u3044\u305f\u3081\u3001file-nr \u3068 file-max \u306e\u5dee\u3001\u4e3b\u8981\u30b5\u30fc\u30d3\u30b9\u306e open files \u6570\u3001\u6642\u523b\u3054\u3068\u306e\u5897\u52a0\u50be\u5411\u3092\u7d99\u7d9a\u76e3\u8996\u3059\u308b\u307b\u3046\u304c\u5b9f\u52d9\u7684\u3067\u3059\u3002\u30ab\u30fc\u30cd\u30eb\u6587\u66f8\u3067\u306f file-nr \u306b\u5272\u308a\u5f53\u3066\u6e08\u307f file handles \u3068\u6700\u5927\u5024\u304c\u73fe\u308c\u3001Linux 2.6 \u4ee5\u964d\u306f\u672a\u4f7f\u7528\u5206\u306e\u5217\u306f\u5e38\u306b 0 \u3068\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u300c\u4eca\u3044\u304f\u3064\u4f7f\u3063\u3066\u3044\u308b\u304b\u300d\u3060\u3051\u3067\u306a\u304f\u3001\u300c\u3042\u3068\u3069\u308c\u3060\u3051\u4f59\u767d\u304c\u3042\u308b\u304b\u300d\u3092\u7d99\u7d9a\u7684\u306b\u8ffd\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u5f79\u7acb\u3064\u306e\u306f\u3001\u5358\u7d14\u306a\u95be\u5024\u8d85\u904e\u30a2\u30e9\u30fc\u30c8\u3060\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305f\u3068\u3048\u3070\u3001\u5e73\u5e38\u6642\u3088\u308a\u53f3\u80a9\u4e0a\u304c\u308a\u306e\u50be\u5411\u304c\u7d9a\u3044\u3066\u3044\u308b\u3001\u7279\u5b9a\u6642\u523b\u3060\u3051\u6025\u5897\u3059\u308b\u3001\u7279\u5b9a\u30b5\u30fc\u30d3\u30b9\u518d\u8d77\u52d5\u5f8c\u306b\u518d\u3073\u540c\u3058\u52fe\u914d\u3067\u5897\u3048\u308b\u3001\u3068\u3044\u3063\u305f\u30d1\u30bf\u30fc\u30f3\u76e3\u8996\u3092\u52a0\u3048\u308b\u3068\u3001\u30ea\u30fc\u30af\u3068\u30d4\u30fc\u30af\u8ca0\u8377\u3092\u898b\u5206\u3051\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u969c\u5bb3\u304c\u9855\u5728\u5316\u3059\u308b\u524d\u306e\u6bb5\u968e\u3067\u30d6\u30ec\u30fc\u30ad\u3092\u304b\u3051\u3084\u3059\u304f\u306a\u308a\u3001\u6df1\u591c\u3084\u4f11\u65e5\u306e\u30c0\u30e1\u30fc\u30b8\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u8ffd\u308f\u308c\u308b\u983b\u5ea6\u3092\u4e0b\u3052\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30db\u30b9\u30c8\u5168\u4f53\u3067\u306f file-nr \u3068 file-max \u306e\u5dee\u5206\u3092\u898b\u308b<\/li>\n<li>\u4e3b\u8981\u30b5\u30fc\u30d3\u30b9\u3067\u306f open files \u6570\u306e\u63a8\u79fb\u3092\u898b\u308b<\/li>\n<li>\u5b9a\u671f\u51e6\u7406\u306e\u524d\u5f8c\u3067\u5897\u3048\u65b9\u304c\u5909\u308f\u308b\u304b\u3092\u898b\u308b<\/li>\n<li>\u518d\u8d77\u52d5\u5f8c\u306e\u52fe\u914d\u3092\u6bd4\u8f03\u3057\u3001\u30ea\u30fc\u30af\u3089\u3057\u3055\u3092\u5224\u65ad\u3059\u308b<\/li>\n<\/ul>\n<hr>\n<h3>\u6052\u4e45\u5bfe\u7b56\u306f\u3001\u8a2d\u5b9a\u30fb\u30b3\u30fc\u30c9\u30fb\u914d\u7f6e\u306e\u4e09\u5c64\u3067\u8003\u3048\u308b\u3068\u6574\u7406\u3057\u3084\u3059\u3044<\/h3>\n<p>\u518d\u767a\u3092\u907f\u3051\u308b\u306b\u306f\u3001\u5bfe\u7b56\u3092 1 \u3064\u306e\u5c64\u3060\u3051\u3067\u8003\u3048\u306a\u3044\u307b\u3046\u304c\u5b89\u5168\u3067\u3059\u3002\u8a2d\u5b9a\u5c64\u3067\u306f RLIMIT_NOFILE \u3084 file-max\u3001\u30b5\u30fc\u30d3\u30b9\u5b9a\u7fa9\u3092\u9069\u6b63\u5316\u3057\u3001\u30b3\u30fc\u30c9\u5c64\u3067\u306f close \u6f0f\u308c\u3084\u63a5\u7d9a\u4f7f\u3044\u56de\u3057\u3092\u4fee\u6b63\u3057\u3001\u914d\u7f6e\u5c64\u3067\u306f\u540c\u5c45\u30b5\u30fc\u30d3\u30b9\u306e\u5bc6\u5ea6\u3084\u30ce\u30fc\u30c9\u5f79\u5272\u3092\u898b\u76f4\u3059\u3001\u3068\u3044\u3046\u4e09\u5c64\u3067\u6574\u7406\u3059\u308b\u3068\u3001\u624b\u623b\u308a\u304c\u6e1b\u308a\u307e\u3059\u3002systemd \u306e LimitNOFILE= \u306f\u3042\u304f\u307e\u3067\u30b5\u30fc\u30d3\u30b9\u5358\u4f4d\u306e\u5236\u9650\u3067\u3042\u308a\u3001file-max \u306f\u30db\u30b9\u30c8\u5168\u4f53\u306e\u4e0a\u9650\u3067\u3059\u3002\u3069\u3061\u3089\u304b\u7247\u65b9\u3060\u3051\u3067\u306f\u7247\u3065\u304b\u306a\u3044\u6848\u4ef6\u304c\u3042\u308b\u305f\u3081\u3001\u5f79\u5272\u5206\u62c5\u3092\u660e\u78ba\u306b\u3057\u305f\u307b\u3046\u304c\u793e\u5185\u8aac\u660e\u3082\u901a\u3057\u3084\u3059\u304f\u306a\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; text-align:left;\">\u5c64<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u4e3b\u306a\u5bfe\u8c61<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u5b9f\u52d9\u3067\u306e\u72d9\u3044<\/th>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u8a2d\u5b9a<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">LimitNOFILE\u3001file-max\u3001\u8d77\u52d5\u5b9a\u7fa9\u3001\u76e3\u8996\u95be\u5024<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5fc5\u8981\u306a\u4f59\u767d\u3092\u78ba\u4fdd\u3057\u3064\u3064\u3001\u904e\u5270\u7de9\u548c\u3092\u907f\u3051\u308b<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u30b3\u30fc\u30c9<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">close \u6f0f\u308c\u3001\u63a5\u7d9a\u7ba1\u7406\u3001\u4e26\u5217\u5236\u5fa1\u3001\u9577\u5bff\u547d\u30ef\u30fc\u30ab\u30fc<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5897\u3048\u65b9\u305d\u306e\u3082\u306e\u3092\u6e1b\u3089\u3057\u3001\u518d\u767a\u8981\u56e0\u3092\u306a\u304f\u3059<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u914d\u7f6e<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u30ce\u30fc\u30c9\u5206\u96e2\u3001\u5f79\u5272\u5206\u6563\u3001\u5171\u6709\u57fa\u76e4\u3068\u306e\u8cac\u4efb\u5206\u754c<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u4ed6\u30b5\u30fc\u30d3\u30b9\u3078\u306e\u6ce2\u53ca\u3092\u6291\u3048\u3001\u969c\u5bb3\u534a\u5f84\u3092\u5c0f\u3055\u304f\u3059\u308b<\/td>\n<\/tr>\n<\/table>\n<p>\u3053\u306e\u4e09\u5c64\u3067\u898b\u308b\u3068\u3001\u300c\u306a\u305c\u4eca\u306e\u69cb\u6210\u3067\u306f\u518d\u767a\u3057\u3084\u3059\u3044\u306e\u304b\u300d\u304c\u6574\u7406\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u9006\u306b\u3001\u5024\u3060\u3051\u3092\u5e83\u3052\u308b\u5bfe\u51e6\u306f\u8a2d\u5b9a\u5c64\u3057\u304b\u52d5\u304b\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u30b3\u30fc\u30c9\u3084\u914d\u7f6e\u306b\u539f\u56e0\u304c\u3042\u308b\u6848\u4ef6\u3067\u306f\u518d\u71c3\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u4e00\u822c\u8ad6\u3060\u3051\u3067\u306f\u6c7a\u3081\u306b\u304f\u3044\u6848\u4ef6\u307b\u3069\u3001\u500b\u5225\u8a3a\u65ad\u306e\u4fa1\u5024\u304c\u5927\u304d\u3044<\/h3>\n<p>\u3053\u3053\u307e\u3067\u306e\u6574\u7406\u306f\u3001ENFILE \u306e\u672c\u8cea\u3092\u898b\u5931\u308f\u306a\u3044\u305f\u3081\u306e\u4e00\u822c\u7684\u306a\u8003\u3048\u65b9\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u5b9f\u969b\u306e\u6848\u4ef6\u3067\u306f\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\u8907\u6570\u30d9\u30f3\u30c0\u30fc\u306e\u8cac\u4efb\u5206\u754c\u306a\u3069\u304c\u91cd\u306a\u308a\u3001\u540c\u3058 ENFILE \u3067\u3082\u5b89\u5168\u306a\u9032\u3081\u65b9\u304c\u5909\u308f\u308a\u307e\u3059\u3002Kubernetes \u306e sysctl \u904b\u7528\u304c\u5b89\u5168\u6027\u533a\u5206\u3084\u30ce\u30fc\u30c9\u5f71\u97ff\u3092\u524d\u63d0\u306b\u3057\u3066\u3044\u308b\u3088\u3046\u306b\u3001\u57fa\u76e4\u306b\u8fd1\u3044\u8a2d\u5b9a\u306f\u300c\u5909\u3048\u3089\u308c\u308b\u304b\u3069\u3046\u304b\u300d\u3060\u3051\u3067\u306a\u304f\u3001\u300c\u8ab0\u304c\u3001\u3069\u306e\u7bc4\u56f2\u3067\u3001\u3069\u3093\u306a\u6839\u62e0\u3067\u5909\u3048\u308b\u304b\u300d\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4e00\u822c\u8ad6\u3068\u3057\u3066\u306f\u6b63\u3057\u3044\u5bfe\u7b56\u3067\u3082\u3001\u500b\u5225\u6848\u4ef6\u3067\u306f\u305d\u306e\u307e\u307e\u9069\u7528\u3057\u306a\u3044\u307b\u3046\u304c\u3088\u3044\u5834\u9762\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u5171\u6709\u30ce\u30fc\u30c9\u4e0a\u3067 file-max \u3092\u5e83\u3052\u308b\u3068\u5225\u7cfb\u7d71\u306e\u4f59\u767d\u8a2d\u8a08\u304c\u5d29\u308c\u308b\u3001LimitNOFILE \u3092\u4e0a\u3052\u308b\u3068\u53e4\u3044\u5b9f\u88c5\u304c\u9ad8\u3044 FD \u756a\u53f7\u306b\u8ffd\u968f\u3067\u304d\u306a\u3044\u3001\u76e3\u67fb\u8981\u4ef6\u4e0a\u306f\u5909\u66f4\u7406\u7531\u306e\u8a18\u9332\u3068\u5f71\u97ff\u7bc4\u56f2\u306e\u8aac\u660e\u304c\u5148\u306b\u5fc5\u8981\u3001\u3068\u3044\u3063\u305f\u30b1\u30fc\u30b9\u3067\u3059\u3002\u3053\u3046\u3057\u305f\u6848\u4ef6\u3067\u306f\u3001\u5358\u306a\u308b\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u60c5\u5831\u3088\u308a\u3082\u3001\u69cb\u6210\u5168\u4f53\u3092\u898b\u305f\u3046\u3048\u3067\u306e\u8a3a\u65ad\u3068\u6bb5\u53d6\u308a\u8a2d\u8a08\u304c\u91cd\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u60a9\u307f\u304c\u5177\u4f53\u7684\u306a\u6848\u4ef6\u3001\u5951\u7d04\u6761\u4ef6\u3001\u69cb\u6210\u5236\u7d04\u306b\u79fb\u3063\u3066\u304d\u305f\u6bb5\u968e\u3067\u306f\u3001<strong>\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240<\/strong>\u306e\u3088\u3046\u306a\u5c02\u9580\u5bb6\u306b\u76f8\u8ac7\u3057\u3001\u6700\u5c0f\u5909\u66f4\u3067\u306e\u53ce\u675f\u7b56\u3001\u6052\u4e45\u5bfe\u7b56\u3001\u76e3\u8996\u8a2d\u8a08\u3001\u8aac\u660e\u6750\u6599\u307e\u3067\u4e00\u4f53\u3067\u6574\u7406\u3059\u308b\u3053\u3068\u304c\u3001\u7d50\u679c\u3068\u3057\u3066\u5b89\u5168\u3067\u9032\u3081\u3084\u3059\u3044\u5224\u65ad\u306b\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\u73fe\u5834\u8aac\u660e\u307e\u3067\u542b\u3081\u3066\u7247\u3065\u3051\u308b\u2015\u2015 ENFILE \u5bfe\u5fdc\u3092\u300c\u305d\u306e\u5834\u3057\u306e\u304e\u300d\u3067\u7d42\u308f\u3089\u305b\u306a\u3044\u5224\u65ad\u8ef8<\/h2>\n<p>ENFILE \u306e\u5bfe\u5fdc\u304c\u96e3\u3057\u3044\u7406\u7531\u306f\u3001\u6280\u8853\u7684\u306b\u76f4\u305b\u308b\u304b\u3069\u3046\u304b\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u300c\u305d\u306e\u5bfe\u5fdc\u3092\u3069\u3046\u8aac\u660e\u3057\u3001\u3069\u3046\u5408\u610f\u3057\u3001\u3069\u3046\u518d\u767a\u9632\u6b62\u306b\u3064\u306a\u3052\u308b\u304b\u300d\u307e\u3067\u554f\u308f\u308c\u308b\u305f\u3081\u3067\u3059\u3002Linux \u306e open(2) \u3067\u306f ENFILE \u306f system-wide limit on the total number of open files \u306b\u9054\u3057\u305f\u72b6\u614b\u3068\u3057\u3066\u5b9a\u7fa9\u3055\u308c\u3066\u304a\u308a\u3001\u500b\u5225\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u3060\u3051\u3067\u5b8c\u7d50\u3057\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308b\u3053\u3068\u304c\u3001\u5b9a\u7fa9\u306e\u6642\u70b9\u3067\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u73fe\u5834\u3067\u8d77\u304d\u3066\u3044\u308b\u3053\u3068\u3092\u6b63\u3057\u304f\u8a00\u3044\u63db\u3048\u308b\u306a\u3089\u3001\u300c\u3042\u308b\u6a5f\u80fd\u304c\u58ca\u308c\u305f\u300d\u3068\u3044\u3046\u3088\u308a\u3001\u300c\u57fa\u76e4\u5168\u4f53\u306e\u4f59\u767d\u8a2d\u8a08\u306b\u7121\u7406\u304c\u51fa\u3066\u3044\u308b\u300d\u300c\u305d\u306e\u7d50\u679c\u3068\u3057\u3066\u4e00\u90e8\u6a5f\u80fd\u304b\u3089\u5148\u306b\u30a8\u30e9\u30fc\u304c\u898b\u3048\u3066\u3044\u308b\u300d\u3068\u3044\u3046\u72b6\u6cc1\u3067\u3059\u3002\u3053\u306e\u7406\u89e3\u306b\u7acb\u3066\u308b\u304b\u3069\u3046\u304b\u3067\u3001\u793e\u5185\u8aac\u660e\u306e\u8cea\u3082\u3001\u305d\u306e\u5f8c\u306e\u6253\u3061\u624b\u3082\u5909\u308f\u308a\u307e\u3059\u3002 ([man7.org](https:\/\/man7.org\/linux\/man-pages\/man2\/open.2.html?utm_source=chatgpt.com))<\/p>\n<p>\u5b9f\u969b\u306e\u969c\u5bb3\u5bfe\u5fdc\u3067\u306f\u3001\u6280\u8853\u62c5\u5f53\u8005\u306e\u982d\u306e\u4e2d\u306b\u3042\u308b\u8ad6\u70b9\u3068\u3001\u5f79\u54e1\u30fb\u7ba1\u7406\u8077\u30fb\u5229\u7528\u90e8\u9580\u304c\u77e5\u308a\u305f\u3044\u8ad6\u70b9\u304c\u305a\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u6280\u8853\u5074\u306f\u300c\u3069\u306e\u8a2d\u5b9a\u5024\u3092\u89e6\u308b\u304b\u300d\u300c\u3069\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u5897\u52a0\u6e90\u304b\u300d\u300c\u30ea\u30fc\u30af\u304b\u8ca0\u8377\u30d4\u30fc\u30af\u304b\u300d\u3068\u8003\u3048\u307e\u3059\u304c\u3001\u610f\u601d\u6c7a\u5b9a\u5074\u306f\u300c\u672c\u756a\u30c7\u30fc\u30bf\u306f\u5b89\u5168\u304b\u300d\u300c\u3044\u3064\u5b89\u5b9a\u3059\u308b\u306e\u304b\u300d\u300c\u518d\u767a\u3057\u306a\u3044\u6839\u62e0\u306f\u3042\u308b\u306e\u304b\u300d\u300c\u4eca\u306e\u5909\u66f4\u306f\u76e3\u67fb\u3084\u5951\u7d04\u4e0a\u554f\u984c\u306a\u3044\u304b\u300d\u3092\u6c17\u306b\u3057\u307e\u3059\u3002ENFILE \u306f\u30db\u30b9\u30c8\u5168\u4f53\u3084\u5171\u6709\u57fa\u76e4\u306b\u307e\u305f\u304c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u3053\u306e\u305a\u308c\u3092\u653e\u7f6e\u3059\u308b\u3068\u3001\u73fe\u5834\u304c\u9811\u5f35\u3063\u3066\u3044\u3066\u3082\u3001\u8aac\u660e\u4e0d\u8db3\u3060\u3051\u3067\u4e0d\u5b89\u304c\u5897\u5e45\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u6280\u8853\u8ad6\u70b9\u3092\u3001\u305d\u306e\u307e\u307e\u3067\u306f\u306a\u304f\u300c\u5224\u65ad\u6750\u6599\u300d\u306b\u5909\u3048\u308b<\/h3>\n<p>\u3053\u306e\u7a2e\u306e\u969c\u5bb3\u3067\u4fe1\u983c\u3092\u4fdd\u3061\u3084\u3059\u3044\u306e\u306f\u3001\u5c02\u9580\u7528\u8a9e\u3092\u6e1b\u3089\u3059\u3053\u3068\u3067\u306f\u306a\u304f\u3001\u5c02\u9580\u7684\u306a\u4e8b\u5b9f\u3092\u5224\u65ad\u6750\u6599\u3068\u3057\u3066\u4e26\u3079\u66ff\u3048\u308b\u3053\u3068\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u300cfile-max \u304c\u4e0d\u8db3\u3057\u3066\u3044\u308b\u300d\u300cRLIMIT_NOFILE \u304c\u5c0f\u3055\u3044\u300d\u3068\u3044\u3046\u8868\u73fe\u3060\u3051\u3067\u306f\u3001\u805e\u304d\u624b\u306b\u3068\u3063\u3066\u306f\u8a2d\u5b9a\u5024\u306e\u8a71\u306b\u3057\u304b\u898b\u3048\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u5b9f\u969b\u306b\u306f\u3001\u300c\u30db\u30b9\u30c8\u5168\u4f53\u306e\u4f59\u767d\u304c\u5c11\u306a\u304f\u3001\u500b\u5225\u30b5\u30fc\u30d3\u30b9\u306e\u518d\u8d77\u52d5\u3060\u3051\u3067\u306f\u518d\u767a\u3057\u3084\u3059\u3044\u300d\u300c\u500b\u5225\u30b5\u30fc\u30d3\u30b9\u306e\u4e0a\u9650\u5024\u3060\u3051\u4e0a\u3052\u308b\u3068\u3001\u5225\u30b5\u30fc\u30d3\u30b9\u306e\u4f59\u767d\u3092\u5727\u8feb\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u300d\u3068\u8a00\u3044\u63db\u3048\u308b\u3053\u3068\u3067\u3001\u610f\u601d\u6c7a\u5b9a\u306b\u5fc5\u8981\u306a\u610f\u5473\u304c\u4f1d\u308f\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\/proc\/sys\/fs\/file-max \u304c\u5168\u30d7\u30ed\u30bb\u30b9\u5408\u8a08\u306e open files \u306b\u5bfe\u3059\u308b\u4e0a\u9650\u3067\u3042\u308b\u3053\u3068\u3001RLIMIT_NOFILE \u304c\u30d7\u30ed\u30bb\u30b9\u5358\u4f4d\u306e\u4e0a\u9650\u3067\u3042\u308b\u3053\u3068\u3092\u8e0f\u307e\u3048\u308b\u3068\u3001\u3053\u306e\u8a00\u3044\u63db\u3048\u306f\u5358\u306a\u308b\u8868\u73fe\u4e0a\u306e\u5de5\u592b\u3067\u306f\u306a\u304f\u3001\u4e8b\u5b9f\u306b\u6cbf\u3063\u305f\u6574\u7406\u3067\u3059\u3002 ([docs.kernel.org](https:\/\/docs.kernel.org\/admin-guide\/sysctl\/fs.html?utm_source=chatgpt.com) [man7.org](https:\/\/man7.org\/linux\/man-pages\/man2\/getrlimit.2.html?utm_source=chatgpt.com))<\/p>\n<p>\u73fe\u5834\u8aac\u660e\u3067\u5f79\u7acb\u3064\u306e\u306f\u3001\u6b21\u306e 3 \u70b9\u3092\u5206\u3051\u3066\u4f1d\u3048\u308b\u3053\u3068\u3067\u3059\u30021 \u3064\u76ee\u306f\u300c\u4eca\u8d77\u304d\u3066\u3044\u308b\u3053\u3068\u300d\u30022 \u3064\u76ee\u306f\u300c\u4eca\u3059\u3050\u5927\u304d\u304f\u89e6\u3089\u306a\u3044\u7406\u7531\u300d\u30023 \u3064\u76ee\u306f\u300c\u3069\u3053\u307e\u3067\u78ba\u8a8d\u3067\u304d\u308c\u3070\u3001\u5b89\u5168\u306b\u6b21\u306e\u5224\u65ad\u306b\u9032\u3081\u308b\u304b\u300d\u3067\u3059\u3002\u3053\u306e\u9806\u756a\u3067\u6574\u7406\u3059\u308b\u3068\u3001\u76f8\u624b\u306f\u300c\u306a\u305c\u3059\u3050\u5927\u304d\u306a\u8a2d\u5b9a\u5909\u66f4\u3092\u3057\u306a\u3044\u306e\u304b\u300d\u3092\u7406\u89e3\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002ENFILE \u306e\u3088\u3046\u306b system-wide \u306a\u8cc7\u6e90\u554f\u984c\u3067\u306f\u3001\u89b3\u6e2c\u304c\u4e0d\u5341\u5206\u306a\u307e\u307e\u5927\u304d\u304f\u52d5\u304f\u3053\u3068\u304c\u3001\u5225\u7cfb\u7d71\u3078\u306e\u6ce2\u53ca\u3084\u8aac\u660e\u8ca0\u8377\u5897\u5927\u306b\u3064\u306a\u304c\u308b\u305f\u3081\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; text-align:left;\">\u8aac\u660e\u3057\u305f\u3044\u3053\u3068<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u6280\u8853\u7684\u306a\u6839\u62e0<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u793e\u5185\u3067\u4f1d\u308f\u308a\u3084\u3059\u3044\u8a00\u3044\u65b9<\/th>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u500b\u5225\u30a2\u30d7\u30ea\u3060\u3051\u306e\u8a71\u3067\u306f\u306a\u3044<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">ENFILE \u306f system-wide limit \u5230\u9054<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u4e00\u90e8\u6a5f\u80fd\u306e\u30a8\u30e9\u30fc\u306b\u898b\u3048\u3066\u3082\u3001\u57fa\u76e4\u5168\u4f53\u306e\u4f59\u767d\u4e0d\u8db3\u304c\u80cc\u666f\u306b\u3042\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u5927\u304d\u306a\u5909\u66f4\u3092\u6025\u304c\u306a\u3044\u7406\u7531<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5f71\u97ff\u7bc4\u56f2\u672a\u78ba\u5b9a\u306e\u5024\u5909\u66f4\u306f\u5225\u7cfb\u7d71\u3078\u6ce2\u53ca\u3057\u5f97\u308b<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u4eca\u306f\u6700\u5c0f\u5909\u66f4\u3067\u5834\u3092\u6574\u3048\u3001\u78ba\u8a8d\u3067\u304d\u305f\u7bc4\u56f2\u304b\u3089\u5b89\u5168\u306b\u9032\u3081\u307e\u3059<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u6b21\u306e\u5224\u65ad\u6761\u4ef6<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">file-nr\u3001file-max\u3001\u4e3b\u8981\u30d7\u30ed\u30bb\u30b9\u6d88\u8cbb\u3001\u6642\u7cfb\u5217\u76f8\u95a2<\/td>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u3042\u3068\u3069\u308c\u3060\u3051\u4f59\u767d\u304c\u3042\u308a\u3001\u3069\u3053\u304c\u5897\u52a0\u6e90\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u6052\u4e45\u7b56\u3092\u6c7a\u3081\u307e\u3059<\/td>\n<\/tr>\n<\/table>\n<hr>\n<h3>\u300c\u3084\u308b\u5224\u65ad\u300d\u3060\u3051\u3067\u306a\u304f\u300c\u3084\u3089\u306a\u3044\u5224\u65ad\u300d\u3092\u6301\u3064<\/h3>\n<p>\u969c\u5bb3\u5bfe\u5fdc\u3067\u306f\u3001\u4f55\u3092\u3059\u308b\u304b\u3068\u540c\u3058\u304f\u3089\u3044\u3001\u4f55\u3092\u4eca\u306f\u3057\u306a\u3044\u304b\u304c\u91cd\u8981\u3067\u3059\u3002ENFILE \u306e\u3088\u3046\u306b\u5171\u6709\u57fa\u76e4\u3084\u8907\u6570\u30b5\u30fc\u30d3\u30b9\u306b\u5f71\u97ff\u3057\u5f97\u308b\u554f\u984c\u3067\u306f\u3001\u5e83\u7bc4\u56f2\u306e\u6a29\u9650\u5909\u66f4\u3001\u7121\u5dee\u5225\u306a limit \u5f15\u304d\u4e0a\u3052\u3001\u8cac\u4efb\u5206\u754c\u3092\u8d8a\u3048\u305f\u5373\u5e2d\u5bfe\u5fdc\u306f\u3001\u5f8c\u304b\u3089\u898b\u308c\u3070\u904e\u5270\u306a\u624b\u5f53\u3066\u3060\u3063\u305f\u3068\u3044\u3046\u3053\u3068\u304c\u73cd\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002Kubernetes \u306e sysctl \u904b\u7528\u3067\u3082\u3001\u30ce\u30fc\u30c9\u306b\u5f71\u97ff\u3059\u308b sysctl \u306f safe \u3068 unsafe \u306b\u533a\u5206\u3055\u308c\u3001\u6271\u3044\u306b\u5236\u7d04\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u57fa\u76e4\u306b\u8fd1\u3044\u5909\u66f4\u304c\u6a2a\u65ad\u7684\u306a\u5f71\u97ff\u3092\u6301\u3064\u304b\u3089\u3067\u3059\u3002Linux \u5358\u4f53\u306e\u30b5\u30fc\u30d0\u3067\u3082\u3001\u8003\u3048\u65b9\u306f\u540c\u3058\u3067\u3059\u3002\u57fa\u76e4\u306b\u8fd1\u3044\u5024\u306f\u3001\u5909\u3048\u3089\u308c\u308b\u304b\u3089\u5909\u3048\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u5909\u3048\u305f\u3042\u3068\u306b\u8ab0\u3078\u3069\u3046\u5f71\u97ff\u3059\u308b\u304b\u307e\u3067\u8aad\u3093\u3067\u6271\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 ([kubernetes.io](https:\/\/kubernetes.io\/docs\/tasks\/administer-cluster\/sysctl-cluster\/?utm_source=chatgpt.com))<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4f9d\u983c\u5224\u65ad\u306e\u89b3\u70b9\u3067\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u6761\u4ef6\u306b 1 \u3064\u3067\u3082\u5f53\u3066\u306f\u307e\u308b\u5834\u5408\u3001\u81ea\u529b\u3067\u306e\u5927\u304d\u306a\u5909\u66f4\u3088\u308a\u5148\u306b\u76f8\u8ac7\u3092\u691c\u8a0e\u3057\u305f\u307b\u3046\u304c\u5b89\u5168\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u5171\u6709\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u672c\u756a\u30c7\u30fc\u30bf\u3001\u76e3\u67fb\u8981\u4ef6\u304c\u7d61\u307f\u3001\u5e83\u3044\u8a2d\u5b9a\u5909\u66f4\u306b\u8aac\u660e\u8cac\u4efb\u304c\u4f34\u3046<\/li>\n<li>\u30b3\u30f3\u30c6\u30ca\u3084\u5171\u6709\u30ce\u30fc\u30c9\u4e0a\u3067\u8907\u6570\u30b5\u30fc\u30d3\u30b9\u304c\u540c\u5c45\u3057\u3066\u304a\u308a\u3001\u5897\u52a0\u6e90\u306e\u8cac\u4efb\u5206\u754c\u304c\u66d6\u6627<\/li>\n<li>ENFILE \u3068 EMFILE \u304c\u6df7\u5728\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u3001\u500b\u5225\u4e0a\u9650\u3068\u5168\u4f53\u4e0a\u9650\u304c\u5207\u308a\u5206\u3051\u304d\u308c\u3066\u3044\u306a\u3044<\/li>\n<li>\u66ab\u5b9a\u5bfe\u5fdc\u3067\u4e00\u6642\u7684\u306b\u9759\u304b\u306b\u306a\u3063\u305f\u304c\u3001\u518d\u767a\u3057\u306a\u3044\u6839\u62e0\u304c\u6301\u3066\u3066\u3044\u306a\u3044<\/li>\n<li>\u5909\u66f4\u7533\u8acb\u3001\u76e3\u67fb\u3001\u30d9\u30f3\u30c0\u30fc\u8abf\u6574\u3001\u793e\u5185\u8aac\u660e\u307e\u3067\u542b\u3081\u305f\u6574\u7406\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u3044\u308b<\/li>\n<\/ul>\n<p>\u3053\u3053\u3067\u91cd\u8981\u306a\u306e\u306f\u3001\u300c\u81ea\u793e\u3067\u5bfe\u5fdc\u3067\u304d\u306a\u3044\u304b\u3089\u76f8\u8ac7\u3059\u308b\u300d\u3068\u3044\u3046\u3053\u3068\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3080\u3057\u308d\u3001\u300c\u81ea\u793e\u3067\u5bfe\u5fdc\u3059\u308b\u7bc4\u56f2\u300d\u3068\u300c\u500b\u5225\u8a3a\u65ad\u304c\u5fc5\u8981\u306a\u7bc4\u56f2\u300d\u3092\u5206\u3051\u308b\u305f\u3081\u306b\u76f8\u8ac7\u3059\u308b\u3001\u3068\u3044\u3046\u8003\u3048\u65b9\u306e\u307b\u3046\u304c\u5b9f\u52d9\u7684\u3067\u3059\u3002\u4e00\u822c\u8ad6\u3068\u3057\u3066\u6b63\u3057\u3044\u5bfe\u51e6\u304c\u3001\u500b\u5225\u6848\u4ef6\u3067\u306f\u9069\u7528\u6761\u4ef6\u3092\u6e80\u305f\u3055\u306a\u3044\u3053\u3068\u304c\u3042\u308b\u304b\u3089\u3067\u3059\u3002\u7279\u306b BtoB \u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u5951\u7d04\u6761\u4ef6\u3001\u904b\u7528\u59d4\u8a17\u7bc4\u56f2\u3001\u5909\u66f4\u6a29\u9650\u3001\u76e3\u67fb\u30eb\u30fc\u30eb\u3001\u591c\u9593\u505c\u6b62\u53ef\u5426\u306a\u3069\u3001\u6280\u8853\u4ee5\u5916\u306e\u6761\u4ef6\u304c\u5bfe\u7b56\u306e\u53ef\u5426\u3092\u5de6\u53f3\u3057\u307e\u3059\u3002<\/p>\n<hr>\n<h3>\u300c\u4e00\u822c\u8ad6\u306e\u9650\u754c\u300d\u304c\u51fa\u308b\u306e\u306f\u3001\u69cb\u6210\u3088\u308a\u3082\u6761\u4ef6\u306e\u307b\u3046<\/h3>\n<p>ENFILE \u306e\u6280\u8853\u89e3\u8aac\u3060\u3051\u3092\u898b\u3066\u3044\u308b\u3068\u3001\u8abf\u67fb\u624b\u9806\u3084\u8a2d\u5b9a\u9805\u76ee\u3055\u3048\u62bc\u3055\u3048\u308c\u3070\u9032\u3081\u3089\u308c\u308b\u3088\u3046\u306b\u611f\u3058\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u73fe\u5b9f\u306e\u6848\u4ef6\u3067\u306f\u3001\u3080\u3057\u308d\u96e3\u3057\u3044\u306e\u306f\u69cb\u6210\u56f3\u306b\u66f8\u304b\u308c\u3066\u3044\u306a\u3044\u6761\u4ef6\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u591c\u9593\u306b\u3057\u304b\u89e6\u308c\u306a\u3044\u3001\u5171\u6709\u30ce\u30fc\u30c9\u306a\u306e\u3067\u4ed6\u90e8\u7f72\u5408\u610f\u304c\u8981\u308b\u3001\u76e3\u67fb\u4e0a\u306f\u5909\u66f4\u7406\u7531\u306e\u6587\u66f8\u5316\u304c\u5fc5\u8981\u3001\u30d9\u30f3\u30c0\u30fc\u4fdd\u5b88\u7bc4\u56f2\u5916\u3092\u89e6\u308c\u306a\u3044\u3001\u672c\u756a\u30c7\u30fc\u30bf\u306e\u53d6\u308a\u6271\u3044\u306b\u5236\u9650\u304c\u3042\u308b\u3001\u3068\u3044\u3063\u305f\u4e8b\u60c5\u3067\u3059\u3002\u3053\u306e\u6761\u4ef6\u7fa4\u306f\u3001\u4e00\u822c\u7684\u306a\u6280\u8853\u8a18\u4e8b\u3067\u306f\u57cb\u307e\u308a\u307e\u305b\u3093\u3002\u3060\u304b\u3089\u3053\u305d\u3001\u4e00\u822c\u8ad6\u3060\u3051\u3067\u62bc\u3057\u5207\u308d\u3046\u3068\u3059\u308b\u3068\u3001\u73fe\u5834\u306f\u4f5c\u696d\u3082\u8aac\u660e\u3082\u5897\u3048\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3067\u3001\u3053\u3046\u3057\u305f\u6761\u4ef6\u3092\u6700\u521d\u304b\u3089\u524d\u63d0\u306b\u7f6e\u3044\u3066\u6574\u7406\u3059\u308b\u3068\u3001\u5bfe\u5fdc\u306e\u8cea\u306f\u5927\u304d\u304f\u5909\u308f\u308a\u307e\u3059\u3002\u3069\u306e\u5024\u304c\u5371\u967a\u306a\u306e\u304b\u3067\u306f\u306a\u304f\u3001\u3069\u306e\u5909\u66f4\u306a\u3089\u8aac\u660e\u3067\u304d\u308b\u306e\u304b\u3002\u3069\u306e\u8a2d\u5b9a\u304c\u89e6\u308c\u308b\u304b\u3067\u306f\u306a\u304f\u3001\u3069\u306e\u7bc4\u56f2\u307e\u3067\u306a\u3089\u76e3\u67fb\u3084\u5951\u7d04\u6761\u4ef6\u306b\u6cbf\u3046\u306e\u304b\u3002\u3069\u306e\u4fee\u6b63\u304c\u7406\u60f3\u304b\u3067\u306f\u306a\u304f\u3001\u4eca\u306e\u672c\u756a\u306b\u5bfe\u3057\u3066\u6700\u5c0f\u5909\u66f4\u3067\u3069\u3053\u307e\u3067\u9759\u304b\u306b\u3067\u304d\u308b\u306e\u304b\u3002\u3053\u306e\u8996\u70b9\u3092\u6301\u3064\u3068\u3001\u969c\u5bb3\u5bfe\u5fdc\u304c\u300c\u8a2d\u5b9a\u4f5c\u696d\u306e\u5217\u6319\u300d\u3067\u306f\u306a\u304f\u3001\u300c\u6848\u4ef6\u6761\u4ef6\u306b\u6cbf\u3063\u305f\u610f\u601d\u6c7a\u5b9a\u300d\u306b\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; text-align:left;\">\u4e00\u822c\u8ad6\u3067\u5206\u304b\u308b\u3053\u3068<\/th>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u500b\u5225\u6848\u4ef6\u3067\u8ffd\u52a0\u78ba\u8a8d\u304c\u8981\u308b\u3053\u3068<\/th>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">ENFILE \u3068 EMFILE \u306e\u9055\u3044<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u305d\u306e\u74b0\u5883\u3067\u4e21\u8005\u304c\u6df7\u5728\u3057\u3066\u3044\u308b\u304b\u3001\u3069\u3061\u3089\u304c\u5148\u306b\u52b9\u3044\u3066\u3044\u308b\u304b<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">file-max \u3068 RLIMIT_NOFILE \u306e\u5f79\u5272<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u5909\u66f4\u6a29\u9650\u3001\u627f\u8a8d\u7d4c\u8def\u3001\u5f71\u97ff\u5148\u3001\u53e4\u3044\u5b9f\u88c5\u3068\u306e\u6574\u5408\u6027<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u76e3\u8996\u3084\u53ef\u8996\u5316\u306e\u8003\u3048\u65b9<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u65e2\u5b58\u76e3\u8996\u57fa\u76e4\u3068\u306e\u6574\u5408\u3001\u904b\u7528\u59d4\u8a17\u7bc4\u56f2\u3001\u901a\u5831\u8a2d\u8a08\u3001\u5f53\u756a\u4f53\u5236<\/td>\n<\/tr>\n<tr>\n<th style=\"background:#eeeeee; border:1px solid #cccccc; padding:8px; text-align:left;\">\u6052\u4e45\u5bfe\u7b56\u306e\u65b9\u5411\u6027<\/th>\n<td style=\"border:1px solid #cccccc; padding:8px;\">\u505c\u6b62\u53ef\u5426\u3001\u6539\u4fee\u30b3\u30b9\u30c8\u3001\u5951\u7d04\u6761\u4ef6\u3001\u76e3\u67fb\u8a3c\u8de1\u3001\u8cac\u4efb\u5206\u754c<\/td>\n<\/tr>\n<\/table>\n<hr>\n<h3>\u4f9d\u983c\u5224\u65ad\u30da\u30fc\u30b8\u3068\u3057\u3066\u306e\u7d50\u8ad6<\/h3>\n<p>\u3053\u3053\u307e\u3067\u898b\u3066\u304d\u305f\u3088\u3046\u306b\u3001ENFILE \u306f Linux \u306e system-wide \u306a\u8cc7\u6e90\u5236\u7d04\u306b\u95a2\u308f\u308b\u305f\u3081\u3001\u5358\u767a\u306e\u8a2d\u5b9a\u5909\u66f4\u3067\u7247\u3065\u304f\u6848\u4ef6\u3082\u3042\u308c\u3070\u3001\u305d\u3046\u3067\u306f\u306a\u3044\u6848\u4ef6\u3082\u3042\u308a\u307e\u3059\u3002\u4fee\u7406\u624b\u9806\u3092\u671f\u5f85\u3057\u3066\u60c5\u5831\u3092\u63a2\u3057\u3066\u3044\u308b\u65b9\u306b\u3068\u3063\u3066\u5927\u5207\u306a\u306e\u306f\u3001\u300c\u4f55\u3067\u3082\u81ea\u5206\u3067\u89e6\u308b\u3053\u3068\u300d\u3067\u306f\u306a\u304f\u3001\u300c\u3069\u3053\u307e\u3067\u81ea\u5206\u3067\u5224\u65ad\u3057\u3066\u3088\u3044\u304b\u300d\u3092\u898b\u6975\u3081\u308b\u3053\u3068\u3067\u3059\u3002\u5b89\u5168\u306a\u521d\u52d5\u306f\u3001\u89b3\u6e2c\u70b9\u3092\u305d\u308d\u3048\u3001\u5f71\u97ff\u7bc4\u56f2\u3092\u72ed\u304f\u6349\u3048\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u6700\u5c0f\u5909\u66f4\u3067\u5834\u3092\u6574\u3048\u308b\u3053\u3068\u3067\u3059\u3002\u305d\u306e\u4e00\u65b9\u3067\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\u8907\u6570\u30d9\u30f3\u30c0\u30fc\u8abf\u6574\u304c\u7d61\u3080\u306a\u3089\u3001\u305d\u3053\u304b\u3089\u5148\u306f\u4e00\u822c\u8ad6\u306e\u9650\u754c\u304c\u51fa\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u3088\u3046\u306a\u3068\u304d\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\u5358\u306b\u8a2d\u5b9a\u5024\u306e\u5019\u88dc\u3092\u51fa\u3059\u3060\u3051\u3067\u306a\u304f\u3001\u6848\u4ef6\u6761\u4ef6\u3001\u30b7\u30b9\u30c6\u30e0\u69cb\u6210\u3001\u8cac\u4efb\u5206\u754c\u3001\u5909\u66f4\u7533\u8acb\u3001\u76e3\u67fb\u5bfe\u5fdc\u307e\u3067\u542b\u3081\u3066\u6574\u7406\u3057\u3001\u6700\u5c0f\u5909\u66f4\u3067\u306e\u53ce\u675f\u7b56\u3068\u3001\u305d\u306e\u5f8c\u306e\u6052\u4e45\u5bfe\u7b56\u3092\u73fe\u5834\u76ee\u7dda\u3067\u7d44\u307f\u7acb\u3066\u3089\u308c\u308b\u304b\u3069\u3046\u304b\u304c\u3001BtoB \u306e\u904b\u7528\u3067\u306f\u5927\u304d\u306a\u5dee\u306b\u306a\u308a\u307e\u3059\u3002\u81ea\u793e\u3060\u3051\u3067\u62b1\u3048\u8fbc\u3080\u3088\u308a\u3001\u3069\u306e\u7bc4\u56f2\u3092\u81ea\u529b\u3067\u9032\u3081\u3001\u3069\u306e\u7bc4\u56f2\u3092\u5c02\u9580\u5bb6\u3068\u4e00\u7dd2\u306b\u9032\u3081\u308b\u304b\u3092\u5207\u308a\u5206\u3051\u305f\u307b\u3046\u304c\u3001\u7d50\u679c\u3068\u3057\u3066\u5224\u65ad\u3082\u5b9f\u884c\u3082\u8efd\u304f\u306a\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306a\u6848\u4ef6\u3001\u5951\u7d04\u6761\u4ef6\u3001\u5171\u6709\u57fa\u76e4\u306e\u524d\u63d0\u3001\u76e3\u67fb\u8981\u4ef6\u3001\u672c\u756a\u30c7\u30fc\u30bf\u306e\u6271\u3044\u306b\u8ff7\u3044\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u4e00\u822c\u8ad6\u306e\u5ef6\u9577\u3067\u7121\u7406\u306b\u9032\u3081\u305a\u3001<strong>\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240<\/strong>\u3078\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u306f <a href=\"https:\/\/jouhou.main.jp\/?page_id=26983\">https:\/\/jouhou.main.jp\/?page_id=26983<\/a>\u3001\u304a\u96fb\u8a71\u306f <a href=\"tel:0120838831\">0120-838-831<\/a> \u3067\u3059\u3002ENFILE \u306e\u3088\u3046\u306b\u4e00\u898b\u3059\u308b\u3068\u8a2d\u5b9a\u4e0d\u8db3\u306b\u898b\u3048\u308b\u554f\u984c\u307b\u3069\u3001\u5b9f\u969b\u306b\u306f\u8a2d\u8a08\u3001\u904b\u7528\u3001\u8aac\u660e\u8cac\u4efb\u304c\u91cd\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3060\u304b\u3089\u3053\u305d\u3001\u6848\u4ef6\u3054\u3068\u306e\u6761\u4ef6\u306b\u5408\u308f\u305b\u3066\u3001\u6700\u5c0f\u5909\u66f4\u3067\u9759\u304b\u306b\u53ce\u675f\u3078\u5411\u304b\u3046\u9053\u7b4b\u3092\u5f15\u3051\u308b\u304b\u3069\u3046\u304b\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>\u969c\u5bb3\u3092\u305d\u306e\u5834\u3060\u3051\u9759\u304b\u306b\u3059\u308b\u3053\u3068\u3068\u3001\u73fe\u5834\u304c\u6b21\u306b\u540c\u3058\u82e6\u52b4\u3092\u3057\u306a\u3044\u3053\u3068\u306f\u3001\u4f3c\u3066\u3044\u308b\u3088\u3046\u3067\u5225\u306e\u8ab2\u984c\u3067\u3059\u3002\u30db\u30b9\u30c8\u5168\u4f53\u306e\u4f59\u767d\u3001\u500b\u5225\u30b5\u30fc\u30d3\u30b9\u306e\u4e0a\u9650\u3001\u76e3\u8996\u3001\u30b8\u30e7\u30d6\u8a2d\u8a08\u3001\u914d\u7f6e\u3001\u8aac\u660e\u6750\u6599\u307e\u3067\u542b\u3081\u3066\u6574\u7406\u3067\u304d\u305f\u3068\u304d\u3001ENFILE \u5bfe\u5fdc\u306f\u521d\u3081\u3066\u300c\u7247\u3065\u3044\u305f\u300d\u3068\u8a00\u3048\u307e\u3059\u3002\u6280\u8853\u3060\u3051\u3067\u306a\u304f\u6848\u4ef6\u6761\u4ef6\u307e\u3067\u542b\u3081\u3066\u5224\u65ad\u304c\u5fc5\u8981\u306a\u5834\u9762\u3067\u306f\u3001<strong>\u682a\u5f0f\u4f1a\u793e\u60c5\u5831\u5de5\u5b66\u7814\u7a76\u6240<\/strong>\u306e\u3088\u3046\u306a\u5c02\u9580\u5bb6\u3068\u4e00\u7dd2\u306b\u3001\u88ab\u5bb3\u6700\u5c0f\u5316\u3068\u518d\u767a\u9632\u6b62\u306e\u4e21\u7acb\u3092\u56f3\u308b\u3053\u3068\u304c\u3001\u3082\u3063\u3068\u3082\u73fe\u5b9f\u7684\u3067\u5b89\u5168\u306a\u9032\u3081\u65b9\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\u3067\u306f\u3001\u591a\u304f\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b5\u30fc\u30d3\u30b9\u304c\u540c\u6642\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u7d9a\u3051\u308b\u305f\u3081\u3001\u30aa\u30fc\u30d7\u30f3\u30d5\u30a1\u30a4\u30eb\u6570\u306e\u4e0a\u9650\u306b\u9054\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u6b63\u5e38\u306a\u52d5\u4f5c\u306b\u652f\u969c\u3092\u304d\u305f\u3059\u3060\u3051\u3067\u306a\u304f\u3001\u91cd\u8981\u306a\u51e6\u7406\u306e\u505c\u6b62\u3084\u30c7\u30fc\u30bf\u306e\u30a2\u30af\u30bb\u30b9\u969c\u5bb3\u3092\u5f15\u304d\u8d77\u3053\u3059\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u3001\u4f01\u696d\u306eIT\u30a4\u30f3\u30d5\u30e9\u306b\u304a\u3044\u3066\u306f\u3001\u3053\u3046\u3057\u305f\u30a8\u30e9\u30fc\u304c\u30d3\u30b8\u30cd\u30b9\u306e\u7d99\u7d9a\u6027\u306b\u76f4\u7d50\u3059\u308b\u305f\u3081\u3001\u9069\u5207\u306a\u7ba1\u7406\u3068\u5bfe\u7b56\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u672c\u7a3f\u3067\u306f\u3001Linux\u306b\u304a\u3051\u308b\u300cENFILE\uff0823\uff09\u300d\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3068\u5b9a\u7fa9\u3001\u305d\u3057\u3066\u5177\u4f53\u7684\u306a\u5bfe\u5fdc\u7b56\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u3084IT\u62c5\u5f53\u8005\u306e\u65b9\u3005\u304c\u3001\u73fe\u72b6\u306e\u30b7\u30b9\u30c6\u30e0\u72b6\u6cc1\u3092\u6b63\u3057\u304f\u628a\u63e1\u3057\u3001\u9069\u5207\u306a\u7ba1\u7406\u3092\u884c\u3046\u305f\u3081\u306e\u77e5\u8b58\u3092\u8eab\u306b\u3064\u3051\u3001\u5b89\u5fc3\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u904b\u7528\u3092\u7d9a\u3051\u3089\u308c\u308b\u3088\u3046\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>Linux\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3044\u3066\u3001\u300cENFILE\uff0823\uff09\u300d\u30a8\u30e9\u30fc\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u30aa\u30fc\u30d7\u30f3\u30d5\u30a1\u30a4\u30eb\u6570\u306e\u4e0a\u9650\u306b\u9054\u3057\u305f\u5834\u5408\u306b\u767a\u751f\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u304c\u7ba1\u7406\u3057\u3066\u3044\u308b\u3059\u3079\u3066\u306e\u30d7\u30ed\u30bb\u30b9\u3084\u30b5\u30fc\u30d3\u30b9\u304c\u958b\u3044\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u5408\u8a08\u6570\u304c\u3001\u8a2d\u5b9a\u3055\u308c\u305f\u6700\u5927\u5024\u3092\u8d85\u3048\u305f\u3068\u304d\u306b\u8d77\u3053\u308a\u307e\u3059\u3002\u30aa\u30fc\u30d7\u30f3\u30d5\u30a1\u30a4\u30eb\u3068\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u3067\u306a\u304f\u30bd\u30b1\u30c3\u30c8\u3084\u30d1\u30a4\u30d7\u306a\u3069\u3082\u542b\u307e\u308c\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30ea\u30bd\u30fc\u30b9\u3068\u3057\u3066\u975e\u5e38\u306b\u91cd\u8981\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002    \u3053\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3068\u3001\u65b0\u305f\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3053\u3068\u304c\u3067\u304d\u306a\u304f\u306a\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b5\u30fc\u30d3\u30b9\u306e\u52d5\u4f5c\u306b\u652f\u969c\u3092\u304d\u305f\u3059\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3084\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u304c\u65b0\u898f\u306e\u63a5\u7d9a\u3084\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u3092\u8a66\u307f\u305f\u969b\u306b\u5931\u6557\u3057\u3001\u7d50\u679c\u3068\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u4f4e\u4e0b\u3084\u30c0\u30a6\u30f3\u30bf\u30a4\u30e0\u306b\u3064\u306a\u304c\u308b\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002    \u539f\u56e0\u306e\u4e00\u3064\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u8a2d\u5b9a\u5024\u304c\u4f4e\u3059\u304e\u308b\u5834\u5408\u3067\u3059\u3002\u3082\u3046\u4e00\u3064\u306f\u3001\u7279\u5b9a\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b5\u30fc\u30d3\u30b9\u304c\u9069\u5207\u306b\u30ea\u30bd\u30fc\u30b9\u3092\u89e3\u653e\u305b\u305a\u3001\u4e0d\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u3092\u9577\u6642\u9593\u4fdd\u6301\u3057\u7d9a\u3051\u308b\u30b1\u30fc\u30b9\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5168\u4f53\u306e\u30d5\u30a1\u30a4\u30eb\u6570\u304c\u5897\u52a0\u3057\u3001\u4e0a\u9650\u306b\u8fd1\u3065\u3044\u3066\u3057\u307e\u3044\u307e\u3059\u3002    \u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u306f\u3001\u3053\u3046\u3057\u305f\u72b6\u6cc1\u3092\u4e8b\u524d\u306b\u5bdf\u77e5\u3057\u3001\u9069\u5207\u306a\u8a2d\u5b9a\u5909\u66f4\u3084\u30ea\u30bd\u30fc\u30b9\u7ba1\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u6b21\u306e\u7ae0\u3067\u306f\u3001\u5177\u4f53\u7684\u306a\u30a8\u30e9\u30fc\u306e\u4e8b\u4f8b\u3084\u5b9f\u969b\u306b\u53d6\u308b\u3079\u304d\u5bfe\u5fdc\u7b56\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30a8\u30e9\u30fc\u306e\u767a\u751f\u3092\u672a\u7136\u306b\u9632\u304e\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u904b\u7528\u3092\u7dad\u6301\u3059\u308b\u305f\u3081\u306e\u77e5\u8b58\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\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\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u30aa\u30fc\u30d7\u30f3\u30d5\u30a1\u30a4\u30eb\u6570\u304c\u4e0a\u9650\u306b\u9054\u3059\u308b\u539f\u56e0\u306f\u591a\u5c90\u306b\u308f\u305f\u308a\u307e\u3059\u304c\u3001\u5177\u4f53\u7684\u306a\u4e8b\u4f8b\u3092\u901a\u3058\u3066\u7406\u89e3\u3092\u6df1\u3081\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u9577\u6642\u9593\u7a3c\u50cd\u3057\u3066\u3044\u308b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3084\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u3001\u63a5\u7d9a\u306e\u305f\u3073\u306b\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u304c\u6d88\u8cbb\u3055\u308c\u3001\u305d\u308c\u3089\u304c\u9069\u5207\u306b\u89e3\u653e\u3055\u308c\u306a\u3044\u5834\u5408\u3001\u6b21\u7b2c\u306b\u30ea\u30bd\u30fc\u30b9\u304c\u903c\u8feb\u3057\u307e\u3059\u3002\u7279\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u8a08\u3084\u904b\u7528\u306e\u4e2d\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u3084\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bd\u30b1\u30c3\u30c8\u306e\u30af\u30ed\u30fc\u30ba\u51e6\u7406\u304c\u4e0d\u5341\u5206\u306a\u30b1\u30fc\u30b9\u3067\u306f\u3001\u4e0d\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u304c\u84c4\u7a4d\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002  \u307e\u305f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u8a2d\u5b9a\u5024\u304c\u4f4e\u3044\u5834\u5408\u3082\u539f\u56e0\u306e\u4e00\u3064\u3067\u3059\u3002Linux\u3067\u306f\u3001\u300culimit\u300d\u30b3\u30de\u30f3\u30c9\u3084\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u901a\u3058\u3066\u3001\u30e6\u30fc\u30b6\u3084\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u6700\u5927\u30aa\u30fc\u30d7\u30f3\u30d5\u30a1\u30a4\u30eb\u6570\u3092\u5236\u5fa1\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u5024\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u307e\u307e\u3067\u3042\u3063\u305f\u308a\u3001\u696d\u52d9\u306e\u62e1\u5927\u306b\u4f34\u3046\u8ca0\u8377\u5897\u52a0\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u3088\u3046\u306b\u8abf\u6574\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u3059\u3050\u306b\u4e0a\u9650\u306b\u9054\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u7279\u306b\u3001\u5927\u898f\u6a21\u306a\u30b7\u30b9\u30c6\u30e0\u3084\u9ad8\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u74b0\u5883\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u8a2d\u5b9a\u5024\u306e\u898b\u76f4\u3057\u304c\u5fc5\u8981\u4e0d\u53ef\u6b20\u3067\u3059\u3002  \u3055\u3089\u306b\u3001\u7279\u5b9a\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b5\u30fc\u30d3\u30b9\u304c\u30ea\u30bd\u30fc\u30b9\u3092\u9069\u5207\u306b\u89e3\u653e\u3057\u306a\u3044\u30d0\u30b0\u3084\u8a2d\u8a08\u4e0a\u306e\u554f\u984c\u3082\u3001\u539f\u56e0\u306e\u4e00\u3064\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001\u9577\u6642\u9593\u7a3c\u50cd\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u304c\u30d5\u30a1\u30a4\u30eb\u3084\u30bd\u30b1\u30c3\u30c8\u3092\u958b\u304d\u7d9a\u3051\u308b\u307e\u307e\u7d42\u4e86\u3057\u306a\u3044\u30b1\u30fc\u30b9\u3067\u306f\u3001\u4e0d\u8981\u306a\u30ea\u30bd\u30fc\u30b9\u304c\u84c4\u7a4d\u3057\u3001\u5168\u4f53\u306e\u30d5\u30a1\u30a4\u30eb\u6570\u304c\u5897\u52a0\u3057\u307e\u3059\u3002\u3053\u3046\u3057\u305f\u554f\u984c\u306f\u3001\u5b9a\u671f\u7684\u306a\u30b7\u30b9\u30c6\u30e0\u76e3\u67fb\u3084\u30ed\u30b0\u306e\u5206\u6790\u306b\u3088\u308a\u65e9\u671f\u767a\u898b\u304c\u53ef\u80fd\u3067\u3059\u3002  \u3053\u308c\u3089\u306e\u539f\u56e0\u3092\u7406\u89e3\u3057\u3001\u9069\u5207\u306a\u5bfe\u7b56\u3092\u8b1b\u3058\u308b\u3053\u3068\u304c\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u904b\u7528\u306b\u306f\u6b20\u304b\u305b\u307e\u305b\u3093\u3002\u6b21\u7ae0\u3067\u306f\u3001\u5177\u4f53\u7684\u306a\u4e8b\u4f8b\u3084\u305d\u306e\u89e3\u6c7a\u7b56\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3001\u5b9f\u52d9\u306b\u5f79\u7acb\u3064\u77e5\u8b58\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306e\u30ea\u30bd\u30fc\u30b9\u7ba1\u7406\u3092\u5f37\u5316\u3057\u3001\u30a8\u30e9\u30fc\u767a\u751f\u306e\u30ea\u30b9\u30af\u3092\u4f4e\u6e1b\u3055\u305b\u308b\u305f\u3081\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u62bc\u3055\u3048\u307e\u3057\u3087\u3046\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\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u30aa\u30fc\u30d7\u30f3\u30d5\u30a1\u30a4\u30eb\u6570\u306e\u4e0a\u9650\u306b\u9054\u3059\u308b\u539f\u56e0\u306f\u591a\u5c90\u306b\u308f\u305f\u308a\u307e\u3059\u304c\u3001\u5b9f\u969b\u306e\u4e8b\u4f8b\u3092\u901a\u3058\u3066\u7406\u89e3\u3092\u6df1\u3081\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u9577\u6642\u9593\u7a3c\u50cd\u3057\u3066\u3044\u308b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3084\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306e\u63a5\u7d9a\u3084\u30ea\u30af\u30a8\u30b9\u30c8\u3054\u3068\u306b\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u3092\u6d88\u8cbb\u3057\u307e\u3059\u304c\u3001\u3053\u308c\u3089\u304c\u9069\u5207\u306b\u89e3\u653e\u3055\u308c\u306a\u3044\u5834\u5408\u3001\u6b21\u7b2c\u306b\u30ea\u30bd\u30fc\u30b9\u304c\u903c\u8feb\u3057\u307e\u3059\u3002\u7279\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u8a08\u3084\u904b\u7528\u306e\u4e2d\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u3084\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bd\u30b1\u30c3\u30c8\u306e\u30af\u30ed\u30fc\u30ba\u51e6\u7406\u304c\u4e0d\u5341\u5206\u306a\u30b1\u30fc\u30b9\u3067\u306f\u3001\u4e0d\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u304c\u84c4\u7a4d\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002  \u307e\u305f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u8a2d\u5b9a\u5024\u304c\u4f4e\u3044\u3053\u3068\u3082\u539f\u56e0\u306e\u4e00\u3064\u3067\u3059\u3002Linux\u3067\u306f\u3001\u300culimit\u300d\u30b3\u30de\u30f3\u30c9\u3084\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u901a\u3058\u3066\u3001\u30e6\u30fc\u30b6\u3084\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u6700\u5927\u30aa\u30fc\u30d7\u30f3\u30d5\u30a1\u30a4\u30eb\u6570\u3092\u5236\u5fa1\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u5024\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u307e\u307e\u3067\u3042\u3063\u305f\u308a\u3001\u696d\u52d9\u306e\u62e1\u5927\u306b\u4f34\u3046\u8ca0\u8377\u5897\u52a0\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u3088\u3046\u306b\u8abf\u6574\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u3059\u3050\u306b\u4e0a\u9650\u306b\u9054\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u7279\u306b\u3001\u5927\u898f\u6a21\u306a\u30b7\u30b9\u30c6\u30e0\u3084\u9ad8\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u74b0\u5883\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u8a2d\u5b9a\u5024\u306e\u898b\u76f4\u3057\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002  \u3055\u3089\u306b\u3001\u7279\u5b9a\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b5\u30fc\u30d3\u30b9\u306b\u30d0\u30b0\u3084\u8a2d\u8a08\u4e0a\u306e\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u3082\u539f\u56e0\u3068\u306a\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u9577\u6642\u9593\u7a3c\u50cd\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u304c\u30d5\u30a1\u30a4\u30eb\u3084\u30bd\u30b1\u30c3\u30c8\u3092\u958b\u3044\u305f\u307e\u307e\u7d42\u4e86\u3057\u306a\u3044\u30b1\u30fc\u30b9\u3067\u306f\u3001\u4e0d\u8981\u306a\u30ea\u30bd\u30fc\u30b9\u304c\u84c4\u7a4d\u3055\u308c\u3001\u5168\u4f53\u306e\u30d5\u30a1\u30a4\u30eb\u6570\u304c\u5897\u52a0\u3057\u307e\u3059\u3002\u3053\u3046\u3057\u305f\u554f\u984c\u306f\u3001\u5b9a\u671f\u7684\u306a\u76e3\u67fb\u3084\u30ed\u30b0\u306e\u5206\u6790\u306b\u3088\u3063\u3066\u65e9\u671f\u306b\u767a\u898b\u3057\u3001\u5bfe\u51e6\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002  \u3053\u308c\u3089\u306e\u539f\u56e0\u3092\u6b63\u3057\u304f\u7406\u89e3\u3057\u3001\u9069\u5207\u306a\u5bfe\u7b56\u3092\u8b1b\u3058\u308b\u3053\u3068\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30ea\u30bd\u30fc\u30b9\u4e0d\u8db3\u306b\u3088\u308b\u30a8\u30e9\u30fc\u306e\u767a\u751f\u3092\u6291\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b21\u7ae0\u3067\u306f\u3001\u5177\u4f53\u7684\u306a\u5bfe\u5fdc\u7b56\u3084\u8a2d\u5b9a\u5909\u66f4\u306e\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3001\u5b9f\u52d9\u306b\u5f79\u7acb\u3064\u77e5\u8b58\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306e\u5065\u5168\u306a\u904b\u7528\u3092\u7dad\u6301\u3059\u308b\u305f\u3081\u306b\u3001\u3053\u308c\u3089\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u62bc\u3055\u3048\u3066\u304a\u304f\u3053\u3068\u304c\u91cd\u8981\u3067\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\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30b7\u30b9\u30c6\u30e0\u306e\u30aa\u30fc\u30d7\u30f3\u30d5\u30a1\u30a4\u30eb\u6570\u306e\u4e0a\u9650\u306b\u9054\u3057\u305f\u5834\u5408\u306e\u5bfe\u7b56\u306f\u3001\u591a\u5c90\u306b\u308f\u305f\u308a\u307e\u3059\u304c\u3001\u57fa\u672c\u7684\u306b\u306f\u8a2d\u5b9a\u306e\u898b\u76f4\u3057\u3068\u30ea\u30bd\u30fc\u30b9\u7ba1\u7406\u306e\u6700\u9069\u5316\u304c\u91cd\u8981\u3067\u3059\u3002\u307e\u305a\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u4e0a\u9650\u5024\u3092\u5f15\u304d\u4e0a\u3052\u308b\u306b\u306f\u3001\u300c\/etc\/sysctl.conf\u300d\u3084\u300c\/etc\/security\/limits.conf\u300d\u306a\u3069\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u6700\u5927\u30d5\u30a1\u30a4\u30eb\u6570\u3092\u5897\u3084\u3059\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8a2d\u5b9a\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u518d\u8d77\u52d5\u3084\u30b5\u30fc\u30d3\u30b9\u306e\u518d\u8d77\u52d5\u3092\u884c\u3044\u307e\u3059\u3002    \u5177\u4f53\u7684\u306b\u306f\u3001\u300cfs.file-max\u300d\u3068\u3044\u3046\u30ab\u30fc\u30cd\u30eb\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8abf\u6574\u3059\u308b\u3053\u3068\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u306e\u4e0a\u9650\u3092\u5897\u3084\u3059\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u3055\u3089\u306b\u3001\u5404\u30e6\u30fc\u30b6\u3084\u30d7\u30ed\u30bb\u30b9\u3054\u3068\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u300culimit\u300d\u5024\u3082\u78ba\u8a8d\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5f15\u304d\u4e0a\u3052\u308b\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b5\u30fc\u30d3\u30b9\u304c\u5fc5\u8981\u3068\u3059\u308b\u30ea\u30bd\u30fc\u30b9\u3092\u9069\u5207\u306b\u78ba\u4fdd\u3067\u304d\u3001\u30a8\u30e9\u30fc\u306e\u767a\u751f\u30ea\u30b9\u30af\u3092\u4f4e\u6e1b\u3067\u304d\u307e\u3059\u3002    \u307e\u305f\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u52b9\u7387\u7684\u306a\u7ba1\u7406\u3082\u91cd\u8981\u3067\u3059\u3002\u5b9a\u671f\u7684\u306a\u30b7\u30b9\u30c6\u30e0\u76e3\u67fb\u3084\u30ed\u30b0\u5206\u6790\u3092\u884c\u3044\u3001\u4e0d\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u306e\u4fdd\u6301\u3084\u3001\u9577\u6642\u9593\u7a3c\u50cd\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u306e\u9069\u5207\u306a\u7d42\u4e86\u51e6\u7406\u3092\u5fb9\u5e95\u3057\u307e\u3059\u3002\u7279\u306b\u3001\u9577\u6642\u9593\u7a3c\u50cd\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30ea\u30bd\u30fc\u30b9\u30ea\u30fc\u30af\u3092\u9632\u3050\u305f\u3081\u306b\u3001\u9069\u5207\u306a\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3084\u904b\u7528\u306e\u5de5\u592b\u304c\u5fc5\u8981\u3067\u3059\u3002    \u3055\u3089\u306b\u3001\u76e3\u8996\u30c4\u30fc\u30eb\u3092\u5c0e\u5165\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u306e\u4f7f\u7528\u72b6\u6cc1\u3084\u30b7\u30b9\u30c6\u30e0\u306e\u8ca0\u8377\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u628a\u63e1\u3059\u308b\u3053\u3068\u3082\u52b9\u679c\u7684\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u7570\u5e38\u306e\u5146\u5019\u3092\u65e9\u671f\u306b\u5bdf\u77e5\u3057\u3001\u8fc5\u901f\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u4f53\u5236\u3092\u6574\u3048\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u3046\u3057\u305f\u7d99\u7d9a\u7684\u306a\u7ba1\u7406\u3068\u8a2d\u5b9a\u306e\u898b\u76f4\u3057\u306b\u3088\u308a\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u6027\u3092\u7dad\u6301\u3057\u3001\u30a8\u30e9\u30fc\u306e\u672a\u7136\u9632\u6b62\u306b\u5f79\u7acb\u3066\u3066\u304f\u3060\u3055\u3044\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\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30b7\u30b9\u30c6\u30e0\u306e\u30aa\u30fc\u30d7\u30f3\u30d5\u30a1\u30a4\u30eb\u6570\u306e\u4e0a\u9650\u306b\u9054\u3057\u305f\u5834\u5408\u306e\u5bfe\u7b56\u306f\u3001\u591a\u5c90\u306b\u308f\u305f\u308a\u307e\u3059\u304c\u3001\u57fa\u672c\u7684\u306b\u306f\u8a2d\u5b9a\u306e\u898b\u76f4\u3057\u3068\u30ea\u30bd\u30fc\u30b9\u7ba1\u7406\u306e\u6700\u9069\u5316\u304c\u91cd\u8981\u3067\u3059\u3002\u307e\u305a\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u4e0a\u9650\u5024\u3092\u5f15\u304d\u4e0a\u3052\u308b\u306b\u306f\u3001\u300c\/etc\/sysctl.conf\u300d\u3084\u300c\/etc\/security\/limits.conf\u300d\u306a\u3069\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u6700\u5927\u30d5\u30a1\u30a4\u30eb\u6570\u3092\u5897\u3084\u3059\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8a2d\u5b9a\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u518d\u8d77\u52d5\u3084\u30b5\u30fc\u30d3\u30b9\u306e\u518d\u8d77\u52d5\u3092\u884c\u3044\u307e\u3059\u3002    \u5177\u4f53\u7684\u306b\u306f\u3001\u300cfs.file-max\u300d\u3068\u3044\u3046\u30ab\u30fc\u30cd\u30eb\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8abf\u6574\u3059\u308b\u3053\u3068\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u306e\u4e0a\u9650\u3092\u5897\u3084\u3059\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u3055\u3089\u306b\u3001\u5404\u30e6\u30fc\u30b6\u3084\u30d7\u30ed\u30bb\u30b9\u3054\u3068\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u300culimit\u300d\u5024\u3082\u78ba\u8a8d\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5f15\u304d\u4e0a\u3052\u308b\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b5\u30fc\u30d3\u30b9\u304c\u5fc5\u8981\u3068\u3059\u308b\u30ea\u30bd\u30fc\u30b9\u3092\u9069\u5207\u306b\u78ba\u4fdd\u3067\u304d\u3001\u30a8\u30e9\u30fc\u306e\u767a\u751f\u30ea\u30b9\u30af\u3092\u4f4e\u6e1b\u3067\u304d\u307e\u3059\u3002    \u307e\u305f\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u52b9\u7387\u7684\u306a\u7ba1\u7406\u3082\u91cd\u8981\u3067\u3059\u3002\u5b9a\u671f\u7684\u306a\u30b7\u30b9\u30c6\u30e0\u76e3\u67fb\u3084\u30ed\u30b0\u5206\u6790\u3092\u884c\u3044\u3001\u4e0d\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u306e\u4fdd\u6301\u3084\u3001\u9577\u6642\u9593\u7a3c\u50cd\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u306e\u9069\u5207\u306a\u7d42\u4e86\u51e6\u7406\u3092\u5fb9\u5e95\u3057\u307e\u3059\u3002\u7279\u306b\u3001\u9577\u6642\u9593\u7a3c\u50cd\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30ea\u30bd\u30fc\u30b9\u30ea\u30fc\u30af\u3092\u9632\u3050\u305f\u3081\u306b\u3001\u9069\u5207\u306a\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3084\u904b\u7528\u306e\u5de5\u592b\u304c\u5fc5\u8981\u3067\u3059\u3002    \u3055\u3089\u306b\u3001\u76e3\u8996\u30c4\u30fc\u30eb\u3092\u5c0e\u5165\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u306e\u4f7f\u7528\u72b6\u6cc1\u3084\u30b7\u30b9\u30c6\u30e0\u306e\u8ca0\u8377\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u628a\u63e1\u3059\u308b\u3053\u3068\u3082\u52b9\u679c\u7684\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u7570\u5e38\u306e\u5146\u5019\u3092\u65e9\u671f\u306b\u5bdf\u77e5\u3057\u3001\u8fc5\u901f\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u4f53\u5236\u3092\u6574\u3048\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u3046\u3057\u305f\u7d99\u7d9a\u7684\u306a\u7ba1\u7406\u3068\u8a2d\u5b9a\u306e\u898b\u76f4\u3057\u306b\u3088\u308a\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u6027\u3092\u7dad\u6301\u3057\u3001\u30a8\u30e9\u30fc\u306e\u672a\u7136\u9632\u6b62\u306b\u5f79\u7acb\u3066\u3066\u304f\u3060\u3055\u3044\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\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u672c\u7a3f\u3067\u306f\u3001Linux\u306b\u304a\u3051\u308b\u300cENFILE\uff0823\uff09\u300d\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3068\u305d\u306e\u5bfe\u7b56\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u30aa\u30fc\u30d7\u30f3\u30d5\u30a1\u30a4\u30eb\u6570\u306e\u4e0a\u9650\u306b\u9054\u3059\u308b\u4e3b\u306a\u539f\u56e0\u306f\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u904e\u5270\u306a\u6d88\u8cbb\u3084\u9069\u5207\u306a\u7ba1\u7406\u306e\u4e0d\u5099\u306b\u3042\u308a\u307e\u3059\u3002\u9577\u6642\u9593\u7a3c\u50cd\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3084\u30bd\u30b1\u30c3\u30c8\u306e\u9069\u5207\u306a\u89e3\u653e\u3068\u5b9a\u671f\u7684\u306a\u76e3\u67fb\u304c\u91cd\u8981\u3067\u3059\u3002\u307e\u305f\u3001\u300culimit\u300d\u3084\u300csysctl\u300d\u306a\u3069\u306e\u8a2d\u5b9a\u3092\u898b\u76f4\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u3084\u500b\u5225\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u4e0a\u9650\u5024\u3092\u9069\u5207\u306b\u8abf\u6574\u3059\u308b\u3053\u3068\u3082\u52b9\u679c\u7684\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u5bfe\u7b56\u3092\u7d99\u7d9a\u7684\u306b\u5b9f\u65bd\u3059\u308b\u3053\u3068\u3067\u3001\u30a8\u30e9\u30fc\u306e\u767a\u751f\u3092\u672a\u7136\u306b\u9632\u304e\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u7dad\u6301\u3067\u304d\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u3084IT\u62c5\u5f53\u8005\u306f\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u72b6\u6cc1\u3092\u5e38\u306b\u628a\u63e1\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8a2d\u5b9a\u5909\u66f4\u3084\u30ea\u30bd\u30fc\u30b9\u7ba1\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u9069\u5207\u306a\u7ba1\u7406\u3068\u5bfe\u7b56\u3092\u901a\u3058\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u4fe1\u983c\u6027\u3092\u9ad8\u3081\u3001\u30d3\u30b8\u30cd\u30b9\u306e\u5186\u6ed1\u306a\u904b\u55b6\u3092\u652f\u3048\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\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\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30b7\u30b9\u30c6\u30e0\u306e\u5b89\u5b9a\u904b\u7528\u306b\u306f\u3001\u65e5\u3005\u306e\u30ea\u30bd\u30fc\u30b9\u7ba1\u7406\u3068\u9069\u5207\u306a\u8a2d\u5b9a\u306e\u898b\u76f4\u3057\u304c\u6b20\u304b\u305b\u307e\u305b\u3093\u3002\u5b9a\u671f\u7684\u306a\u76e3\u67fb\u3084\u30ed\u30b0\u5206\u6790\u3092\u884c\u3044\u3001\u7570\u5e38\u5146\u5019\u3092\u65e9\u671f\u306b\u5bdf\u77e5\u3059\u308b\u4ed5\u7d44\u307f\u3092\u6574\u3048\u308b\u3053\u3068\u3082\u91cd\u8981\u3067\u3059\u3002\u3082\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u8a2d\u5b9a\u3084\u904b\u7528\u306b\u4e0d\u5b89\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u5c02\u9580\u7684\u306a\u30b5\u30dd\u30fc\u30c8\u3092\u53d7\u3051\u308b\u3053\u3068\u3092\u691c\u8a0e\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u30c7\u30fc\u30bf\u306e\u5b89\u5168\u3068\u30b7\u30b9\u30c6\u30e0\u306e\u4fe1\u983c\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u3001\u4fe1\u983c\u3067\u304d\u308b\u30d1\u30fc\u30c8\u30ca\u30fc\u3068\u9023\u643a\u3057\u3001\u9069\u5207\u306a\u5bfe\u7b56\u3092\u8b1b\u3058\u308b\u3053\u3068\u304c\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u306e\u57fa\u672c\u3068\u306a\u308a\u307e\u3059\u3002\u79c1\u305f\u3061\u306e\u5c02\u9580\u30c1\u30fc\u30e0\u306f\u3001\u8c4a\u5bcc\u306a\u7d4c\u9a13\u3068\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u3001\u8cb4\u793e\u306eIT\u30a4\u30f3\u30d5\u30e9\u306e\u5b89\u5b9a\u904b\u7528\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002\u3054\u76f8\u8ac7\u3084\u3054\u8cea\u554f\u304c\u3042\u308c\u3070\u3001\u304a\u6c17\u8efd\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002\u5b89\u5fc3\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u3092\u904b\u7528\u3067\u304d\u308b\u74b0\u5883\u3065\u304f\u308a\u3092\u4e00\u7dd2\u306b\u9032\u3081\u3066\u307e\u3044\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30b7\u30b9\u30c6\u30e0\u306e\u30aa\u30fc\u30d7\u30f3\u30d5\u30a1\u30a4\u30eb\u6570\u306e\u7ba1\u7406\u306b\u304a\u3044\u3066\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8\u306b\u6ce8\u610f\u3092\u6255\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u3001\u8a2d\u5b9a\u5024\u3092\u7121\u7406\u306b\u5f15\u304d\u4e0a\u3052\u3059\u304e\u308b\u3053\u3068\u306f\u907f\u3051\u308b\u3079\u304d\u3067\u3059\u3002\u904e\u5270\u306a\u30ea\u30bd\u30fc\u30b9\u5272\u308a\u5f53\u3066\u306f\u3001\u4ed6\u306e\u30b7\u30b9\u30c6\u30e0\u8cc7\u6e90\u306e\u67af\u6e07\u3084\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u4f4e\u4e0b\u3092\u62db\u304f\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u6b21\u306b\u3001\u8a2d\u5b9a\u5909\u66f4\u3092\u884c\u3046\u969b\u306b\u306f\u3001\u5341\u5206\u306a\u30c6\u30b9\u30c8\u3068\u691c\u8a3c\u3092\u884c\u3044\u3001\u4e88\u671f\u305b\u306c\u52d5\u4f5c\u3084\u526f\u4f5c\u7528\u3092\u9632\u6b62\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002    \u307e\u305f\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u904e\u5270\u306a\u6d88\u8cbb\u3092\u9632\u3050\u305f\u3081\u306b\u306f\u3001\u5b9a\u671f\u7684\u306a\u76e3\u67fb\u3068\u30ed\u30b0\u5206\u6790\u304c\u6b20\u304b\u305b\u307e\u305b\u3093\u3002\u7279\u306b\u3001\u9577\u6642\u9593\u7a3c\u50cd\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b5\u30fc\u30d3\u30b9\u306b\u304a\u3044\u3066\u306f\u3001\u30ea\u30bd\u30fc\u30b9\u30ea\u30fc\u30af\u3084\u4e0d\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u306e\u84c4\u7a4d\u3092\u65e9\u671f\u306b\u691c\u77e5\u3057\u3001\u9069\u5207\u306b\u5bfe\u51e6\u3059\u308b\u3053\u3068\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u8ca0\u8377\u72b6\u6cc1\u3084\u30ea\u30bd\u30fc\u30b9\u4f7f\u7528\u72b6\u6cc1\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u76e3\u8996\u3067\u304d\u308b\u30c4\u30fc\u30eb\u306e\u5c0e\u5165\u3082\u52b9\u679c\u7684\u3067\u3059\u3002    \u6700\u5f8c\u306b\u3001\u8a2d\u5b9a\u5909\u66f4\u3084\u904b\u7528\u65b9\u91dd\u3092\u6c7a\u5b9a\u3059\u308b\u969b\u306b\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u30d0\u30e9\u30f3\u30b9\u3068\u5b89\u5b9a\u6027\u3092\u6700\u512a\u5148\u306b\u8003\u3048\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5c02\u9580\u5bb6\u306e\u610f\u898b\u3092\u53d6\u308a\u5165\u308c\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u610f\u8b58\u3057\u306a\u304c\u3089\u904b\u7528\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u30a8\u30e9\u30fc\u306e\u30ea\u30b9\u30af\u3092\u4f4e\u6e1b\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u9577\u671f\u7684\u306a\u5b89\u5b9a\u6027\u3092\u78ba\u4fdd\u3067\u304d\u308b\u3067\u3057\u3087\u3046\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\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\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 ENFILE \u306f\u300c\u500b\u5225\u8a2d\u5b9a\u300d\u3067\u306f\u306a\u304f\u300c\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u67a0\u300d\u3092\u898b\u306a\u3044\u3068\u518d\u767a\u3057\u3084\u3059\u3044 \u30ec\u30ac\u30b7\u30fc\u74b0\u5883\u3084\u6b62\u3081\u306b\u304f\u3044\u672c\u756a\u3067\u306f\u3001\u5358\u7d14\u306a\u4e0a\u9650\u5f15\u304d\u4e0a\u3052\u3088\u308a\u5148\u306b\u3001\u4e89\u70b9\u306e\u5207\u308a\u5206\u3051\u3068\u5f71\u97ff\u7bc4\u56f2\u306e\u898b\u6975\u3081\u304c\u52b9\u304d\u3084\u3059\u3044\u3067\u3059\u3002 1 30\u79d2\u3067 [&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-42392","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\/42392","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=42392"}],"version-history":[{"count":2,"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=\/wp\/v2\/posts\/42392\/revisions"}],"predecessor-version":[{"id":69941,"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=\/wp\/v2\/posts\/42392\/revisions\/69941"}],"wp:attachment":[{"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=42392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=42392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jouhou.main.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=42392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}