Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to increase the maximum number of openable file descriptors in Linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you the "Linux how to increase the maximum number of openable file descriptors", the content is easy to understand, well-organized, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to increase the maximum number of openable file descriptors in Linux" this article.

An error was encountered while installing the Oracle Grid Infrastructure check constraint, which roughly means that the maximum number of file descriptors that can currently be opened is 1024, while the requirement is 65536.

So execute ulimit-a under gird user, showing that the maximum number of files that can be opened is 1024, which is the default; execute ulimit-n 65536 does not allow modification, go to root to execute ulimit-n 65536, execute ulimit-a shows 65536, execution under grid user is still 1024. At that time, I thought of executing it in the way of sudo, giving all permissions to gird users, and executing ulimit-n 65536 still reported an error.

Later, I remembered that in the configuration / etc/profile file, there was a ulimit-n 65536 command for oracle, as follows:

If [$USER = "oracle"]; then

If [$SHELL = "/ bin/ksh"]; then

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Umask 022

Fi

After adding grid users, source / etc/profile

If [$USER = "oracle"] | | [$USER = "grid"]; then

If [$SHELL = "/ bin/ksh"]; then

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Umask 022

Fi

Execute ulimit-an in grid is still 1024. Later check the installation steps and find that you forgot to add the grid user to / etc/security/limits. Just add the following:

Grid soft nproc 2047

Grid hard nproc 16384

Grid soft nofile 1024

Grid hard nofile 65536

It seems to be a matter of scope, increasing the file descriptor.

The above is all the contents of the article "how to increase the maximum number of file descriptors that can be opened in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report