Operating System - HP-UX
1748272 Members
4070 Online
108760 Solutions
New Discussion юеВ

Re: How to change the ulimit for all users

 
Harikrishnan L
Frequent Advisor

How to change the ulimit for all users

Hi,

How to change the ulimit values in HP-UX 11.31i for single user and all the default users.

Thanks in Advance,
Hari.
7 REPLIES 7
P Muralidhar Kini
Honored Contributor

Re: How to change the ulimit for all users

AnthonySN
Respected Contributor

Re: How to change the ulimit for all users

you can put your ulimit command in /etc/profile or in individual user profiles to make these changes permanent.
Bhadresh
Trusted Contributor

Re: How to change the ulimit for all users

You can put your ulimit commands in user's $HOME/.profile directory or add them to /etc/profile to make permanent. If specific user(s) need specific ulimit values, place the appropriate tests in /etc/profile.

Hope this helps.

Regards,
Bhadresh
Ishwar_1
Frequent Advisor

Re: How to change the ulimit for all users

Hi,

U can check the ulimit value by:-

# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 262144
stack(kbytes) 98252
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048

If you want to change any parmeters you can use intial character like.

time(seconds) #ulimit -t limtvalue
file(blocks) #ulimit -f limtvalue
data(kbytes) #ulimit -d limtvalue
stack(kbytes) #ulimit -s limtvalue
memory(kbytes) #ulimit -m limtvalue
coredump(blocks)#ulimit -c limtvalue
nofiles(descriptors)#ulimit -n limtvalue

e.g
#ulimit -c 2048
It will limit the coredump size to 2MB

For Each Single User.

Regards
Ishwar VenuGopal



Taifur
Respected Contributor

Re: How to change the ulimit for all users

Hi,


Check below link,
http://docs.hp.com/en/B9106-90009/ulimit.2.html

Cheers//
Taifur
Dennis Handly
Acclaimed Contributor

Re: How to change the ulimit for all users

Do you want to increase or decrease the values?
The defaults start with the various kernel parms.
SoorajCleris
Honored Contributor

Re: How to change the ulimit for all users

Hi,

Remember, using switches with ulimit command depends on the shell.

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie