I have a YAML file with nearly 2000 tests in it. When invoked from the command line, I run out of open file handles due to large amounts of sockets left open:
ERROR: gabbi-runner.input_/foo/bar/__test_l__
[Errno 24] Too many open files
By default a Linux user has 1024 file handles:
Inspecting the open file handles:
$ ls -l /proc/$(pgrep gabbi-run)/fd | awk '{print $NF}' | cut -f1 -d: | sort | uniq -c
1 0
2 /path/to/a/file.txt
1 /path/to/another/file.yaml
1021 socket
I have a YAML file with nearly 2000 tests in it. When invoked from the command line, I run out of open file handles due to large amounts of sockets left open:
By default a Linux user has 1024 file handles:
Inspecting the open file handles: