How to Change the Value for ARG_MAX in Oracle Linux
in Linux
Applies to:
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Goal
In Oracle Linux, the POSIX compliant ARG_MAX parameter determines the possible length in bytes of a single command executed by a given user. How can it be changed?
Solution
The minimum value of ARG_MAX in Oracle Linux is the value defined in /usr/include/linux/limits.h:
$ define ARG_MAX 131072 /* # bytes of args + environ for exec() */
However, this is usually not the default value for ARG_MAX for a user.
In Oracle Linux, the default value for ARG_MAX for a user is 256x the stack value for the active user session.
Tagged:
0