Today my DBA reported that the server she was working on was spitting out “too many open files” errors and no new processes could be started.
This is a common problem with DB servers with heavy transactions. In my environment there are 6 DB instances running on the server. No quite the optimized setup I would say.
The fix was to increase the total file descriptors kernel parameter count in the /etc/sysctl.conf file. I doubled my limit from 8192 to 16384.
The walk through,
1. Find out what the current open file descriptor limit is.
~# more /proc/sys/fs/file-max
~# 8192
or
~# sysctl -a | grep fs.file-max
~# fs.file-max = 8192
2. View how many open file descriptors are currently being used.
~# more /proc/sys/fs/file-nr
~# 8191
3. View how many files are open. The number returned might defer as 1 file descriptor can have multiple open files attached to it.
~# lsof | wc -l
~# 10325
4. 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 = 331287
5. Apply the changes.
~# sysctl -p
~# fs.file-max = 331287
Problem fixed.
相关推荐
There aren't many good resources out there for writing Python descriptors, and extremely few books. This is a sad state of affairs, as it makes it difficult for Python developers to get a really good ...
- File descriptors are used to represent open files. This section covers the management of file descriptors and how they are allocated and freed. 4. **File Structure Management (Section 3.4):** - ...
在Linux操作系统中,进程间通信(IPC:InterProcess Communication)是不同进程之间交换信息和协调任务执行的关键机制。由于进程是系统资源分配的基本单位,它们各自拥有独立的地址空间,因此需要特定的方式来实现...
当一个进程(如一个应用程序或服务)尝试同时打开的文件描述符(file descriptors)数量超过了操作系统的默认限制,系统就会返回这个错误。文件描述符是操作系统用于标识和跟踪打开文件的数字标识,它们是内核管理的...
XML Schemas在Java EE中扮演着至关重要的角色,特别是在部署描述符(Deployment Descriptors)的定义和验证方面。本文将深入探讨Java EE的XML Schemas,特别是针对给定的文件`web-jsptaglibrary_2_1.xsd`。 Java EE...
1. **文件句柄(File Descriptors)**:在Linux中,文件句柄是系统为每一个打开的文件分配的一个数字标识,用来表示该文件在当前进程中的状态。无论是文件、目录、网络套接字(sockets)、设备文件等,一旦被打开,...
Jenkins安装过程,每个运维都需要的系统。应为几乎所有的团队都需要它。
embed: force close of file descriptors (#6208) webapp: add info log when WebApp does not start within active-wait-time starts (#6197) hessian: added default blacklist classes deploy: added alarm for ...
Linux VFS(Virtual File System,虚拟文件系统)是Linux内核中的一个重要组成部分,它为不同的文件系统提供了一个统一的接口,使得操作系统可以透明地访问各种类型的文件系统,无论是本地硬盘上的EXT4、XFS,还是...
are described in this paper have undergone extensive evaluation and development during the past two years. Evaluation criteria include effectiveness of the descriptors in similarity retrieval, as well...
Playing with file descriptors and redirection 19 Arrays and associative arrays 25 Visiting aliases 27 Grabbing information about terminal 29 Getting, setting dates, and delays 30 Debugging the script ...
Python’s simplicity lets you become productive quickly, but this often means you aren’t using everything it has to offer. With this hands-on guide, you’ll learn how to write effective, idiomatic ...
In this paper, we explore methods for learning local image descriptors from training data. We describe a set of building blocks for constructing descriptors which can be combined together and jointly ...
"descriptors"这个开源库专注于一个特定的JavaScript特性:对象描述符。对象描述符是JavaScript中用于定义对象属性的重要机制,它允许我们精细控制对象属性的行为。在本文中,我们将深入探讨对象描述符、如何获取...
标题中的“Advanced_Descriptors-3.0.4-cp36-cp36m-manylinux1_x86_64.whl.zip”指的是一个压缩包文件,它包含了名为“Advanced Descriptors”的Python软件包的特定版本。这个版本是3.0.4,适用于Python 3.6解释器...
max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536] max number of threads [1024] for user [lishang] likely too low, increase to at least [2048] ``` **...
标题 "advanced_descriptors-3.0.9-cp39-cp39-manylinux1_i686.whl.zip" 暗示我们正在处理一个Python软件包的压缩文件,这个包是`advanced_descriptors`的3.0.9版本。`cp39`代表它是为Python 3.9编译的,`manylinux1...
标题中的“Advanced_Descriptors-2.2.1-cp36-cp36m-manylinux1_i686.whl.zip”是一个软件包文件,它主要用于Python编程环境。这个文件的组成部分提供了关于软件包的详细信息: - **Advanced_Descriptors**:这是...
标题 "Advanced_Descriptors-1.0.4-cp34-cp34m-manylinux1_x86_64.whl.zip" 提供了一个关于Python软件包的信息,它是一个名为"Advanced Descriptors"的库的特定版本。这个版本是1.0.4,而且它已经打包成了一个适用于...
标题 "Advanced_Descriptors-0.5.5-cp35-none-win32.whl.zip" 暗示了这是一个Python库的压缩包,名为Advanced Descriptors,版本为0.5.5,它针对Python 3.5编译,并且适用于Windows 32位操作系统。".whl" 文件是...