๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’ปTech/๐ŸงLinux

[๋ฆฌ๋ˆ…์Šค] ulimit ์„ค์ •ํ•˜์—ฌ ์„ฑ๋Šฅ ์ œํ•œ ํ•ด์ œ

by _viper_ 2023. 8. 21.
๋ฐ˜์‘ํ˜•

open file๊ณผ process ์ƒ์„ฑ ์ œํ•œ ๊ด€๋ จ ์˜ˆ์™ธ ๋ฐœ์ƒ์„ ๋ฐฉ์ง€ํ•˜๊ธฐ ์œ„ํ•ด ์„ค์ •ํ•ด์ค๋‹ˆ๋‹ค.

โ—พ limit values ์ˆ˜์ • 

vi /etc/security/limits.conf
------------------------------
*       -       nofile  65536
*       -       nproc   65536
------------------------------

 (- : soft, hard ๋™์ผํ•˜๊ฒŒ ์ ์šฉ)

 

โ—พ ulimit ์กฐํšŒ ๋ช…๋ น์–ด

ulimit -a
-----------------------------------------
open files          (-n) 65536
max user processes  (-u) 65536