Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to Change the Value for ARG_MAX in Oracle 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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!