How to change the value of the parameter ARG_MAX ?
Issue
- A new server based on an existing server is provisioned both of which are running same OS version. It is noticed that for the new build the
xargs --show-limits
values are much lower than the older build.
New Server: (server2)
bin $ xargs --show-limits
Your environment variables take up 1733 bytes
POSIX lower and upper limits on argument length: 2048, 129024
Maximum length of command we could actually use: 127291
Size of command buffer we are actually using: 127291
Old Server: (server1)
$ xargs --show-limits
Your environment variables take up 209452 bytes
POSIX lower and upper limits on argument length: 2048, 522240
Maximum length of command we could actually use: 312788
Size of command buffer we are actually using: 312788
Environment
- Red Hat Enterprise Linux 8.0.
- Red Hat Enterprise Linux 7.x.
- Red Hat Enterprise Linux 6.x.
- Red Hat Enterprise Linux 5.x.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.