- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- 'ulimit -n' for normal user
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
тАО02-26-2009 10:02 AM
тАО02-26-2009 10:02 AM
'ulimit -n' for normal user
We've got some developers here that would like to increase the default 1024 file handle limit per process. I can change root's setting, but not the user's:
# ulimit -n 2048
# ulimit -n
2048
$ ulimit -n 2048
-bash: ulimit: open files: cannot modify limit: Operation not permitted
I had read somewhere that this just isn't possible with normal users, but wanted to run it by you guys before giving that answer to the developers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 10:21 AM
тАО02-26-2009 10:21 AM
Re: 'ulimit -n' for normal user
My results:
open files: cannot modify limit: Operation not permitted
It might be possible however to use sudo to give the developers this power.
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
тАО02-26-2009 10:47 AM
тАО02-26-2009 10:47 AM
Re: 'ulimit -n' for normal user
Its not going to have a significant impact to set the number higher for all users in /etc/profile
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
тАО02-26-2009 12:30 PM
тАО02-26-2009 12:30 PM
Re: 'ulimit -n' for normal user
Edit "/etc/security/limits.conf", and add the below lines:
tomcat2 hard nofile 8192
tomcat2 soft nofile 8192
Where "tomcat2" is the user that needs the increase, hard/soft are the limit types to set (you'll want both), nofile means the number of files that can be open at a time, and '8192' is the actual number/limit.
NOTE: You must start a new session as tomcat2 to make this effective, it will not take effect on existing sessions.
Hopefully this helps someone along the way. Seems this problem is common with Java devs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 03:33 PM
тАО02-26-2009 03:33 PM