Originally posted by obj
View Post
Quick bug report: the feeder exhausts available file descriptors after a while and stops feeding data properly. The website stats show the feeder "online" but no data available.
Logs have periodic complaints with errno 24 (24 is EMFILE - "too many open files"):
The process file descriptors look like this:
This is using "fr24feed_arm-rpi_242". The process has been up for a bit over a month at this point (but it might have stopped feeding a while back - I don't check it too often)
Logs have periodic complaints with errno 24 (24 is EMFILE - "too many open files"):
Code:
[n]pinging the server [i]sent 37 planes in 1 packets [i]sent 37 planes in 1 packets [i]sent 36 planes in 1 packets [i]sent 34 planes in 1 packets [e]Socket is not valid, errno: 24 [i]sent 36 planes in 1 packets [e]Socket is not valid, errno: 24
Code:
pi@rpi ~ $ sudo lsof -p 2129 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME fr24feed_ 2129 adsb cwd DIR 179,2 4096 2 / fr24feed_ 2129 adsb rtd DIR 179,2 4096 2 / fr24feed_ 2129 adsb txt REG 179,2 791538 144509 /usr/local/adsb/bin/fr24feed_arm-rpi_242 fr24feed_ 2129 adsb mem REG 179,2 71528 7920 /lib/arm-linux-gnueabihf/libresolv-2.13.so fr24feed_ 2129 adsb mem REG 179,2 18040 5520 /lib/arm-linux-gnueabihf/libnss_dns-2.13.so fr24feed_ 2129 adsb mem REG 179,2 42692 7880 /lib/arm-linux-gnueabihf/libnss_files-2.13.so fr24feed_ 2129 adsb mem REG 179,2 1200240 7900 /lib/arm-linux-gnueabihf/libc-2.13.so fr24feed_ 2129 adsb mem REG 179,2 130448 1885 /lib/arm-linux-gnueabihf/libgcc_s.so.1 fr24feed_ 2129 adsb mem REG 179,2 427628 7431 /lib/arm-linux-gnueabihf/libm-2.13.so fr24feed_ 2129 adsb mem REG 179,2 800736 1249 /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.19 fr24feed_ 2129 adsb mem REG 179,2 87792 5181 /lib/arm-linux-gnueabihf/libz.so.1.2.7 fr24feed_ 2129 adsb mem REG 179,2 116462 7878 /lib/arm-linux-gnueabihf/libpthread-2.13.so fr24feed_ 2129 adsb mem REG 179,2 10170 25003 /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so fr24feed_ 2129 adsb mem REG 179,2 126236 7434 /lib/arm-linux-gnueabihf/ld-2.13.so fr24feed_ 2129 adsb 0r CHR 1,3 0t0 21 /dev/null fr24feed_ 2129 adsb 1w REG 179,2 35906793 271294 /var/log/adsb/fr24feed.log fr24feed_ 2129 adsb 2w REG 179,2 35906793 271294 /var/log/adsb/fr24feed.log fr24feed_ 2129 adsb 3u IPv4 360960925 0t0 UDP *:41058 fr24feed_ 2129 adsb 4u IPv4 264769977 0t0 TCP localhost:47243->localhost:30003 (ESTABLISHED) fr24feed_ 2129 adsb 5r FIFO 0,9 0t0 305654561 pipe fr24feed_ 2129 adsb 6r FIFO 0,9 0t0 269894173 pipe fr24feed_ 2129 adsb 7r FIFO 0,9 0t0 256578387 pipe fr24feed_ 2129 adsb 8r FIFO 0,9 0t0 45787475 pipe [... lots more ...] fr24feed_ 2129 adsb 1021r FIFO 0,9 0t0 305610871 pipe fr24feed_ 2129 adsb 1022r FIFO 0,9 0t0 305654149 pipe fr24feed_ 2129 adsb 1023w FIFO 0,9 0t0 359848218 pipe
Comment