Skip to content
Home » AIX » How AIX Raise ARG/ENV Limit

How AIX Raise ARG/ENV Limit

To avoid errors like "Argument list too long", we have to raise the limit of a process environment and argument list.

Let's see current setting of NCARGS.

[root@primary01 /]# lsattr -El sys0 -a ncargs
ncargs 256 ARG/ENV list size in 4K byte blocks True

The limit 256 sized in 4k blocks seems smaller than needed, let's raise the number to 1024 in 4k blocks.

[root@primary01 /]# chdev -l sys0 -a ncargs=1024
sys0 changed

Let's check again.

[root@primary01 /]# lsattr -El sys0 -a ncargs
ncargs 1024 ARG/ENV list size in 4K byte blocks True

We have changed it.

Leave a Reply

Your email address will not be published. Required fields are marked *