Thursday, April 22, 2010

Increase limit on RLIMIT_NOFILE or other resources

Use setrlimit() to change the soft limit. But there is a hard limit which the setrlimit can not increase beyond.

In order to change the hard limit, you need to change the setting in following file
/etc/security/limits.conf

The syntax of the lines is as follows:

[domain] [type] [item] [value]

Use man limits.conf to see detailed explanation.

You can use command 'lsof -p [pid]' to see files opened by process pid.

5 comments:

JustinaT said...

thank you for you to make me learn more,thank you∩0∩ ........................................

財榮 said...

文章很棒~感謝!!..................................................

淑婷RubinB said...

你可以從外表的美來評論一朵花或一隻蝴蝶,但你不能這樣來評論一個人........................................

Br1207yantScipio1 said...

憂能傷身,保重哦!.............................................

Bob0104byWas0104ham said...

不要讓挫敗把你擺平,再給自己一個機會,從新再出發.............................................