I have this cronjob that has the following two lines:
/usr/sbin/tcpdump port 8086 -i any -l -e -n | /usr/bin/perl /root/netbps.pl > /root/bw/8086.txt
/usr/sbin/tcpdump port 8085 -i any -l -e -n | /usr/bin/perl /root/netbps.pl > /root/bw/8085.txt
It passes the data to a perl script that prints bandwidth usage on these two ports and then feeds it to a timeseries db later in the script. Only the first line starts and completes as it should, the second one takes forever. It does not matter if I change their order, the second one will take nearly a minute or more, with a huge amount of packets dropped by the kernel. The first one to be executed will always run flawlessly.
The cron log shows nothing, and running the lines manually in the terminal does not change anything, and no errors are reported.
Thank you.