{"id":918,"date":"2010-08-08T16:11:18","date_gmt":"2010-08-08T16:11:18","guid":{"rendered":"http:\/\/pchero21.com\/?p=918"},"modified":"2010-08-08T16:11:18","modified_gmt":"2010-08-08T16:11:18","slug":"%ec%8b%9c%ec%8a%a4%ed%85%9c-%ec%b5%9c%ec%a0%81%ed%99%94-%eb%8f%99%ec%8b%9c%ec%82%ac%ec%9a%a9%ec%9e%90-%eb%8a%98%eb%a6%ac%ea%b8%b0-%ec%9c%84%ed%95%9c-%ec%bb%a4%eb%84%90-%ec%a1%b0%ec%a0%95ulimit","status":"publish","type":"post","link":"http:\/\/pchero21.com\/?p=918","title":{"rendered":"\uc2dc\uc2a4\ud15c \ucd5c\uc801\ud654 &#8211; \ub3d9\uc2dc\uc0ac\uc6a9\uc790 \ub298\ub9ac\uae30 \uc704\ud55c \ucee4\ub110 \uc870\uc815(ulimit)"},"content":{"rendered":"<p>&nbsp;\uc774 \uae00\uc740 http:\/\/wiki.kldp.org\/KoreanDoc\/Ulimit-KLDP (\ubb38\ud0dc\uc900\ub2d8 \uc791\uc131, 2000\ub144 2\uc6d4 24\uc77c(\ubaa9))\uc744 \ud1a0\ub300\ub85c \ud544\uc790\uac00 \ub098\ub984 \ub0b4\uc6a9\uc744 \ucd94\uac00\ud558\uc5ec \uc791\uc131\ud558\ub294 \uae00\uc774\ub2e4.<\/p>\n<p>&nbsp;\ucd5c\ub300\ud55c \uc6d0\uae00\uc758 \ub0b4\uc6a9\uc744 \uadf8\ub300\ub85c \uc720\uc9c0\ud558\ub418, \uc774\ubbf8 10\ub144\uc774\ub780 \uc138\uc6d4\uc774 \ud758\ub800\uc73c\ubbc0\ub85c \ub9ce\uc740 \ubcc0\ud654\uac00 \uc788\uc5c8\ub2e4. \uc6cc\ub099 \uc911\uc694\ud558\uace0 \uc88b\uc740 \uae00\uc774\ub77c \uadf8\ub0e5 \uadf8\ub300\ub85c \uac00\uc838\ub2e4 \uc4f0\ub824\uace0 \ud588\uc73c\ub098, \ubb54\uac00 \uc544\uc26c\uc6b4 \ub290\ub08c\uc774 \ub4e4\uc5b4 \uc5c6\ub294 \uc2e4\ub825\uc774\uc9c0\ub9cc \uc57d\uac04\uc758 \ubcf4\ucda9\uc744 \ub367\ubd99\uc5ec\ubcf4\uae30\ub85c \ud588\ub2e4.<\/p>\n<p>&nbsp; * \uc774 \uae00\uc740 \uc2e4\uc81c\ub85c \uc81c\uac00 \ub300\ud615\uc11c\ubc84\ub97c \uc6b4\uc601\ud558\uace0 \uc788\ub294 \uc0c1\ud669\uc5d0\uc11c \ub098\uc628 \uae00\uc740 \uc808\ub300 \uc544\ub2c8\uba70, \uadf8\ub0e5 \uc5ec\uae30\uc800\uae30\uc11c \uc8fc\uc6cc\ub4e4\uc740 \uc774\uc57c\uae30\ub4e4\uacfc \uc790\ub8cc\ub4e4\uc744 \ud1a0\ub300\ub85c \ud574\uc11c \uc791\uc131\ud55c \uac83\uc785\ub2c8\ub2e4. \ub3d9\uc2dc\uc811\uc18d\uc774 \uba87\ubc31\uba85\uc5d0\uc11c \uba87\ucc9c\uba85\ub418\ub294 \uc11c\ube44\uc2a4\ub97c \ud558\ub824\uba74 \ub2e8\uc21c\ud558\uac8c \ucee4\ub110 \ucef4\ud30c\uc77c \ud55c\ubc88 \ud558\uace0 \ub05d\ub098\ub294 \uac83\uc774 \uc544\ub2c8\ub77c \uc5ec\ub7ec\uac00\uc9c0 \uc870\uc815\uc744 \ud574\uc8fc\uc5b4\uc57c \ud560 \uac83\uc774 \ub9ce\uc2b5\ub2c8\ub2e4. \ub610\ud55c \ud558\ub4dc\uc6e8\uc5b4\uc640 OS \uc81c\ud55c\uc774 \uc788\uc73c\ubbc0\ub85c \ub85c\ub4dc\ubc38\ub7f0\uc2f1(\ubd80\ud558\ubd84\uc0b0), \ud2b8\ub798\ud53d \ubd84\uc0b0 \ub4f1\uc744 \ud558\ub294 \uc2a4\uc704\uce6d \uc7a5\ube44, \ud074\ub7ec\uc2a4\ud130\ub9c1 \uc2dc\uc2a4\ud15c \uad6c\uc131\uc774 \ud544\uc694\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub9cc\ud07c \uc124\uacc4\ub97c \uc798\ud574\uc57c\ud569\ub2c8\ub2e4. \uc5ec\uae30\uc5d0 \uc5b8\uae09\ud55c \uac83\uc740 \ub2e8\uc9c0 \uc27d\uac8c \ud560 \uc218 \uc788\ub294 \ub9db\ubcf4\uae30 \uc815\ub3c4\uc774\uc9c0\uc694. \uc774\ub85c \uc778\ud574\uc11c \uc0dd\uae30\ub294 \uc190\ud574\uc5d0 \ub300\ud574\uc11c\ub294 \ubcf8\uc778\uc774 \uc808\ub300 \ucc45\uc784\uc744 \uc9c0\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \ub610\ud55c \ub0b4\uc6a9 \uc911 \ud2c0\ub9b0 \ubd80\ubd84\ub3c4 \ub9ce\uc774 \uc788\uc744 \uac83\uc785\ub2c8\ub2e4.<br \/><span style=\"font-weight: bold;\"><\/p>\n<p>&nbsp; * \ub4e4\uc5b4\uac00\uba70<\/span><\/p>\n<p>&nbsp;\ub300\uaddc\ubaa8 \uc11c\ube44\uc2a4\ub97c \uc900\ube44\ud558\ub294 \uacbd\uc6b0 \uc6b4\uc601\uccb4\uc81c\uc758 \uc81c\ud55c\uc0ac\ud56d\uc744 \uba3c\uc800 \ud655\uc778\ud574\uc57c \ud55c\ub2e4. \ub3d9\uc2dc\uc5d0 \uc5f4\uc218 \uc788\ub294 \ucd1d\ud30c\uc77c \uc218, \ud55c \ud504\ub85c\uc138\uc2a4\uac00 \uc5f4\uc218 \uc788\ub294 \ud30c\uc77c \uc218 \ub4f1\ub4f1.<\/p>\n<p>&nbsp;\uc608\ub97c \ub4e4\uc5b4 \ub300\ud615 \uc6f9\uc11c\ubc84\ub97c \uc544\ud30c\uce58\ub85c \uc11c\ube44\uc2a4\ud558\ub294 \uacbd\uc6b0\ub97c \uc0dd\uac01\ud574\ubcf4\uc790. \uc544\ud30c\uce58\ub294 \uae30\ubcf8\uc801\uc73c\ub85c \ud504\ub85c\uc138\uc2a4 \ubc29\uc2dd\uc73c\ub85c \uc11c\ube44\uc2a4\ub97c \ucc98\ub9ac\ud55c\ub2e4. \uc774\uac74 \uc0ac\uc6a9\uc790\uc758 \uc694\uad6c\uac00 \uc62c\ub54c\ub9c8\ub2e4 \ud558\ub098\uc758 \ud504\ub85c\uc138\uc2a4\ub97c \ub744\uc6b0\ubbc0\ub85c \ub9cc\uc57d \ub3d9\uc2dc\uc5d0 10\uba85\uc758 \uc0ac\uc6a9\uc790\uac00 \uc811\uc18d\uc744 \ud558\uba74 10\uac1c\uc758 \ud504\ub85c\uc138\uc2a4\uac00 \ub5a0\uc57c\ud55c\ub2e4\ub294 \uac83\uc774\ub2e4. \ucd5c\uadfc\uc758 \uc544\ud30c\uce58 \uc11c\ubc84\ub294 MaxClients 150 \uc774\ub77c\uace0 \uc124\uc815\ub418\uc5b4 \uc788\ub2e4. \uc774\uac74 \ub3d9\uc2dc\uc5d0 150 \uac1c\uc758 \ud504\ub85c\uc138\uc2a4\ub97c \ub744\uc6b8 \uc218 \uc788\uc73c\uba70 \uacb0\uad6d \ub3d9\uc2dc\uc5d0 150\uba85\uc744 \ubc1b\uc544 \ub4e4\uc77c \uc218 \uc788\ub2e4\ub294 \uac83\uc774\ub2e4(\uc2e4\uc81c\ub85c \uc774\uc815\ub3c4\ub9cc \ud558\ub354\ub77c\ub3c4 \uc808\ub300\ub85c \uc791\uc740 \uaddc\ubaa8\ub294 \uc544\ub2c8\ub2e4). \uadf8\ub7f0\ub370 \ub9cc\uc57d nobody\uac00 \ub9cc\ub4e4\uc5b4\ub0bc \uc218 \uc788\ub294 \ucd5c\ub300 \ud504\ub85c\uc138\uc2a4 \uac1c\uc218\uac00 \uadf8 \uc774\ud558\ub77c\uba74? \ub2f9\uc5f0\ud788 \ubb38\uc81c\uac00 \uc0dd\uae38 \uac83\uc774\ub2e4. \ubb3c\ub860 \ucd5c\uadfc \ub808\ub4dc\ud587 6.0 \uc774\uc0c1 \ubc84\uc804\uc740 \uadf8 \uc774\uc0c1\uc73c\ub85c \ub9de\ucd94\uc5b4\uc838 \uc788\uc5b4\uc11c \ubb38\uc81c\uac00 \uc0dd\uae30\uc9c0\ub294 \uc54a\uaca0\uc9c0\ub9cc.<\/p>\n<p>&nbsp;\ubb38\uc81c\ub294 \ud504\ub85c\uc138\uc2a4\uac00 \ub9ce\uc774 \ub728\uba74 \ud504\ub85c\uc138\uc2a4\ubfd0\ub9cc \uc544\ub2c8\ub77c \uc5f4 \uc218 \uc788\ub294 \ud30c\uc77c \uc218\uc5d0\uc11c\ub3c4 \ubb38\uc81c\uac00 \ub41c\ub2e4.<\/p>\n<p>&nbsp;\uadf8\ub7ec\uba74 \uba3c\uc800 \ud504\ub85c\uc138\uc2a4\uc758 \uc790\uc6d0 \ud55c\ub3c4\uc5d0 \ub300\ud574\uc11c \uc54c\uc544\ubcf4\uc790.<\/p>\n<blockquote><p><span style=\"font-weight: bold;\">&nbsp;-\uc8fc<\/span><br \/>&nbsp;\uc774 \uae00\uc744 \uc791\uc131\ud558\ub294 \ud604\uc7ac(2010.07.08) \ub9ce\uc740 \uac83\uc774 \ubc14\ub00c\uc5b4\uc84c\ub2e4. \ud604\uc7ac \ud544\uc790\uac00 \uc6b4\uc6a9\ud558\ub294 \uc544\ud30c\uce58\uc758 \ubc84\uc804\uc740 2.2.14 \ubc84\uc804\uc744 \uc0ac\uc6a9\uc911\uc774\uace0, (\uc6d0 \uae00\ub2d8\uc774 \uae00\uc744 \uc791\uc131\ud558\uc168\uc744 10\ub144\uc804\uc5d0\ub294 \uc544\ub9c8 1.7.X \ubc84\uc804\uc73c\ub85c \uc0ac\uc6a9\ub418\uc5c8\uc73c\ub9ac\ub77c \uc0dd\uac01\ud55c\ub2e4) \uc544\ud30c\uce58\uc758 \uad6c\ub3d9 \ubc29\uc2dd\ub3c4 \ud558\ub098\uc758 \uc694\uccad\ub9c8\ub2e4 \ud558\ub098\uc758 \ud504\ub85c\uc138\uc2a4\ub97c \ub744\uc6b0\ub294 \ubc29\uc2dd\uc774 \uc544\ub2cc \uba54\uc18c\ub4dc \ubc0f \uae30\ud0c0 \ubc29\uc2dd\uc744 \uc0ac\uc6a9\ud558\ub294 \ud615\uc2dd\uc73c\ub85c \ubc14\ub00c\uc5c8\ub2e4. \uadf8\ub9ac\uace0 \uc544\uc6b8\ub7ec MaxClient\uc758 \uc218\ub3c4 \uc99d\uac00\ud588\uc74c\uc740 \ubb3c\ub860\uc774\ub2e4.<\/p><\/blockquote>\n<p><span style=\"font-weight: bold;\">&nbsp;* \ud504\ub85c\uc138\uc2a4\uc758 \uc790\uc6d0\ud55c\ub3c4<\/span><\/p>\n<p>&nbsp;\ud504\ub85c\uc138\uc2a4\uc758 \uc790\uc6d0\ud55c\ub3c4\ub97c \ub9ac\ub205\uc2a4\uc5d0\uc11c\ub294 ulimit \ub97c \ud1b5\ud574\uc11c \uc54c \uc218 \uc788\ub2e4.<\/p>\n<blockquote><p>&nbsp;ulimit \uc635\uc158<\/p>\n<p>&nbsp;-a \ubaa8\ub4e0 \uc81c\ud55c \uc0ac\ud56d\uc744 \ubcf4\uc5ec\uc900\ub2e4.<br \/>&nbsp;-c \ucd5c\ub300 \ucf54\uc5b4 \ud30c\uc77c \uc0ac\uc774\uc988<br \/>&nbsp;-d \ud504\ub85c\uc138\uc2a4 \ub370\uc774\ud130 \uc138\uadf8\uba3c\ud2b8\uc758 \ucd5c\ub300 \ud06c\uae30<br \/>&nbsp;-f shell\uc5d0 \uc758\ud574 \ub9cc\ub4e4\uc5b4\uc9c8 \uc218 \uc788\ub294 \ud30c\uc77c\uc758 \ucd5c\ub300 \ud06c\uae30<br \/>&nbsp;-s \ucd5c\ub300 \uc2a4\ud0dd \ud06c\uae30<br \/>&nbsp;-p \ud30c\uc774\ud504 \ud06c\uae30<br \/>&nbsp;-n \uc624\ud508 \ud30c\uc77c\uc758 \ucd5c\ub300 \uc218<br \/>&nbsp;-u \ud504\ub85c\uc138\uc2a4 \ucd5c\ub300 \uc218<br \/>&nbsp;-v \ucd5c\ub300 \uac00\uc0c1 \uba54\ubaa8\ub9ac\uc758 \ub7c9<\/p><\/blockquote>\n<p>&nbsp;# ulimit -a (\ub610\ub294 ulimit -Sa) &#8212;&gt; soft \ud55c\ub3c4<\/p>\n<blockquote><p>jonathan@jonathan-laptop:~$ ulimit -a<br \/>core file size &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (blocks, -c) 0<br \/>data seg size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (kbytes, -d) unlimited<br \/>scheduling priority &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (-e) 20<br \/>file size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (blocks, -f) unlimited<br \/>pending signals &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (-i) 16382<br \/>max locked memory &nbsp; &nbsp; &nbsp; (kbytes, -l) 64<br \/>max memory size &nbsp; &nbsp; &nbsp; &nbsp; (kbytes, -m) unlimited<br \/>open files &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (-n) 1024<br \/>pipe size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (512 bytes, -p) 8<br \/>POSIX message queues &nbsp; &nbsp; (bytes, -q) 819200<br \/>real-time priority &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (-r) 0<br \/>stack size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (kbytes, -s) 8192<br \/>cpu time &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (seconds, -t) unlimited<br \/>max user processes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (-u) unlimited<br \/>virtual memory &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (kbytes, -v) unlimited<br \/>file locks &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (-x) unlimited<\/p><\/blockquote>\n<p>&nbsp;# ulimit -Ha &#8212;-&gt; Hard \ud55c\ub3c4<\/p>\n<blockquote><p>jonathan@jonathan-laptop:~$ ulimit -Ha<br \/>core file size &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (blocks, -c) unlimited<br \/>data seg size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (kbytes, -d) unlimited<br \/>scheduling priority &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (-e) 20<br \/>file size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (blocks, -f) unlimited<br \/>pending signals &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (-i) 16382<br \/>max locked memory &nbsp; &nbsp; &nbsp; (kbytes, -l) 64<br \/>max memory size &nbsp; &nbsp; &nbsp; &nbsp; (kbytes, -m) unlimited<br \/>open files &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (-n) 1024<br \/>pipe size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (512 bytes, -p) 8<br \/>POSIX message queues &nbsp; &nbsp; (bytes, -q) 819200<br \/>real-time priority &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (-r) 0<br \/>stack size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (kbytes, -s) unlimited<br \/>cpu time &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (seconds, -t) unlimited<br \/>max user processes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (-u) unlimited<br \/>virtual memory &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (kbytes, -v) unlimited<br \/>file locks &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (-x) unlimited<\/p><\/blockquote>\n<p>&nbsp;\uc18c\ud504\ud2b8 \ud55c\ub3c4(soft)\ub294 \uc0c8\ub85c\uc6b4 \ud504\ub85c\uc138\uc2a4\uac00 \ub9cc\ub4e4\uc5b4\uc84c\uc744 \ub54c \ub514\ud3f4\ud2b8\ub85c \uc801\uc6a9\ub418\ub294 \uc790\uc6d0\uc758 \ud55c\ub3c4\uc774\ub2e4. \uc774\uac83\uc744 \ud558\ub4dc\ud55c\ub3c4\uae4c\uc9c0 \ub4f1\uac00\uc2dc\ud0ac \uc218 \uc788\ub2e4. \uadf8\ub807\uc9c0\ub9cc \uc774 \ud55c\ub3c4\ub97c \ub118\uc5b4\uc11c \ud655\uc7a5\ud558\ub294 \uac83\uc740 \uc288\ud37c\uc720\uc800\ub9cc\uc774 \uac00\ub2a5\ud558\ub2e4.<\/p>\n<p>&nbsp;\uc989, \ud558\ub4dc\ud55c\ub3c4\ub294 \uc808\ub300\uc801\uc778 \uc120\uc774\ub2e4.<\/p>\n<p>&nbsp;\uadf8\ub807\ub2e4\uba74 \ud558\ub4dc\ud55c\ub3c4\ub294 \uc288\ud37c\uc720\uc800\ub77c\uace0 \ubb34\ud55c\ub300\ub85c \ub298\ub9b4 \uc218 \uc788\ub294\uac00?<br \/>-&gt; \uc808\ub300 \uc544\ub2c8\ub2e4. \uc774\uac74 \ucee4\ub110\ucc28\uc6d0\uc5d0\uc11c \uc9c0\uc815\uc744 \ud574\uc57c \ud55c\ub2e4.<\/p>\n<p>&nbsp;\uc704\uc5d0\uc11c\uc758 \uac01 \ud56d\ubaa9\uc744 \uc0b4\ud3b4\ubcf4\uc790\uba74&#8230;<\/p>\n<blockquote><p>core file size &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; -&gt; \ucf54\uc5b4\ud30c\uc77c\uc758 \ucd5c\ub300\ud06c\uae30<br \/>\ndata seg size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; \ud504\ub85c\uc138\uc2a4\uc758 \ub370\uc774\ud130 \uc138\uadf8\uba3c\ud2b8 \ucd5c\ub300\ud06c\uae30<br \/>\nscheduling priority <br \/>\nfile size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (blocks, -f) unlimited&nbsp; -&gt; \uc258\uc5d0\uc11c \uc0dd\uc131\ub418\ub294 \ud30c\uc77c\uc758 \ucd5c\ub300 \ud06c\uae30<br \/>\npending signals &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (-i) 16382<br \/>\nmax locked memory &nbsp; &nbsp; &nbsp; (kbytes, -l) 64<br \/>\nmax memory size &nbsp; &nbsp; &nbsp; &nbsp; (kbytes, -m) unlimited&nbsp; -&gt; resident set size\uc758 \ucd5c\ub300 \ud06c\uae30(\uba54\ubaa8\ub9ac \ucd5c\ub300\ud06c\uae30)<br \/>\nopen files &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (-n) 1024 &nbsp;&nbsp; -&gt; \ud55c \ud504\ub85c\uc138\uc2a4\uc5d0\uc11c \uc5f4 \uc218 \uc788\ub294 open file descriptor\uc758 \ucd5c\ub300 \uc22b\uc790(\uc5f4\uc218 \uc788\ub294 \ucd5c\ub300 \ud30c\uc77c \uc218)<br \/>\npipe size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (512 bytes, -p) 8 &nbsp;&nbsp; -&gt; 512-\ubc14\uc774\ud2b8 \ube14\ub7ed\uc758 \ud30c\uc774\ud504 \ud06c\uae30<br \/>\nPOSIX message queues &nbsp; &nbsp; (bytes, -q) 819200<br \/>\nreal-time priority &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (-r) 0<br \/>\nstack size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (kbytes, -s) 8192<br \/>\ncpu time &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (seconds, -t) unlimited &nbsp; &nbsp; -&gt; \ucd1d \ub204\uc801\ub41c CPU \uc2dc\uac04(\ucd08)<br \/>\nmax user processes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (-u) unlimited &nbsp; -&gt; \ub2e8\uc77c \uc720\uc800\uac00 \uc0ac\uc6a9\uac00\ub2a5\ud55c \ud504\ub85c\uc138\uc2a4\uc758 \ucd5c\ub300 \uac2f\uc218<br \/>\nvirtual memory &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (kbytes, -v) unlimited &nbsp; -&gt; \uc258\uc5d0\uc11c \uc0ac\uc6a9\uac00\ub2a5 \ud55c \uac00\uc0c1 \uba54\ubaa8\ub9ac\uc758 \ucd5c\ub300 \uc6a9\ub7c9<br \/>\nfile locks &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; (-x) unlimited<\/p><\/blockquote>\n<p>&nbsp;\uc758 \ub73b\uc744 \uac00\uc9c0\uace0 \uc788\ub2e4.<\/p>\n<p>&nbsp;\uc704\uc758 \ub0b4\uc6a9 \uc911 \uc8fc\uc758\uae4a\uac8c \uc0b4\ud3b4\ubcfc \ubd80\ubd84\uc774 \ubc14\ub85c \ud55c \ud504\ub85c\uc138\uc2a4\uc5d0\uc11c \uc5f4 \uc218 \uc788\ub294 file descriptor \uc758 \uac2f\uc218\ub97c \ud45c\uc2dc\ud55c open files \ud56d\ubaa9\uacfc \ud55c \uc720\uc800\uac00 \uc0dd\uc131 \uac00\ub2a5\ud55c \ud504\ub85c\uc138\uc2a4\uc758 \uac2f\uc218 \ubd80\ubd84\uc774\ub2e4.<\/p>\n<p>&nbsp;\uc0ac\uc2e4 \uc774\ubbf8 \ud55c \uc720\uc800\uac00 \uc0dd\uc131 \uac00\ub2a5\ud55c \ud504\ub85c\uc138\uc2a4\uc758 \uac2f\uc218\uac00 \ubb34\ud55c\uc815\uc73c\ub85c \ub418\uc5b4 \uc788\uc73c\ubbc0\ub85c file descriptor \uc758 \uac2f\uc218\ub294 \uadf8\ub2e4\uc9c0 \ud070 \uc758\ubbf8\uac00 \uc5c6\ub2e4. \ud558\uc9c0\ub9cc file descriptor\uc758 \uac2f\uc218\ub97c \ub298\ub9ac\uace0 \uc2f6\ub2e4\uba74 \ub2e4\uc74c\uc758 \ubc29\ubc95\uc73c\ub85c \uac00\ub2a5\ud558\ub2e4.<\/p>\n<p>&nbsp;1. \uc18c\uc2a4\ud30c\uc77c\uc744 \uc218\uc815\ud55c \ud6c4, \ucee4\ub110 \uc7ac\ucef4\ud30c\uc77c\uc744 \ud558\ub294 \ubc29\ubc95.<\/p>\n<p>&nbsp;2. \/proc \ub97c \uc774\uc6a9\ud558\uc5ec \ubcc0\uacbd\ud558\ub294 \ubc29\ubc95.<\/p>\n<p>&nbsp;3. \/etc\/security\/limits.conf \ud30c\uc77c\uc744 \uc218\uc815\ud558\ub294 \ubc29\ubc95<\/p>\n<p>&nbsp;\uc0ac\uc2e4 ulimit \uba85\ub839\uc73c\ub85c \uc870\uc808\uc774 \uac00\ub2a5\ud558\ub098, \ub2e8\uc9c0 \ubcf4\uc5ec\uc8fc\uae30\ub9cc \ud560 \ubfd0 \uc2e4\uc81c\uc801\uc778 \uc218\uc815\uc774 \ub418\uc9c0 \uc54a\ub294\ub2e4\uace0 \uc6d0\uae00\uc5d0\ub294 \ub098\uc640\uc788\uc5c8\ub2e4. \uadf8\ub798\uc11c ulimit \uad00\ub828 \ubd80\ubd84\uc740 \ud328\uc2a4.<\/p>\n<p>&nbsp;\uadf8\ub7ec\ub098, \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \uacbd\uc6b0\ub294 ulimit \ud568\uc218\ub97c \ud1b5\ud574\uc11c \uc218\uc815\uc774 \uac00\ub2a5\ud558\ub2e4.<\/p>\n<blockquote><p>NAME<br \/>&nbsp; &nbsp; &nbsp;&nbsp; ulimit &#8211; get and set user limits<\/p>\n<p>SYNOPSIS<br \/>&nbsp; &nbsp; &nbsp;&nbsp; #include &lt;ulimit.h&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; long ulimit(int cmd, long newlimit);<\/p>\n<p>DESCRIPTION<br \/>&nbsp; &nbsp; &nbsp;&nbsp; Warning: This routine is obsolete.&nbsp; Use getrlimit(2), setrlimit(2), and<br \/>&nbsp; &nbsp; &nbsp;&nbsp; sysconf(3) instead.&nbsp; For the shell command ulimit(), see bash(1).<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; The ulimit() call will get or set some limit for the&nbsp; calling&nbsp; process.<br \/>&nbsp; &nbsp; &nbsp;&nbsp; The cmd argument can have one of the following values.<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; UL_GETFSIZE<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return the limit on the size of a file, in units of 512 bytes.<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; UL_SETFSIZE<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set the limit on the size of a file.<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; 3 &nbsp; &nbsp;&nbsp; (Not&nbsp; implemented&nbsp; for&nbsp; Linux.) &nbsp; Return&nbsp; the&nbsp; maximum&nbsp; possible<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; address of the data segment.<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; 4 &nbsp; &nbsp;&nbsp; (Implemented but no symbolic&nbsp; constant&nbsp; provided.) &nbsp; Return&nbsp; the<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maximum number of files that the calling process can open.<\/p>\n<p>RETURN VALUE<br \/>&nbsp; &nbsp; &nbsp;&nbsp; On&nbsp; success,&nbsp; ulimit()&nbsp; returns&nbsp; a non-negative value.&nbsp; On error, -1 is<br \/>&nbsp; &nbsp; &nbsp;&nbsp; returned, and errno is set appropriately.<\/p>\n<p>ERRORS<br \/>&nbsp; &nbsp; &nbsp;&nbsp; EPERM&nbsp; A non-root process tried to increase a limit.<\/p>\n<p>CONFORMING TO<br \/>&nbsp; &nbsp; &nbsp;&nbsp; SVr4, POSIX.1-2001.&nbsp; POSIX.1-2008 marks ulimit() as obsolete.<\/p>\n<p>SEE ALSO<br \/>&nbsp; &nbsp; &nbsp;&nbsp; bash(1), getrlimit(2), setrlimit(2), sysconf(3)<\/p><\/blockquote>\n<p>&nbsp;2. proc\ub97c \uc774\uc6a9\ud55c \ubc29\ubc95<\/p>\n<p>&nbsp;proc\ub97c \uc774\uc6a9\ud558\uc5ec \uac04\ub2e8\ud788 \ubcc0\uacbd\ud558\ub294 \ubc29\ubc95\uc774 \uc788\ub2e4.<\/p>\n<blockquote><p>pchero@MyNote:~$ cat \/proc\/sys\/fs\/file-max <br \/>6553600<br \/>pchero@MyNote:~$ sudo echo 7000000 &gt; <font size=\"2\"><font face=\"\ubc14\ud0d5\"><span style=\"font-family: Gulim;\" lang=\"EN-US\">\/proc\/sys\/fs\/file-max<\/span><\/font><\/font><\/p><\/blockquote>\n<p>&nbsp;\ud558\uc9c0\ub9cc \/proc \ub97c \uc0ac\uc6a9\ud558\uc5ec \uc2dc\uc2a4\ud15c \uc124\uc815\uc744 \ubcc0\uacbd\ud560 \uacbd\uc6b0, \ub9e4 \ubd80\ud305\uc2dc \uc124\uc815\uc744 \ub2e4\uc2dc \ud574\uc8fc\uc5b4\uc57c \ud55c\ub2e4\ub294 \ub2e8\uc810\uc774 \uc788\ub2e4.<br \/>&nbsp;\/etc\/rc.local \ud30c\uc77c\uc744 \uc774\uc6a9\ud558\uc5ec \uba85\ub839\uc5b4\ub97c \uc124\uc815\ud558\ub358\uac00 \uc544\ub2c8\uba74 \ub2e4\uc74c\uc5d0 \ub098\uc624\ub294 limits.conf \ud30c\uc77c\uc744 \uc774\uc6a9\ud558\ub3c4\ub85d \ud55c\ub2e4.<\/p>\n<p>&nbsp;3. \uc0ac\uc6a9\uc790\uc5d0 \ub530\ub978 \uc790\uc6d0 \ud55c\ub3c4 \uc124\uc815 \ud30c\uc77c<br \/>\n\/etc\/security\/limits.conf<span style=\"font-weight: bold;\"><br \/><\/span><\/p>\n<blockquote><p># \/etc\/security\/limits.conf<br \/>#<br \/>#Each line describes a limit for a user in the form:<br \/>#<br \/>#&lt;domain&gt; &nbsp; &nbsp; &nbsp;&nbsp; &lt;type&gt;&nbsp; &lt;item&gt;&nbsp; &lt;value&gt;<br \/>#<br \/>#Where:<br \/>#&lt;domain&gt; can be:<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; an user name<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; a group name, with @group syntax<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; the wildcard *, for default entry<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; the wildcard %, can be also used with %group syntax,<br \/># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for maxlogin limit<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; NOTE: group and wildcard limits are not applied to root.<br \/># &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; To apply a limit to the root user, &lt;domain&gt; must be<br \/># &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; the literal username root.<br \/>#<br \/>#&lt;type&gt; can have the two values:<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; &#8220;soft&#8221; for enforcing the soft limits<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; &#8220;hard&#8221; for enforcing hard limits<br \/>#<br \/>#&lt;item&gt; can be one of the following:<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; core &#8211; limits the core file size (KB)<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; data &#8211; max data size (KB)<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; fsize &#8211; maximum filesize (KB)<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; memlock &#8211; max locked-in-memory address space (KB)<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; nofile &#8211; max number of open files<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; rss &#8211; max resident set size (KB)<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; stack &#8211; max stack size (KB)<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; cpu &#8211; max CPU time (MIN)<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; nproc &#8211; max number of processes<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; as &#8211; address space limit (KB)<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; maxlogins &#8211; max number of logins for this user<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; maxsyslogins &#8211; max number of logins on the system<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; priority &#8211; the priority to run user process with<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; locks &#8211; max number of file locks the user can hold<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; sigpending &#8211; max number of pending signals<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; msgqueue &#8211; max memory used by POSIX message queues (bytes)<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; nice &#8211; max nice priority allowed to raise to values: [-20, 19]<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; rtprio &#8211; max realtime priority<br \/># &nbsp; &nbsp; &nbsp;&nbsp; &#8211; chroot &#8211; change root to directory (Debian-specific)<br \/>#<br \/>#&lt;domain&gt; &nbsp; &nbsp;&nbsp; &lt;type&gt;&nbsp; &lt;item&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;value&gt;<br \/>#<\/p>\n<p>#* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; soft &nbsp;&nbsp; core &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 0<br \/>#root &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; hard &nbsp;&nbsp; core &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 100000<br \/>#* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hard &nbsp;&nbsp; rss &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10000<br \/>#@student &nbsp; &nbsp; &nbsp;&nbsp; hard &nbsp;&nbsp; nproc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 20<br \/>#@faculty &nbsp; &nbsp; &nbsp;&nbsp; soft &nbsp;&nbsp; nproc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 20<br \/>#@faculty &nbsp; &nbsp; &nbsp;&nbsp; hard &nbsp;&nbsp; nproc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 50<br \/>#ftp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hard &nbsp;&nbsp; nproc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0<br \/>#ftp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8211; &nbsp; &nbsp; &nbsp; chroot &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; \/ftp<br \/>#@student &nbsp; &nbsp; &nbsp;&nbsp; &#8211; &nbsp; &nbsp; &nbsp; maxlogins &nbsp; &nbsp; &nbsp; 4<\/p>\n<p># End of file<\/p>\n<p># Setting for oracle<br \/>oracle &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; soft &nbsp;&nbsp; nproc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2047<br \/>oracle &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; hard &nbsp;&nbsp; nproc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 16383<br \/>oracle &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; soft &nbsp;&nbsp; nofile &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 1023<br \/>oracle &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; hard &nbsp;&nbsp; nofile &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 6553<\/p>\n<\/blockquote>\n<p>&nbsp; \uc81c\uc77c \uc544\ub798 &#8216;oracle&#8217; \uacfc \uac19\uc774 \ub530\ub85c \uc124\uc815\ub41c \ubd80\ubd84\uacfc \uac19\uc774 \ubcc0\uacbd\ud558\uba74 \ub41c\ub2e4. \uc774\ub807\uac8c \uc124\uc815\ud560 \uacbd\uc6b0, \ub9e4 \ubd80\ud305\uc2dc \uc790\ub3d9 \uc801\uc6a9\ub418\uc5b4 \ubcc4\ub3c4\ub85c \uc801\uc6a9\ud558\uc9c0 \uc54a\uc544\ub3c4 \ub41c\ub2e4. \ub610\ud55c, \uac01\uac01\uc758 \uc720\uc800\ub9c8\ub2e4 \ub2e4\ub978 \uc124\uc815\uc744 \uc801\uc6a9\ud560 \uc218 \uc788\uc73c\ubbc0\ub85c \ubcf4\uc548 \ubc0f \uad00\ub9ac\uc5d0\ub3c4 \uc6a9\uc774\ud558\ub2e4.<\/p>\n<p>&nbsp;# \ub9c8\uc9c0\ub9c9\uc73c\ub85c \ud504\ub85c\uc138\uc2a4\uc5d0\uc11c \uc5f4\uc5b4\ub193\uc740 \ud30c\uc77c\uc744 \ud655\uc778\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc790.<\/p>\n<p>&nbsp;\uacb0\ub860\uc801\uc73c\ub85c lsof \ud504\ub85c\uadf8\ub7a8\uc744 \uc774\uc6a9\ud558\uba74 \ub41c\ub2e4.<\/p>\n<p>&nbsp;lsof\ub294 &#8216;List Open File&#8217;\uc758 \uc57d\uc790\ub85c \ud574\ub2f9 System\uc5d0\uc11c \uad6c\ub3d9\ub418\uace0 \uc788\ub294 \ud504\ub85c\uc138\uc2a4\ub4e4\uc5d0 \uc758\ud574\uc11c \uc5f4\ub824\uc9c4 \ud30c\uc77c\ub4e4\uc744 \ud655\uc778 \ud560 \uc218<br \/>\n\uc788\ub294 \ud234\uc774\ub2e4. \uc2dc\uc2a4\ud15c\uc758 \uc758\uc2ec\uc2a4\ub7ec\uc6b4 \ud504\ub85c\uc138\uc2a4\uc5d0 \ub300\ud55c \ud655\uc778\uc774 \uc6a9\uc774\ud558\uace0, \uc124\uce58\uac00 \ube44\uad50\uc801 \uc26c\uc6cc \ub9ce\uc774 \uc774\uc6a9\ub418\uace0 \uc788\ub2e4. <\/p>\n<p>&nbsp;lsof\uc5d0 \uad00\ud55c \ub0b4\uc6a9\uc740 \uc6cc\ub099 \ubc29\ub300\ud558\uc5ec \uc544\ub798\uc5d0 \ud574\ub2f9 \ud504\ub85c\uadf8\ub7a8 \uc0ac\uc6a9\uc5d0 \ub300\ud55c \ub9e4\ub274\uc5bc\uc744 \ub9c1\ud06c\ud574\ub454\ub2e4. \ub610\ud55c man lsof\ub97c \uc774\uc6a9\ud558\uc5ec \uc0ac\uc6a9\ud574\ub3c4 \ubb34\ubc29\ud558\ub2e4.<\/p>\n<p>http:\/\/www.superuser.co.kr\/security\/certcc\/secu_certcc_15.htm<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;\uc774 \uae00\uc740 http:\/\/wiki.kldp.org\/KoreanDoc\/Ulimit-KLDP (\ubb38\ud0dc\uc900\ub2d8 \uc791\uc131, 2000\ub144 2\uc6d4 24\uc77c(\ubaa9))\uc744 \ud1a0\ub300\ub85c \ud544\uc790\uac00 \ub098\ub984 \ub0b4\uc6a9\uc744 \ucd94\uac00\ud558\uc5ec \uc791\uc131\ud558\ub294 \uae00\uc774\ub2e4. &nbsp;\ucd5c\ub300\ud55c \uc6d0\uae00\uc758 \ub0b4\uc6a9\uc744 \uadf8\ub300\ub85c \uc720\uc9c0\ud558\ub418, \uc774\ubbf8 10\ub144\uc774\ub780 \uc138\uc6d4\uc774 \ud758\ub800\uc73c\ubbc0\ub85c \ub9ce\uc740 \ubcc0\ud654\uac00 \uc788\uc5c8\ub2e4. \uc6cc\ub099 \uc911\uc694\ud558\uace0 \uc88b\uc740 \uae00\uc774\ub77c \uadf8\ub0e5 \uadf8\ub300\ub85c \uac00\uc838\ub2e4 \uc4f0\ub824\uace0 \ud588\uc73c\ub098, \ubb54\uac00 \uc544\uc26c\uc6b4 \ub290\ub08c\uc774 \ub4e4\uc5b4 &hellip; <a href=\"http:\/\/pchero21.com\/?p=918\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[25],"tags":[241,397,616,681],"_links":{"self":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/918"}],"collection":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=918"}],"version-history":[{"count":0,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/918\/revisions"}],"wp:attachment":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=918"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}