我在error: can't start new thread
尝试启动python线程时得到threading.py:745
。但是,我有足够的系统资源,所以我不确定问题是什么。有什么见解吗?
看起来整个系统有大约4000个线程,远低于系统限制:
$ # Current Number of Threads:
$ ps -fLA|wc -l
3996
$ # Max system threads
$ cat /proc/sys/kernel/threads-max
261270
我有足够的磁盘空间:
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 13M 3.2G 1% /run
/dev/sda1 20G 8.5G 11G 46% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
与RAM一样,从顶部开始:
top - 01:10:29 up 1:01, 1 user, load average: 0.42, 0.80, 1.05
Tasks: 213 total, 2 running, 211 sleeping, 0 stopped, 0 zombie
%Cpu(s): 12.8 us, 2.1 sy, 0.0 ni, 84.5 id, 0.0 wa, 0.0 hi, 0.6 si, 0.0 st
MiB Mem : 32683.09+total, 14809.33+free, 13929.25+used, 3944.500
会导致此问题的任何其他资源?