问题描述
我在我的华硕AC68盒子里运行了一个python 2.7.10脚本。 我只是从我的脚本中调用speedtest-cli.py(speedtest.net py脚本)。
它重新启动它之前工作,现在每次运行它我都有这个错误:
Testing download speed.......Exception in thread Thread-1:
Traceback (most recent call last):
File "/opt/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/opt/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/jffs/scripts/LaMetric/speedtestcli.py", line 268, in producer
thread.start()
File "/opt/lib/python2.7/threading.py", line 745, in start
_start_new_thread(self.__bootstrap, ())
error: can't start new thread
为了清楚起见,我的华硕运行的是Merlin,这是Asuswrt的增强版本 - 所有最近华硕路由器都使用的固件。
代码可以在这里找到: :
1楼
关于ulimit的一些测试(感谢Google)和设置
ulimit -s 256
解决了......
任何人都可以确认可能有任何副作用?