1 | initial version |
The reason why my tshark program collapsed is that I was using SFTP protocol to download some big file on the server and the bandwidth at that time was quite high. Tshark program with default buffer size 2 MB could not keep so many packets thus it collapsed.
As for solution, I use the -B
argument just like Chuckc suggested above. Thanks for his suggestion again, it really helps me a lot!!!
Buffer size can be modified with -B
argument, In my case, I increase buffer size from the default 2 MB to 12 MB, and the command used is as follows:
shell
tshark -ni nflog:40 -B 12-w capturefile.pcap -b filesize:131072 -b files:120
2 | No.2 Revision |
The reason why my tshark program collapsed is that I was using SFTP protocol to download some big file on the server and the bandwidth at that time was quite high. Tshark program with default buffer size 2 MB could not keep so many packets thus it collapsed.
As for solution, I use the -B
argument just like Chuckc suggested above. Thanks for his suggestion again, it really helps me a lot!!!
Buffer size can be modified with -B
argument, In my case, I increase buffer size from the default 2 MB to 12 MB, and the command used is as follows:
shell
tshark -ni nflog:40 -B
12-w 12 -w capturefile.pcap -b filesize:131072 -b files:120