1. Find out what the current open file descriptor limit is.
$more /proc/sys/fs/file-max
753825
or
$sysctl -a | grep fs.file-max
fs.file-max = 753825
2. View how many open file descriptors are currently being used.
$more /proc/sys/fs/file-nr
4080 0 753825
3. Edit the kernel paramneter file /etc/sysctl.conf and add line “fs.file-max=[new value]” to it.
vi /etc/sysctl.conf
fs.file-max = 1000000
4. Apply the changes.
sysctl -p
fs.file-max = 331287
User Level FD Limits
The above procedure sets system-wide file descriptors (FD) limits. However, you can limit httpd (or any other users) user to specific limits by editing /etc/security/limits.conf file, enter:
# vi /etc/security/limits.conf
Set httpd user soft and hard limits as follows:
httpd soft nofile 4096
httpd hard nofile 10240
Save and close the file. To see limits, enter:
# su - httpd
$ ulimit -Hn
$ ulimit -Sn
http://www.cyberciti.biz/tips/linux-procfs-file-descriptors.html
分享到:
相关推荐
mysql默认是线程不安全的...[MDEV-9749] InnoDB receives 'Bad file descriptor' error, possibly related to feedback plugin Lost connection to MySQL server at 'handshake- reading initial communication packet'
在Java中File类可以用来新建文件和目录对象,而FileDescriptor类则被用来表示文件或目录的可操作性,接下来我们就来详解Java中的File文件类以及FileDescriptor文件描述类
FileDescriptor 是“文件描述符”。可以被用来表示开放文件、开放套接字等。接下来通过本文给大家分享Java FileDescriptor总结,感兴趣的朋友一起学习吧
主要给大家介绍了golang bad file descriptor问题的解决方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面来一起学习学习吧
couldn’t remove fs lock errno:9 Bad file descriptor 此时需要修改文件所有者 $ sudo mkdir -p /data/db/ $ sudo chown ‘USERNAME‘ /data/db 其中第一句是建立你的数据库文件夹,第二句修改该文件夹的所有者 ...
In Linux, everything is treated as a file, which includes hardware devices, directories, and sockets. Each open file is assigned a file descriptor. When a file is closed, its file descriptor is freed ...
import java.io.FileDescriptor; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android....
android linux 开发usb错误-device descriptor read/64, error -62解决方法总结
易我数据恢复 包含 注册机 注册码 数据恢复
a file for descript PS2 HID descriptor and its asocitation with the keycode
plugin-descriptor.properties
hid descriptor tool USB 描述符生成工具
Report Descriptor分析
usb 1-1: device descriptor read/64, error -62 usb 1-1: device descriptor read/64, error -62 usb 1-1: new full speed USB device using s3c2410-ohci and address 3 usb 1-1: device descriptor read/64, ...
present a novel 3D shape descriptor that uses a set of panoramic views of a 3D object which describe the position and orientation of the object’s surface in 3D space.
Robust 3D Tracking with Descriptor Fields 论文 。
git搭建详解与svn的深度比较,与vs2015的搭建,与GitLab的搭建使用。
很多的系统会话都是通过对文件的读写进行的,所以操作文件是很重要的,而操作文件的第一步就是要先打开文件,一个打开的文件通过一个文件描述符(file descriptor)的东西引用,在Linux系统中文件描述符是由一个整数...
This tool allows you to create, edit and validate HID Report Descriptors. The tool also supports a variety of output formats (.txt, .inc, .h, ... Read the included README.TXT file for more information.