<?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 map services - Idle/open transactions in SQL causing logging issues in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-map-services-idle-open-transactions/m-p/1349601#M37679</link>
    <description>&lt;P&gt;We are still facing a similar issue in ArcGIS Server 10.9.1 with SDE towards a postgreSQL database. we deal with the problem by enhancing the number of allowed open connections but this could not be the valid way.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2023 12:31:49 GMT</pubDate>
    <dc:creator>RiccardoKlinger</dc:creator>
    <dc:date>2023-11-15T12:31:49Z</dc:date>
    <item>
      <title>ArcGIS Server map services - Idle/open transactions in SQL causing logging issues</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-map-services-idle-open-transactions/m-p/335283#M12877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're&amp;nbsp;using ArcGIS Server 10.3, with map services sourced from MSSQL Server 2008 and 2012 instances.&amp;nbsp;We have several map services created from non-spatial x/y data using x/y event layers in ArcGIS. They work fairly well, and we've had them in place for over a year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently, we've encountered a scenario where our transactions logs on multiple instances were growing beyond disk capacity; however, we were unable to free-up space due to open transactions initiated by ArcSDE. This is a problem... but, after killing the sleeping spids related to the map services, we were able to shrink the transaction logs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are questioning why the map services are leaving open/idle transactions, though, it sounds like a developers decision on the&amp;nbsp;part of Esri.&amp;nbsp;The&amp;nbsp;question has been raised before on Stack Exchange:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/82235/why-is-arcmap-leaving-connections-idle-in-transaction"&gt;https://gis.stackexchange.com/questions/82235/why-is-arcmap-leaving-connections-idle-in-transaction&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This concerns us a bit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt; &lt;SPAN style="text-align: left; color: #242729; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgba(248, 248, 248, 0.6); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;It's probably an artifact of their data provider object model, and a developer decision to start a transaction as part of setting up the connection (perhaps because they use binary cursors, which require a transaction for even reading? that's something the detailed statement log could tell you). They could probably re-work it to not do that, but you'll have to do some complaining.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #242729; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgba(248, 248, 248, 0.6); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #242729; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgba(248, 248, 248, 0.6); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #242729; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgba(248, 248, 248, 0.6); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;SPAN style="margin: 0px; padding: 0px; border: 0px currentColor; text-align: left; color: #242729; text-transform: none; line-height: inherit; text-indent: 0px; letter-spacing: normal; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; vertical-align: baseline; white-space: normal; box-sizing: inherit; orphans: 2; widows: 2; font-stretch: inherit; background-color: rgba(248, 248, 248, 0.6); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; font-variant-numeric: inherit; font-variant-east-asian: inherit;"&gt;A look at the SQL in the PostgreSQL logs shows that they are, as you suggest, using binary cursors. But they're declared&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://www.postgresql.org/docs/9.1/static/sql-declare.html#SQL-DECLARE-NOTES" rel="nofollow noreferrer" style="font: inherit; margin: 0px; padding: 0px; border: 0px currentColor; color: #358daa; text-decoration: none; vertical-align: baseline; cursor: pointer; box-sizing: inherit; font-size-adjust: inherit; font-stretch: inherit;"&gt;&lt;CODE style="margin: 0px; padding: 1px 5px; border: 0px currentColor; line-height: inherit; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; vertical-align: baseline; white-space: normal; box-sizing: inherit; font-stretch: inherit; background-color: #eff0f1;"&gt;WITH HOLD&lt;/CODE&gt;&lt;/A&gt;, so a transaction wrapper isn't strictly necessary. Regardless you're right: we'd have to do a lot of complaining for something that I can't prove (yet) is the cause of any problems.&lt;/SPAN&gt;&lt;SPAN style="text-align: left; color: #242729; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgba(248, 248, 248, 0.6); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else encountered issues with ArcSDE keeping transactions open/idle, and if so, how did you mitigate? Maybe Esri can chime-in... is this something you're looking to address?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 15:03:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-map-services-idle-open-transactions/m-p/335283#M12877</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2018-02-15T15:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server map services - Idle/open transactions in SQL causing logging issues</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-map-services-idle-open-transactions/m-p/335284#M12878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding a few more groups: &lt;A href="https://community.esri.com/groups/geodatabase?sr=search&amp;amp;searchId=803f1232-2d78-40fe-add9-0918c458b9b4&amp;amp;searchIndex=0"&gt;https://community.esri.com/groups/geodatabase?sr=search&amp;amp;searchId=803f1232-2d78-40fe-add9-0918c458b9b4&amp;amp;searchIndex=0&lt;/A&gt;‌ &lt;A href="https://community.esri.com/groups/enterprise-architect?sr=search&amp;amp;searchId=9636dfdc-f393-4641-ad49-4258e668727e&amp;amp;searchIndex=3"&gt;https://community.esri.com/groups/enterprise-architect?sr=search&amp;amp;searchId=9636dfdc-f393-4641-ad49-4258e668727e&amp;amp;searchIndex=3&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 15:11:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-map-services-idle-open-transactions/m-p/335284#M12878</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2018-02-15T15:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server map services - Idle/open transactions in SQL causing logging issues</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-map-services-idle-open-transactions/m-p/335285#M12879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something else to add... we're noticing ArcGIS Server Manager isn't recycling the services after 24 hours (which is the setting in Manager). For instance, there are open spids from 2/13 for one of our services set to recycle every 24 hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The spids dropped-off after I stopped/started in Admin, so I should be able to script this, but I'm curious why the setting in Manager wouldn't be honored. Additionally, we're noticing some orphaned spids... SQL is pretty good at cleaning itself, so it sounds like there's an application level issue with ArcGIS related to a leak or maybe something missed in error handling.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 20:24:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-map-services-idle-open-transactions/m-p/335285#M12879</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2018-02-15T20:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server map services - Idle/open transactions in SQL causing logging issues</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-map-services-idle-open-transactions/m-p/335286#M12880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I opened a ticket with Esri... there are some suggestions that perms adjustments may help. Furthermore, there have been cases of AV interfering with a Server kill process regarding services recycling. As it happens, I am actually in process of upgrading from 10.3 to 10.6, and Esri believes this may actually resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll keep this thread posted with my findings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 21:15:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-map-services-idle-open-transactions/m-p/335286#M12880</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2018-02-28T21:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server map services - Idle/open transactions in SQL causing logging issues</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-map-services-idle-open-transactions/m-p/1349601#M37679</link>
      <description>&lt;P&gt;We are still facing a similar issue in ArcGIS Server 10.9.1 with SDE towards a postgreSQL database. we deal with the problem by enhancing the number of allowed open connections but this could not be the valid way.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 12:31:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-map-services-idle-open-transactions/m-p/1349601#M37679</guid>
      <dc:creator>RiccardoKlinger</dc:creator>
      <dc:date>2023-11-15T12:31:49Z</dc:date>
    </item>
  </channel>
</rss>

