- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How can you tell your current File-Max?
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
Discussions
Discussions
Forums
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
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
тАО08-23-2006 06:05 PM
тАО08-23-2006 06:05 PM
How do you tell what's your file-max setting? I've been doing this;
ulimit -a user
And I look for open files
Is ulimit and file-max are the same thing?
The default value of open files is 1024. No matter what I tried, the new value doesn't stick and goes right back in the default value 1024.
Any ideas?
Thanks,
Jorge
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2006 08:15 PM
тАО08-23-2006 08:15 PM
Solutionulimit displays soft limits that can be changed in the user profile. Some products will object but you can go with unlimited if you wish.
There is also a hard limit in the kernel, which is stored in /proc virtual filesystems.
To avoid limitations, you should change both.
Summary: Not the same thing.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2006 10:53 PM
тАО08-23-2006 10:53 PM
Re: How can you tell your current File-Max?
If you are running linux, then the limits can be set in the file ---
/etc/security/limits.conf
and also you will have to use "pam_limits" module.
--
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2006 11:21 PM
тАО08-23-2006 11:21 PM
Re: How can you tell your current File-Max?
as SEP has suggested...the values should not be the same..
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2006 11:22 PM
тАО08-23-2006 11:22 PM
Re: How can you tell your current File-Max?
as SEP has suggested...the values should not be the same..
And the file /etc/security/limits.conf will itself provide with enough information.
--
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2006 11:23 PM
тАО08-23-2006 11:23 PM
Re: How can you tell your current File-Max?
as SEP has suggested...the values should not be the same..
And the file /etc/security/limits.conf will itself provide you with enough information for setting up these options.
--
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2006 02:10 AM
тАО08-24-2006 02:10 AM
Re: How can you tell your current File-Max?
I tried setting that up from the /etc/security/limits.conf -- After I made the changes to the limits.conf, I also manually made changes to the user, and here's the command that I used:
su - user
ulimit -n 65536 user
As soon as I exit and log back in and display the ulimit of that user, I still see the open files set at 1024.
The setting doesn't stick.
Where else should I look for?
Thanks,
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2006 02:42 AM
тАО08-24-2006 02:42 AM
Re: How can you tell your current File-Max?
1) system-wide limits. You can see/set them under /proc or using sysctl (/etc/sysctl.conf) interface
2) user limits - "ulimit" and /etc/security/limits.conf.
Under limits.conf you can set soft and hard limits. Regular user can increase his limit up to his hard limit.
In RH linux, for example, default for max open files 1) limit is 1024 and for 2) is 50978.
You, probably, want to increase "per user" limit - so edit /etc/security/limits.conf and ask use to relogin - you'll see new value in "ulimit".
Rgds,
Vitaly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-25-2006 12:59 AM
тАО08-25-2006 12:59 AM
Re: How can you tell your current File-Max?
rac2node1 ## grep -e '^[^#]' /etc/security/limits.conf
... oracle soft nproc 4000
... oracle hard nproc 20000
... oracle soft nofile 4000
... oracle hard nofile 63000
When you log in, the settings are set to the soft limit first.
*Then*, you can bump the particular limit up (max= hard limit), which may be and usually is done in the .{bash}_profile.
NOTE that a NON-root user can only bump it *up* once, but that he can bump it down as often as desired.
::::
rac2node1 ## su - oracle
rac2node1 $$ ulimit -a
... ...
... open files (-n) 4000
... max user processes (-u) 4000
rac2node1 $$ ulimit -n 63001
... -bash: ulimit: open files: cannot modify limit: Operation not permitted
rac2node1 $$ ulimit -n 63000
rac2node1 $$ ulimit -n
... 63000
rac2node1 $ ulimit -n 8888
rac2node1 $$ ulimit -n
... open files (-n) 8888
rac2node1 $$ ulimit -n 9999
... -bash: ulimit: open files: cannot modify limit: Operation not permitted
rac2node1 $$ ulimit -n 7777
rac2node1 $$ ulimit -n 6666
rac2node1 $$ ulimit -n
... 6666
hth
bv