
Systems Programming
Fix 'Too many open files' (EMFILE) by Raising RLIMIT_NOFILE
Fix the Too many open files error on Linux. Read RLIMIT_NOFILE, raise the soft limit in C, set systemd LimitNOFILE, and find the leak that caused it.
6 min read
Tag
4 posts

Fix the Too many open files error on Linux. Read RLIMIT_NOFILE, raise the soft limit in C, set systemd LimitNOFILE, and find the leak that caused it.

Decode the eBPF verifier message invalid access to packet in an XDP program, read the off, size and r values, and add the missing data_end bounds check.

Diagnose an S0C4 in a COBOL program on z/OS: read the reason code, find the statement, and check subscripts, linkage parameters and storage with SSRANGE.

Find and fix an S0C7 in COBOL: read the CEE3207S message, locate the statement, check packed and zoned fields in the dump, and validate input with IS NUMERIC.