Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi! list, I want to increase the n

Status
Not open for further replies.

rgoud

IS-IT--Management
May 9, 2002
21
US
Hi! list,
I want to increase the nofiles to unlimited and stack size to unlimited. How do I increase these soft limits?
ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) 0
nofiles(descriptors) 64
vmemory(kbytes) unlimited

Thanks in advance
 
Have you read the man page for ulimit?

Greg.
 
Thank you very much
I can't increase file descriptors (number of files)
$ ulimit -n 800
ksh: ulimit: exceeds allowable limit

Looks like there is a hard limit on it, which system parameter can be set to bump up the had limit?
 
I can set stack size to unlimited manually from the command line, which configuration file need to be changed to make the soft limits permanent?
Thanks in advance
 
To see the nofiles hard limit:
Code:
$ ulimit -Hn
or
Code:
$ ulimit -Ha
to see all hard limits.

I think you can change the hard limit as root user:
Code:
# ulimit -Hn 800

I do not know what file to update to make the change permanent.
 
To set the soft and hard number of file limits, use the following lines in /etc/system:

set rlim_fd_cur=1024
set rlim_fd_max=1024

cur - soft limit, max - hard limit.

To set the stack limit, you can add the appropriate ulimit command to your .profile.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top