- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: ulimt question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
09-13-2006 03:00 AM
09-13-2006 03:00 AM
ulimt question
fs.file-max = 65536.
However, when I log in as root or any other user, it is set to the default value of 1024. Why is that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 03:22 AM
09-13-2006 03:22 AM
Re: ulimt question
ulimit -n number
In /etc/sysctl.conf file your define kernel tunnings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 03:23 AM
09-13-2006 03:23 AM
Re: ulimt question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 03:57 AM
09-13-2006 03:57 AM
Re: ulimt question
BTW, default file-max is 102043 on RHEL4. Can you get the output of
cat /proc/sys/fs/file-max
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 04:14 AM
09-13-2006 04:14 AM
Re: ulimt question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 05:36 AM
09-13-2006 05:36 AM
Re: ulimt question
Just a quick clarification, Max-File and Ulimit are two different parameters.
Max-file:
file-max is a system level maximum number of file handles that the system will allocate. The cumulative number across all jobs cannot exceed that.
Ulimit:
ulimit sets the limit for the process itself. So for a telnet session, ulimit can be used to set the soft limit up or down for a particular resource for that telnet session and its child processes. (And ulimit can set the hard limit down, but not up).
The only paramter that you should worry about is the limits.conf and add the user that you'd like to have the ulimit increased (/etc/security/limits.conf).
Once you done that, restart the sshd service. Have the user log back in and do this command ulimit -a
Let me know if you need more details on this.
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 06:32 AM
09-13-2006 06:32 AM
Re: ulimt question
I did exactly as you specified... updated the /etc/security/limits.conf as follows:
usr hard nofile 65536
recycled the sshd daemon, logged out, logged back in as 'usr', issued ulimit -a, and open files still has the value of 1024.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2006 01:31 AM
09-15-2006 01:31 AM
Re: ulimt question
What's your setting for max-file?
What's your limits.conf file look like now?
Please give me these details and I will try to help you.
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2006 06:40 AM
09-20-2006 06:40 AM
Re: ulimt question
You should look through "man sshd_config" to see that you are getting the behavior you want from sshd and PAM after making this change.