我是靠谱客的博主 含糊火,这篇文章主要介绍terminate called after throwing an instance of 'std::system_error' What(): Resource temporarily...terminate called after throwing an instance of ‘std::system_error’ What(): Resource temporarily unavaible,现在分享给大家,希望可以做个参考。
terminate called after throwing an instance of ‘std::system_error’ What(): Resource temporarily unavaible
- 原因:进程的线程数超出系统规定的最大线程数
linux系统对用户可启动的最大线程数有限制,
ulimit -a 查看系统配置
一旦线程出超出系统规定返回就不能再创建线程,此时将出现terminate called after throwing an instance of ‘std::system_error’ What(): Resource temporarily unavaible打印。 - 排查方向:
- 排查线程的创建及释放释放及时。
查看当前进程的线程数:
cat /proc/${pid}/status
其中Thread提供进程当前线程数。
如果线程数再逐渐增加,则需要检查线程创建,释放逻辑时否存在之创建未及时释放可能
- 排查线程的创建及释放释放及时。
最后
以上就是含糊火最近收集整理的关于terminate called after throwing an instance of 'std::system_error' What(): Resource temporarily...terminate called after throwing an instance of ‘std::system_error’ What(): Resource temporarily unavaible的全部内容,更多相关terminate内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复