Ulimit setting


 
Thread Tools Search this Thread
Operating Systems AIX Ulimit setting
# 1  
Old 04-17-2014
Ulimit setting

Hi,

Our application team is asking me to set ulimit parameter in my AIX 6.1 TL8 box.

Some of them i set already.

Code:
address space limit (kbytes) (-M)       unlimited
locks (-L)                              unlimited
locked address space (kbytes) (-l)      64
nice (-e)                               0
rtprio (-r)                             0
socket buffer size (bytes) (-b)         4096
threads (-T)                            not supported

I have not found any ulimit setting for above mentioned parameter in AIX. I have googled and found these settings can be done it on Linux. Can we do this settings on AIX ? Please suggest.

Thanks

Moderator's Comments:
Mod Comment Code tags please.

Last edited by zaxxon; 04-23-2014 at 03:24 AM.. Reason: code tags
# 2  
Old 04-17-2014
If you are asked to set ulimit for a user you set the below parameters
Code:
 username@server> ulimit -a
time(seconds)        <numeric value 'or' unlimited>
file(blocks)         <numeric value 'or' unlimited>
data(kbytes)         <numeric value 'or' unlimited>
stack(kbytes)        <numeric value 'or' unlimited>
memory(kbytes)       <numeric value 'or' unlimited>
coredump(blocks)     <numeric value 'or' unlimited>
nofiles(descriptors) <numeric value 'or' unlimited>
threads(per process) <numeric value 'or' unlimited>
processes(per user)  <numeric value 'or' unlimited>

You can either use chuser command or modify /etc/security/limits file for that user.

There are some default values on those parameters, using -1 means it is unlimited.

Hope this helps.
# 3  
Old 04-22-2014
Quote:
Originally Posted by sunnybee
Our application team is asking me to set ulimit parameter in my AIX 6.1 TL8 box.

I have not found any ulimit setting for above mentioned parameter in AIX. I have googled and found these settings can be done it on Linux. Can we do this settings on AIX ? Please suggest.
You can see the ulimit settings for every user when you issue "lsuser <username>" as root. "lsuser" displays the attributes of a user in the form of a space-separated list "property=value". Modify any such value with the "chuser" command (see "man chuser" for details).

You can also do it a different way: edit the file "/etc/security/limits". It contains the process limits for users (file size, memory, number of processes, ...) in form of stanzas. A value of "-1" means "unlimited", like in "lsuser/chuser". If no stanza for a certain user is there it uses the values of the "default" stanza, otherwise the values stated in its own stanza block.

"chuser" and "adduser" both modify this file just the same, it makes no difference if you edit it with a text editor.

I hope this helps.

bakunin
# 4  
Old 04-22-2014
Hi,

Alternatively, you can use the smit interface if you are in need of a simpler way of setting the "ulimits" - this has the added advantage of upgrading the database files as well where it's required.

Regards

Gull04
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Help with setting coredumpsize using ulimit

A coredump is being created by one of our applications on Solaris server and occupying entire space on the mount, thereby bringing down the application. While we try to identify the root cause, i tried to limit to limit the size of the core dump. Executed below command in shell and also updated... (2 Replies)
Discussion started by: kesani
2 Replies

2. Solaris

Is there a difference between setting a user as nologin and setting it as a role?

Trying to figure out the best method of security for oracle user accounts. In Solaris 10 they are set as regular users but have nologin set forcing the dev's to login as themselves and then su to the oracle users. In Solaris11 we have the option of making it a role because RBAC is enabled but... (1 Reply)
Discussion started by: os2mac
1 Replies

3. Red Hat

setting ulimit for a user

The root user runs the following ulimit -a | grep open and gets a result of open files (-n) 8162 A user runs the same command and gets a result of open files (-n) 2500 How can you set the ulimit of the user to... (2 Replies)
Discussion started by: jsanders
2 Replies

4. Solaris

ulimit

Hello, could you help me please? I write in command line: "ulimit 500" -> i've set the max size of 512-bytes blocks that i can write in one file. But when after it i use ulimit.3c in my program: "ulimit(UL_GETFSIZE);" the result turns out 1000. Why is it so? They always differ so that one is... (2 Replies)
Discussion started by: Zhenya_
2 Replies

5. UNIX for Advanced & Expert Users

Help with Ulimit Setting

All, Our SA is considering setting the max open files from 2048 to 30K. This sounds like a drastic change. Does anybody have an idea of the negative impacts of increasing the open files too high? Would like to know if this change could negatively impact our system. What test should we run to... (2 Replies)
Discussion started by: wcrober
2 Replies

6. Solaris

ulimit

how do i check the ulimit set on my server.. ca i know whats the command ?? thanks in advance .. (5 Replies)
Discussion started by: expert
5 Replies

7. UNIX for Advanced & Expert Users

Setting Ulimit problem

I changed the standard Ulimit sometime back. But when I change it back, the setting does not get updated. How do I make the change permanent Waitstejo (7 Replies)
Discussion started by: Waitstejo
7 Replies

8. UNIX for Advanced & Expert Users

setting ulimit -n with a value more than 1024000

I would like to set the maximum number or open files per process to be greater than 1024000 (for specific application scalability purpose). I am using RHEL 5.3/Ext4. %sysctl fs.file-max fs.file-max = 164766821 I also have added the folloing to /etc/security/limits.conf * ... (7 Replies)
Discussion started by: Hsianglung Wu
7 Replies

9. Shell Programming and Scripting

Setting Ulimit

How do i set ulimit for user (4 Replies)
Discussion started by: Krrishv
4 Replies

10. Solaris

ulimit setting problem on Solaris

How do you make the ulimit values permanent for a user? by default, the root login has the following ulimits: # ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) unlimited stack(kbytes) 8192 coredump(blocks) unlimited nofiles(descriptors) 1024 memory(kbytes)... (2 Replies)
Discussion started by: kiem
2 Replies
Login or Register to Ask a Question