title: Java IOException: No buffer space available while sending UDP packets on Linux
body: <p>I have a third party component which tries to send too many UDP messages to too many separate addresses in a certain situation. This is a burst which happens when the software is started and the situation is temporary. I'm actually not sure is it the plain amount of the messages or the fact that each of them go to a separate IP address. </p>
  
  <p>Anyway, changing the underlying protocol or the problematic component is not an option, so I'm looking for a workaround. The StackTrace looks like this:</p>
  
  <pre><code>java.io.IOException: No buffer space available
      at java.net.PlainDatagramSocketImpl.send(Native Method)
      at java.net.DatagramSocket.send(DatagramSocket.java:612)
  </code></pre>
  
  <p>This issue occurs (at least) with Java versions 1.6.0_13 and 1.6.0_10 and Linux versions Ubuntu 9.04 and RHEL 4.6.</p>
  
  <p>Are there any Java system properties or Linux configuration tweaks which might help?</p>