I'm experiencing tcp/ip timeouts between 2 hosts and i don't know if it's the operating system or the application that has the problem. I want to run tcpdump to try and find out why they are happening. i can limit the tcpdump by destination address and also port number but is there a way to limit the size of the file that it's written to to say 1GB and less - i want to cron it and leave it running and i don't want it to fill up the filesystem.
tcpdump -w <file> port <portno> dst <ip>
Does anyone know the best flags to use to get a more readable output from tcpdump?