I mounted an external drive as a shared resource and made it available on my local network using AFP. That machine and another machine use it for Time Machine backups. Eventually the machine where the drive is mounted starts acting strangely: almost no processes can be started. The console shows errors "kernel: file: table is full". Running lsof to see what's going on shows over 10,000 lines like this
AppleFile 5243 root *995u IPv4 0xc4ee40a52bd9f69 0t0 TCP 10.0.30.101:afpovertcp->10.0.30.106:61582 (CLOSED)
I've already boosted the max files per process and system based on this answer and I don't think raising the limit further is the real solution. Is the idea of sharing a single drive between the two machines for Time Machine just a bad idea, or do you think this is possible to fix or a better configuration to be running. Both machines are on 10.9.5.
It wraps off the line above, but all the "bad" files are marked "CLOSED". Rebooting does not remove these files. Is there something I need to do to clear that up?