Tag Archives: ulimit

关于linux中ulimit中的max user processes

今天在邮件列表里有人问,为什么一个多线程的python程序运行后,再运行shell程序会出现: -bash: fork: retry: Resource temporarily unavailable ulimit -a显示对max user processes进行了限制,然而从字面上看这是对进程数的限制啊…… 翻手册最后在man 2 setrlimit中找到: RLIMIT_NPROC The maximum number of processes (or, more precisely on Linux, threads) that can be created for the real user ID of the calling process. Upon … Continue reading

Posted in 运维 | Tagged , , | 1 Comment