GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ulimit problem
Operating System - HP-UX
1846606
Members
1857
Online
110256
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
Forums
Discussions
Discussions
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
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
06-13-2002 01:45 AM
06-13-2002 01:45 AM
Hi,
I am trying to change nofiles value through "ulimit -n" but it's giving me an error. I am using posix shell [/usr/bin/sh]. The error and the commands tried are as below :-
$ env | grep -i shell
SHELL=/usr/bin/sh
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 262144
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 512
$ ulimit -n 1025
su: ulimit: The specified value exceeds the user's allowable limit.
I am trying to change nofiles value through "ulimit -n" but it's giving me an error. I am using posix shell [/usr/bin/sh]. The error and the commands tried are as below :-
$ env | grep -i shell
SHELL=/usr/bin/sh
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 262144
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 512
$ ulimit -n 1025
su: ulimit: The specified value exceeds the user's allowable limit.
Obstacles exist to challenge you to keep going. Not to quit.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 02:07 AM
06-13-2002 02:07 AM
Solution
Hi,
ulimit has 2 kinds of limits: soft and hard.
A user can only increase its soft limit up to the hard limit.
Use ulimit -Ha
ulimit -Sa
If, for the nofiles, your hard limit < 1025, then that is te reason for the error.
For your particular case, increasing the kernel parameter maxfiles to 2048 (this is the maximum), should make the command ulimit -n 1025 work.
Hope this helps,
Rik
ulimit has 2 kinds of limits: soft and hard.
A user can only increase its soft limit up to the hard limit.
Use ulimit -Ha
ulimit -Sa
If, for the nofiles, your hard limit < 1025, then that is te reason for the error.
For your particular case, increasing the kernel parameter maxfiles to 2048 (this is the maximum), should make the command ulimit -n 1025 work.
Hope this helps,
Rik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 02:15 AM
06-13-2002 02:15 AM
Re: ulimit problem
Hi,
A hard limit had been imposed in the system globally by the kernel paramter maxssiz which
defines the maximum stack size. That is the one which prevents you do that ulimit task.
regards,
U.Sivakumar
A hard limit had been imposed in the system globally by the kernel paramter maxssiz which
defines the maximum stack size. That is the one which prevents you do that ulimit task.
regards,
U.Sivakumar
Innovations are made when conventions are broken
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.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP