<?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: arcgis server connection pooling in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-connection-pooling/m-p/195080#M7713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Reporting my findings - might be useful to someone else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact it seems impossible to reduce the connections used by arcgis server, or arcgis desktop for that matter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Connections are always kept open with a transaction. So PgBouncer cannot optimize these connections. Why ESRI chooses to keep a transaction is unknown to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, arcgis server opens 2 connections to PgSQL for every mapservice. So if you have 20 mapservices you'll have 40 connections open in PgSQL. Only when a service is shutdown due to innactivity timeout do you get its connections closed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This does not seem scalable at all to me. Maybe things will change in 10.2??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jun 2013 08:07:40 GMT</pubDate>
    <dc:creator>DuarteCarreira</dc:creator>
    <dc:date>2013-06-28T08:07:40Z</dc:date>
    <item>
      <title>arcgis server connection pooling</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-connection-pooling/m-p/195079#M7712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking at reducing number of connections from ArcGIS Server 10 services to a PostgreSQL 8.4 geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm seeing 2 connections per map service. These connections appear as "&amp;lt;IDLE&amp;gt; in transaction", ie they are not doing anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is how to reduce the number of connections. Is there a configuration setting I can use?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, has anyone used PgBouncer with ArcGIS Server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Duarte&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 13:58:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-connection-pooling/m-p/195079#M7712</guid>
      <dc:creator>DuarteCarreira</dc:creator>
      <dc:date>2013-04-15T13:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis server connection pooling</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-connection-pooling/m-p/195080#M7713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Reporting my findings - might be useful to someone else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact it seems impossible to reduce the connections used by arcgis server, or arcgis desktop for that matter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Connections are always kept open with a transaction. So PgBouncer cannot optimize these connections. Why ESRI chooses to keep a transaction is unknown to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, arcgis server opens 2 connections to PgSQL for every mapservice. So if you have 20 mapservices you'll have 40 connections open in PgSQL. Only when a service is shutdown due to innactivity timeout do you get its connections closed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This does not seem scalable at all to me. Maybe things will change in 10.2??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 08:07:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-connection-pooling/m-p/195080#M7713</guid>
      <dc:creator>DuarteCarreira</dc:creator>
      <dc:date>2013-06-28T08:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis server connection pooling</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-connection-pooling/m-p/195081#M7714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better answers here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/174196"&gt;Map service connection to PostgreSQL DB shown as "Idle in Transaction" - Normal?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems 10.4 changed to IDLE connections instead. But pooling is not a supported scenario since it could in some scenarios create unexpected results - worse case data corruption.&lt;/P&gt;&lt;P&gt;Still, read-only connections could be a good candidate for pooling, even though it's not supported. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 17:15:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-connection-pooling/m-p/195081#M7714</guid>
      <dc:creator>DuarteCarreira</dc:creator>
      <dc:date>2016-04-18T17:15:08Z</dc:date>
    </item>
  </channel>
</rss>

