<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: TCP :  No buffer space available in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/TCP-No-buffer-space-available/m-p/64094#M880</link>
    <description>&lt;P&gt;We had the same problem with Splunk itself filling up the TCP buffer. To fix, this we had to go into the process local to the machine Splunk was on and increase the memory allocation. Sadly, it didn't help a whole lot because the process is 32-bit and we could only allocate 1.5GB...&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2013 22:07:01 GMT</pubDate>
    <dc:creator>ShaneNewman</dc:creator>
    <dc:date>2013-10-29T22:07:01Z</dc:date>
    <item>
      <title>TCP :  No buffer space available</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/TCP-No-buffer-space-available/m-p/64093#M879</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Here is my problem. I've a java application using Spring Integration to send data to Splunk (with TCP).&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf :&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcp://1234]
connection_host = dns
source = TracerSource
sourcetype = TracerSourceType
queueSize=1GB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;spring-context.xml&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
&amp;lt; int-ip:tcp-connection-factory id="client"
    type="client" host="${tcp.host.name}" port="${tcp.port}" using-nio="true" using-direct-buffers="true" single-use="true" so-timeout="1000" /&amp;gt;

&amp;lt; int-ip:tcp-outbound-channel-adapter 
    id="outboundClient" channel="jmsOutputChannel" connection-factory="client" /&amp;gt;
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Many times I've these error messages and the java application stops.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
TcpSendingMessageHandler [ERROR] Error creating SocketWriter
java.net.SocketException: No buffer space available (maximum connections reached?): connect
    at sun.nio.ch.Net.connect(Native Method)
...
DefaultMessageListenerContainer [WARN] Execution of JMS message listener failed, and no ErrorHandler has been set.
org.springframework.integration.mapping.MessageMappingException: Failed to create connection

...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Do you have any explanation ? What is the best solution/configuration to manage many messages ? (1000 msgs/min - size of each msg : 1Ko to 10Ko)&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2013 12:45:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/TCP-No-buffer-space-available/m-p/64093#M879</guid>
      <dc:creator>Srw12</dc:creator>
      <dc:date>2013-09-16T12:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: TCP :  No buffer space available</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/TCP-No-buffer-space-available/m-p/64094#M880</link>
      <description>&lt;P&gt;We had the same problem with Splunk itself filling up the TCP buffer. To fix, this we had to go into the process local to the machine Splunk was on and increase the memory allocation. Sadly, it didn't help a whole lot because the process is 32-bit and we could only allocate 1.5GB...&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2013 22:07:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/TCP-No-buffer-space-available/m-p/64094#M880</guid>
      <dc:creator>ShaneNewman</dc:creator>
      <dc:date>2013-10-29T22:07:01Z</dc:date>
    </item>
  </channel>
</rss>

