I want to capture packets from a crowded network and classify it by user request. I use java and jpcap for capturing packets. now I'm using array threads for each req packet. it's realy slow and there is many conflicts among threads. what's the best data structure for this purpose?
after that, I'm saving packets (req/response) into a file, that is very slow for such a heavy work. what should I do for saving my datas?
thank you