How to find values of Soft Resource Limit Stack and set it (on AIX)

While installing SAP on AIX you get a Condition not met error for Soft Resource Limit Stack Size.

You now want to set the Soft Resource Limit Stack to unlimited.

You can see the current values by typing:

ulimit -S -a to view soft limits
and
ulimit -H -a to view hard limits

Example output:
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) unlimited
memory(kbytes) 32768
coredump(blocks) 2097151
nofiles(descriptors) 2000

To set the value:

You can either modify the file /etc/security/limits (as root)

Procedure:

vi /etc/security/limits
Add lines:
stack_hard = -1
stack_soft = -1

for the users you want the limits set/unset for.

or follow the smitty interactive procedure.

Type smitty user
Select Change / Show Characteristics of a User
Type User NAME
Press Enter

Set
Soft STACK size [-1]
and
Hard STACK size [-1]

-1 = unlimited

OK and exit.

Restart prerequisites run or continue SAP Install

Comments are closed.