I have a Centos 5.11 server, and a script I cron every 10 minutes
The script is simply this
#!/bin/sh
FNAME=/var/www/html/cached/conntrack_count
COUNT=`cat /proc/net/ip_conntrack | /usr/bin/wc -l`
echo $COUNT > $FNAME
I've ran this script for several years without issue (the output file is read periodically via http, by a cacti server and then plotted on a graph).
Last week I ran a full yum update, to mitigate the GHOST vulnerability.
But now it seems when this script runs, it causes concurrency issues for local sockets (particularly connections to memcached (locahost->localhost) often time out while the cat is running).
I wonder if anyone can explain why this is now an issue, when previously it was not?
Could it be that Linux is now placing some sort of lock on the file which its being accessed, which could prevent new connections being established?
This would seem unlikely but I've no other explanation
(Insufficient rep for comments)
Have you tried installing conntrack-tools and doing
instead? Does it still result in the same issue?