• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

need to recieve 100 000 of packets per second

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm just curious, what hardware do you use?
 
Time is the best teacher, but unfortunately, it kills all of its students - Robin Williams. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic