- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- open files
Operating System - Linux
1752782
Members
5891
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2008 11:40 PM
тАО11-20-2008 11:40 PM
last week , I use the command ulimit -n to set the open files to 10240 in my RH server , but todoy I found that this setting changed to 1024 , I wonder why this file will be changed to a lower value ? 10240 is the default value ?
how can I know what is my default value ? will the value be auto adjusted if the system detect the open files changes ?
how can I know what is my default value ? will the value be auto adjusted if the system detect the open files changes ?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2008 04:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2008 07:45 AM
тАО11-23-2008 07:45 AM
Re: open files
thx reply ,
so how can I know the current default setting ?
so how can I know the current default setting ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2008 11:00 AM
тАО11-26-2008 11:00 AM
Re: open files
The kernel's initial default value is 1024.
The ulimit 'command' is actually a shell builtin that uses setrlimit to set both the soft and hard limit for the shell process and its descendants. Only root can increase the hard limit. The new limit set by the shell don't affect processes that are not descendants of the shell. The new limits do not become any kind of default for the system.
The /etc/security/limits.conf settings are implemented by the pam_limits PAM module at login time. They are as close as you can get to increasing system default values.
You can see the current limits for all processes using
sudo grep 'Max open' /proc/*/limits
The ulimit 'command' is actually a shell builtin that uses setrlimit to set both the soft and hard limit for the shell process and its descendants. Only root can increase the hard limit. The new limit set by the shell don't affect processes that are not descendants of the shell. The new limits do not become any kind of default for the system.
The /etc/security/limits.conf settings are implemented by the pam_limits PAM module at login time. They are as close as you can get to increasing system default values.
You can see the current limits for all processes using
sudo grep 'Max open' /proc/*/limits
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP