<?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: ConnectionError: Too many connections in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/connectionerror-too-many-connections/m-p/273040#M96808</link>
    <description>&lt;P&gt;How are you collecting the IOC's? What output do you use, standard feed, syslog, CEF?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like too many clients are created for redis(memory storage), so probably a new connection is created is made for each IOC.&lt;/P&gt;&lt;P&gt;I am not sure why this happens. According to the documentation of redis(&lt;A href="https://redis.io/topics/clients" target="_blank"&gt;https://redis.io/topics/clients&lt;/A&gt;) the maxclients can be set using maxclients directive in /etc/redis.conf. Redis checks with the OS how many file descriptors can be openened. The maximum number of filedescriptors can be found using 'ulimit -Sn' (soft limit) and 'ulimit -Hn' (hard limit).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am guessing that either the maxclients is very low (around 150) or the OS limits are very low. Can you post the outputs of 'ulimit -Sn' and 'ulimit -Hn' together with the value of maxclients?&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2019 07:43:53 GMT</pubDate>
    <dc:creator>folmer</dc:creator>
    <dc:date>2019-06-26T07:43:53Z</dc:date>
    <item>
      <title>ConnectionError: Too many connections</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/connectionerror-too-many-connections/m-p/272232#M96807</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using outputs feeds from minemeld in my Firewall and I have seen the next:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If I try to retrieve an output with 142 or less indicators, it works. The Firewall shows the entries from minemeld output node.&lt;/LI&gt;&lt;LI&gt;If I try to retrieve 150 or more indicators from an minemeld output, it doesn't works. The entries in the Firewall are empty.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The logs in/opt/minemeld/log/minemeld-web.log show this:&lt;/P&gt;&lt;P&gt;**Traceback (most recent call last):&lt;BR /&gt;File "/opt/minemeld/engine/0.9.60/local/lib/python2.7/site-packages/minemeld/flask/events.py", line 28, in _retry_wrap&lt;BR /&gt;self._listen()&lt;BR /&gt;File "/opt/minemeld/engine/0.9.60/local/lib/python2.7/site-packages/minemeld/flask/events.py", line 37, in _listen&lt;BR /&gt;pubsub = self.SR.pubsub(ignore_subscribe_messages=True)&lt;BR /&gt;File "/opt/minemeld/engine/0.9.60/local/lib/python2.7/site-packages/redis/client.py", line 563, in pubsub&lt;BR /&gt;return PubSub(self.connection_pool, **kwargs)&lt;BR /&gt;File "/opt/minemeld/engine/0.9.60/local/lib/python2.7/site-packages/redis/client.py", line 2079, in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;init&lt;/STRONG&gt;&lt;BR /&gt;conn = connection_pool.get_connection('pubsub', shard_hint)&lt;BR /&gt;File "/opt/minemeld/engine/0.9.60/local/lib/python2.7/site-packages/redis/connection.py", line 897, in get_connection&lt;BR /&gt;connection = self.make_connection()&lt;BR /&gt;File "/opt/minemeld/engine/0.9.60/local/lib/python2.7/site-packages/redis/connection.py", line 904, in make_connection&lt;BR /&gt;raise ConnectionError("Too many connections")&lt;BR /&gt;ConnectionError: Too many connections&lt;BR /&gt;[2019-06-12 20:31:39 UTC] [12421] [ERROR] Exception in event listener&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/opt/minemeld/engine/0.9.60/local/lib/python2.7/site-packages/minemeld/flask/events.py", line 28, in _retry_wrap&lt;BR /&gt;self._listen()&lt;BR /&gt;File "/opt/minemeld/engine/0.9.60/local/lib/python2.7/site-packages/minemeld/flask/events.py", line 37, in _listen&lt;BR /&gt;pubsub = self.SR.pubsub(ignore_subscribe_messages=True)&lt;BR /&gt;File "/opt/minemeld/engine/0.9.60/local/lib/python2.7/site-packages/redis/client.py", line 563, in pubsub&lt;BR /&gt;return PubSub(self.connection_pool,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;kwargs)&lt;BR /&gt;File "/opt/minemeld/engine/0.9.60/local/lib/python2.7/site-packages/redis/client.py", line 2079, in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;init&lt;BR /&gt;conn = connection_pool.get_connection('pubsub', shard_hint)&lt;BR /&gt;File "/opt/minemeld/engine/0.9.60/local/lib/python2.7/site-packages/redis/connection.py", line 897, in get_connection&lt;BR /&gt;connection = self.make_connection()&lt;BR /&gt;File "/opt/minemeld/engine/0.9.60/local/lib/python2.7/site-packages/redis/connection.py", line 904, in make_connection&lt;BR /&gt;raise ConnectionError("Too many connections")&lt;BR /&gt;ConnectionError: Too many connections&lt;BR /&gt;[2019-06-12 20:31:39 UTC] [12421] [ERROR] Exception in event listener&lt;BR /&gt;Traceback (most recent call last):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could someone help me?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 18:11:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/connectionerror-too-many-connections/m-p/272232#M96807</guid>
      <dc:creator>Mtorre</dc:creator>
      <dc:date>2019-06-21T18:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: ConnectionError: Too many connections</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/connectionerror-too-many-connections/m-p/273040#M96808</link>
      <description>&lt;P&gt;How are you collecting the IOC's? What output do you use, standard feed, syslog, CEF?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like too many clients are created for redis(memory storage), so probably a new connection is created is made for each IOC.&lt;/P&gt;&lt;P&gt;I am not sure why this happens. According to the documentation of redis(&lt;A href="https://redis.io/topics/clients" target="_blank"&gt;https://redis.io/topics/clients&lt;/A&gt;) the maxclients can be set using maxclients directive in /etc/redis.conf. Redis checks with the OS how many file descriptors can be openened. The maximum number of filedescriptors can be found using 'ulimit -Sn' (soft limit) and 'ulimit -Hn' (hard limit).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am guessing that either the maxclients is very low (around 150) or the OS limits are very low. Can you post the outputs of 'ulimit -Sn' and 'ulimit -Hn' together with the value of maxclients?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 07:43:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/connectionerror-too-many-connections/m-p/273040#M96808</guid>
      <dc:creator>folmer</dc:creator>
      <dc:date>2019-06-26T07:43:53Z</dc:date>
    </item>
  </channel>
</rss>

