Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

need to recieve 100 000 of packets per second  RSS feed

 
jhon Reader
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
friends , here i am in trouble with the problem
that i have to recieve lacks of upd message coming from different sources
every second .The best i could manage is 3800 traps per second .
The problem i feel is some of the packets get dropped because ,no of packet in the queue in DatagramSocket,
I need to increase the size of queue how should i do that
bye
 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by jhon Reader:
Hi
friends , here i am in trouble with the problem
that i have to recieve lacks of upd message coming from different sources
every second .The best i could manage is 3800 traps per second .
The problem i feel is some of the packets get dropped because ,no of packet in the queue in DatagramSocket,
I need to increase the size of queue how should i do that
bye



Hi Jhon,
You could check outhis sun article on changing from DatagramSocket to DatagramChannel - being non-blocking might suit your purpose:
http://access1.sun.com/techarticles/CharBasedIO/CharBasedIO.html
Ed
 
Catalin Merfu
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm just curious, what hardware do you use?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!