<?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: Map service connection to PostgreSQL DB shown as &amp;quot;Idle in Transaction&amp;quot; - Normal? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101500#M3918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all. Yes this is potentially very good news. I am planning to test how now pgbouncer can be used with arcgis 10.4, desktop and server. This has the potential to drastically reduce the number of connections to more sane amounts. On the other hand, it may have significant impact on performance... thus the need to test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcgis is very sensible to lan bandwidth. you can easilly see this if you put side-by-side a 100 Mbps and a 1Gbps machines with arcmap opening the same map. Don't even need to time it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Mar 2016 17:18:01 GMT</pubDate>
    <dc:creator>DuarteCarreira</dc:creator>
    <dc:date>2016-03-28T17:18:01Z</dc:date>
    <item>
      <title>Map service connection to PostgreSQL DB shown as "Idle in Transaction" - Normal?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101492#M3910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a dynamic map service based on an mxd map document containing a Query Layer from a spatially (PostGIS) enabled PostgreSQL table (uses geometry data type for shape column). The service works fine both in ArcGIS clients and JavaScript browser applications through REST, no problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our PostgreSQL DBA contacted me however and told me that the service was leaving open and idle queries in the database which he says is not acceptable. He sent me a report as an example, see below.&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="text-align: left; padding-left: 60px;"&gt;&lt;SPAN style="background-color: white; color: #3334ca; font-size: 12pt; font-family: Calibri,Arial,Helvetica,sans-serif;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 13.32px;"&gt;POSTGRES_TXN_IDLE WARNING: DB "postgres" (host:******) longest idle in&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN style="font-size: 13.32px;"&gt;txn: 56384s (15 hours 39 minutes 44 seconds) PID:32278&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN style="font-size: 13.32px;"&gt;database:****** username:********* address:***.****.***&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN style="font-size: 13.32px;"&gt;port:**** query:BEGIN&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P&gt;My understanding is that this is normal behavior for ArcGIS server map service connections but I would like to verify if this is the correct understanding or not (we have AGS 10.3.1 and PostgreSQL 9.3.x). So is this normal behavior or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only viable solution that I can think of to meet the DBAs demand is to set the minimum number of service instances to zero so that idle services (and their connections to the DB) are closed after x minutes of inactivity. This however would result in a bit of a performance hit for the first user that comes along, and no instances are running, and he has to wait for at least one instance of the service to start up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE 20160321: &lt;/STRONG&gt;Found a post by another user which seems to confirm this behavior on PostgreSQL connections. He had some interesting findings and our DBA seems to agree with him that this is not a good way to make connections to a database. Here is the post, check it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/72139"&gt;arcgis server connection pooling&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 13:27:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101492#M3910</guid>
      <dc:creator>BogiBjornsson</dc:creator>
      <dc:date>2016-03-18T13:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Map service connection to PostgreSQL DB shown as "Idle in Transaction" - Normal?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101493#M3911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/space/2053"&gt;Enterprise GIS&lt;/A&gt;​ &lt;A href="https://community.esri.com/group/1680"&gt;Geodatabase&lt;/A&gt;​&lt;A href="https://community.esri.com/space/2050"&gt;Managing Data&lt;/A&gt;​ &lt;A href="https://community.esri.com/space/2100"&gt;ArcGIS for Server&lt;/A&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 13:54:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101493#M3911</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2016-03-18T13:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Map service connection to PostgreSQL DB shown as "Idle in Transaction" - Normal?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101494#M3912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add to &lt;A href="https://community.esri.com/migrated-users/31350"&gt;Asrujit SenGupta&lt;/A&gt;​ 's post...&lt;/P&gt;&lt;P&gt;pick a place ... &lt;A href="https://community.esri.com/docs/DOC-1544"&gt;GeoNet Community Structure&lt;/A&gt; &lt;/P&gt;&lt;P&gt;GIS is too broad and your question seems targeted.&amp;nbsp; &lt;/P&gt;&lt;P&gt;options:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It will probably languish here in the GIS Place, alone, unnoticed, when it could find a home where the question would be warmly welcomed&amp;nbsp; with people eager to answer it.&lt;/LI&gt;&lt;LI&gt;move it&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 14:15:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101494#M3912</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-03-18T14:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Map service connection to PostgreSQL DB shown as "Idle in Transaction" - Normal?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101495#M3913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moved, thanks for the tip! Only problem is I can only move it to one place so it's very hard to choose which one!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 15:29:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101495#M3913</guid>
      <dc:creator>BogiBjornsson</dc:creator>
      <dc:date>2016-03-18T15:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Map service connection to PostgreSQL DB shown as "Idle in Transaction" - Normal?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101496#M3914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but...there is a Share option that appears when you have finished posting.. top right by the thread... now don't share tooo much... pick carefully...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 15:35:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101496#M3914</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-03-18T15:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Map service connection to PostgreSQL DB shown as "Idle in Transaction" - Normal?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101497#M3915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aha ... didn't realize that was what it was for, thought it was only for sharing with individual users. Live and learn &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 10:48:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101497#M3915</guid>
      <dc:creator>BogiBjornsson</dc:creator>
      <dc:date>2016-03-21T10:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Map service connection to PostgreSQL DB shown as "Idle in Transaction" - Normal?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101498#M3916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/10938"&gt;Bogi Bjornsson&lt;/A&gt;​ There were changes made in ArcGIS 10.4 to address the concerns that you raise here. Beginning with ArcGIS 10.4, connections to PostgreSQL databases no longer stay in an open and idle transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Philip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS for Server Product Manager&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 17:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101498#M3916</guid>
      <dc:creator>pheede-esri</dc:creator>
      <dc:date>2016-03-24T17:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Map service connection to PostgreSQL DB shown as "Idle in Transaction" - Normal?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101499#M3917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, thanks for the feedback Philip. My DBA will be happy to hear that &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 11:03:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101499#M3917</guid>
      <dc:creator>BogiBjornsson</dc:creator>
      <dc:date>2016-03-28T11:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Map service connection to PostgreSQL DB shown as "Idle in Transaction" - Normal?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101500#M3918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all. Yes this is potentially very good news. I am planning to test how now pgbouncer can be used with arcgis 10.4, desktop and server. This has the potential to drastically reduce the number of connections to more sane amounts. On the other hand, it may have significant impact on performance... thus the need to test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcgis is very sensible to lan bandwidth. you can easilly see this if you put side-by-side a 100 Mbps and a 1Gbps machines with arcmap opening the same map. Don't even need to time it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 17:18:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101500#M3918</guid>
      <dc:creator>DuarteCarreira</dc:creator>
      <dc:date>2016-03-28T17:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Map service connection to PostgreSQL DB shown as "Idle in Transaction" - Normal?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101501#M3919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Duarte,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pgBouncer is not explicitly supported even after this change. Under some circumstances we tie specific geodatabase (sde) connection settings to a specific database connection. Using pgBouncer can violate the built-in assumptions that ArcGIS sometimes makes about the connection state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 21:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101501#M3919</guid>
      <dc:creator>pheede-esri</dc:creator>
      <dc:date>2016-03-29T21:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Map service connection to PostgreSQL DB shown as "Idle in Transaction" - Normal?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101502#M3920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/2878"&gt;Philip Heede&lt;/A&gt;​ thanks for the heads up. Can you elaborate a bit more? I have made a simple test with desktop 10.4 and pgbouncer, opening an mxd with layers from 2 different logins. Connections stay at only 1 per user, which is half of 10.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't started on benchmarking this setup yet. But I like what I see so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your cautionary warning got me worried. What kind of circumstances do you mean? Maybe with any luck we do not work in those scenarios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:02:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101502#M3920</guid>
      <dc:creator>DuarteCarreira</dc:creator>
      <dc:date>2016-04-12T17:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Map service connection to PostgreSQL DB shown as "Idle in Transaction" - Normal?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101503#M3921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We don't have a full inventory of cases where state is maintained, getting that is part of the work that is ongoing. Primarily we expect this to be part of more complex types of transactions such as editing of geodatabase functionality like geometric networks, street networks, parcels, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, that should not be interpreted as the only place where this could occur and thus we cannot officially support setups using pgBouncer at this time. Any such use would be at your own risk and outside of the official scope of support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Apr 2016 17:20:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101503#M3921</guid>
      <dc:creator>pheede-esri</dc:creator>
      <dc:date>2016-04-17T17:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Map service connection to PostgreSQL DB shown as "Idle in Transaction" - Normal?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101504#M3922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Philip thanks again for your insights. I'm glad to hear that esri is looking into this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had thought about things that could be broken with connection pooling. I tested 2 PCs connecting with the same user, and making large selections - everything worked fine AFAIK. But the doubt was in my head now...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing that would be a very big help and may be easy to support is read-only connections.&lt;/P&gt;&lt;P&gt;Some 80% of our connections to the gdb are read-only. At least 40 connections are read-only arcgis server services. These only seat there eating away our server's memory. So just reducing these would make a big difference.&lt;/P&gt;&lt;P&gt;Same can be said of desktop users. Only a few have editing privileges. Big majority only reads data, although ofcourse writing stuff like big selection sets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are your thoughts on this? I'm not looking for a certified answer from esri, just for a good discussion on this issue. I understand things move at their own pace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Apr 2016 20:20:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101504#M3922</guid>
      <dc:creator>DuarteCarreira</dc:creator>
      <dc:date>2016-04-17T20:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Map service connection to PostgreSQL DB shown as "Idle in Transaction" - Normal?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101505#M3923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read-only connections should be fairly safe to experiment with, I can't envision any bad things that could happen on the order of e.g. data corruption. Again though: at your own risk, not supported, and so forth. Some types of 'read-only' operations do involve making changes in the geodatabase log tables, as you've mentioned things that involve large selection sets is a good example, so it's not out of the realm of possibility that could encounter issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 16:39:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-connection-to-postgresql-db-shown-as/m-p/101505#M3923</guid>
      <dc:creator>pheede-esri</dc:creator>
      <dc:date>2016-04-18T16:39:35Z</dc:date>
    </item>
  </channel>
</rss>

