- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- System Administration
- >
- 'ulimit -n' for normal user
-
- Forums
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- OEM Solutions
- Servers: The Right Compute
- Shifting to Software-Defined
- Telecom IQ
- Transforming IT
- Infrastructure Solutions German
- L’Avenir de l’IT
- IT e Trasformazione Digitale
- Enterprise Topics
- ИТ для нового стиля бизнеса
- Blogs
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Forums
-
Blogs
-
InformationEnglish
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-26-2009 03:33 PM
02-26-2009 03:33 PM
Re: 'ulimit -n' for normal user
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2019 Hewlett Packard Enterprise Development LP