Argument list too long

Published by

Posted on June 16, 2014

Argument list too long when running several commands via the shell. I was able to get around this by running the ulimit command.

Default limits for my virtual environment

ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 7935
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 7935
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

If I increase the stack size I am able to get around the error
ulimit -s 60000

After running the command i set the stack back to the default for system stability

ulimit -s 8192