I created a java server that listens on a specific port for udp packets, it creates a new thread with a new datagramsocket bound to that port when a packet is received, so if it gets 10 packets on that port it creates 10 threads with new sockets bound to the same port.
The problem is that although new threads and sockets are created, only the first socket created receives all the traffic, the other threads/sockets keep listening without getting any traffic.
That single thread alone doesnt keep up with the traffic and some packets are lost
Im testing this with address localhost and jmeter udp plugin