karszawa / sign-of-horns

ISUCON 7 Qual Repository :metal:
0 stars 1 forks source link

limits.confの設定 #21

Open totetotetotem opened 6 years ago

totetotetotem commented 6 years ago

なにをやるか

limits.confでアプリケーションが使用できるファイルディスクリプタの数を増やす

なぜやるか

アプリケーションが大量のリクエストを捌けるようにファイルディスクリプタの上限を上げとく

どうやるか

/etc/security/limits.conf に

isucon soft nofile 65535
isucon hard nofile 65535

を追加(ここのisuconはユーザー名)