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.
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:
thank you for you to make me learn more,thank you∩0∩ ........................................
文章很棒~感謝!!..................................................
你可以從外表的美來評論一朵花或一隻蝴蝶,但你不能這樣來評論一個人........................................
憂能傷身,保重哦!.............................................
不要讓挫敗把你擺平,再給自己一個機會,從新再出發.............................................
Post a Comment
<< Home