解决办法:GLib-ERROR **: Creating pipes for GWakeup: Too many open files

简介: 解决办法:GLib-ERROR **: Creating pipes for GWakeup: Too many open files

程序运行出现错误:

GLib-ERROR **: Creating pipes for GWakeup: Too many open files

网上一查,原因是:当前进程创建的线程个数,超过Ubuntu 限制的每个进程可创建线程个数导致.

推荐的解决办法如下:

# 先看看当前设置情况?
ulimit -a
# 再改一下设置:
ulimit -n 4096

可是,这思路不对啊.明明是程序问题,扩大数量是能解决一时问题,时间一长照样嗝屁.说到底还是程序问题.可是打开了哪些文件?使用这个办法:

lsof -p 进程id > openfiles.log
目录
相关文章
|
机器学习/深度学习 Linux
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
227 0
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
|
缓存 JavaScript
Error: EPERM: operation not permitted, mkdir ‘C:\Program Files\nodejs‘TypeError: Cannot read proper
Error: EPERM: operation not permitted, mkdir ‘C:\Program Files\nodejs‘TypeError: Cannot read proper
152 0
|
7月前
|
缓存 Ubuntu Linux
error while loading shared libraries: libxcb-icccm.so.4: cannot open shared object file: No such file or directory 问题如何处理
【5月更文挑战第16天】error while loading shared libraries: libxcb-icccm.so.4: cannot open shared object file: No such file or directory 问题如何处理
975 0
问题提解决:ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host=‘files.pythonhos
问题提解决:ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host=‘files.pythonhos
|
NoSQL MongoDB
mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No s
mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No s
651 0
|
并行计算 TensorFlow 算法框架/工具
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
314 0
|
Ubuntu
解决办法:GLib-ERROR **: Creating pipes for GWakeup: Too many open files
解决办法:GLib-ERROR **: Creating pipes for GWakeup: Too many open files
176 0
fatal error: gnu/stubs-n64_hard_2008.h: No such file or directory
fatal error: gnu/stubs-n64_hard_2008.h: No such file or directory
134 0
fatal error: X11/extensions/Xvlib.h/Xdbe.h: No such file or directory
fatal error: X11/extensions/Xvlib.h/Xdbe.h: No such file or directory
144 0
|
并行计算
ImportError: libcudart.so.9.2: cannot open shared object file: No such file or directory
ImportError: libcudart.so.9.2: cannot open shared object file: No such file or directory
158 0