<?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 SDE: deadlock detected in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/sde-deadlock-detected/m-p/283658#M16287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Software: ArcSDE 10.0 SP3 via PostgreSQL 8.3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Platform: Windows 2008 R2, 64-bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an application that is running in a distributed computing environment (i.e., a private cloud). The application makes a copy of a feature class (3 possible datasets in this case), and then runs numerous analyses based on additional parameters for a specific job. I have approximately 200 jobs that run concurrently and that are trying to access the same feature class. I have configured giomgr.def to handle session-based settings (because distributed computing relies on LDAP and in this case all jobs owned by single user; this is appropriate method according to ESRI documentation) and I increased the connections environment setting to 1000 concurrent connections (both found in giomgr.defs).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem: I am getting an error when these programs try to create a copy of the file and it seems there might be a setting that I could change to mitigate the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Underlying DBMS error [ERROR:&amp;nbsp; deadlock detected&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DETAIL:&amp;nbsp; Process 2000 waits for ExclusiveLock on tuple (9,16) of relation 734480 of database 733778; blocked by process 9296.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Process 9296 waits for ShareLock on transaction 167421501; blocked by process 5064.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Process 5064 waits for ShareLock on transaction 167447659; blocked by process 2000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CONTEXT:&amp;nbsp; SQL statement "UPDATE sde.GDB_TABLES_LAST_MODIFIED SET last_modified_count = last_modified_count + 1 WHERE table_name = 'GDB_ITEMRELATIONSHIPS'"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PL/pgSQL function "gdb_items_rel_tr_f] [prjras.sde.GDB_ItemRelationships]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DBMS table not found [prjras.pr.tmp_24a][STATE_ID = 0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (CopyFeatures).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Tue Feb 07 10:31:51 2012 (Elapsed Time: 3 minutes 58 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Possible Solution/thoughts:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem may tied to my settings for postgreSQL.conf (described in SDE documentation) for the shared buffers and max_locks_per_transaction. ESRI documentation describes the shared_buffers as 16kb * number of max_connections and the max_locks_per_transaction represents the number of database objects that can be locked simultaneously. I have set shared_buffers to 25MB and max_locks_per_transaction to 500 (apparently the latter setting is not one-to-one but changing this is not helping).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2012 14:45:56 GMT</pubDate>
    <dc:creator>MichaelO_Donnell1</dc:creator>
    <dc:date>2012-02-10T14:45:56Z</dc:date>
    <item>
      <title>SDE: deadlock detected</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-deadlock-detected/m-p/283658#M16287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Software: ArcSDE 10.0 SP3 via PostgreSQL 8.3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Platform: Windows 2008 R2, 64-bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an application that is running in a distributed computing environment (i.e., a private cloud). The application makes a copy of a feature class (3 possible datasets in this case), and then runs numerous analyses based on additional parameters for a specific job. I have approximately 200 jobs that run concurrently and that are trying to access the same feature class. I have configured giomgr.def to handle session-based settings (because distributed computing relies on LDAP and in this case all jobs owned by single user; this is appropriate method according to ESRI documentation) and I increased the connections environment setting to 1000 concurrent connections (both found in giomgr.defs).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem: I am getting an error when these programs try to create a copy of the file and it seems there might be a setting that I could change to mitigate the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Underlying DBMS error [ERROR:&amp;nbsp; deadlock detected&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DETAIL:&amp;nbsp; Process 2000 waits for ExclusiveLock on tuple (9,16) of relation 734480 of database 733778; blocked by process 9296.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Process 9296 waits for ShareLock on transaction 167421501; blocked by process 5064.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Process 5064 waits for ShareLock on transaction 167447659; blocked by process 2000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CONTEXT:&amp;nbsp; SQL statement "UPDATE sde.GDB_TABLES_LAST_MODIFIED SET last_modified_count = last_modified_count + 1 WHERE table_name = 'GDB_ITEMRELATIONSHIPS'"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PL/pgSQL function "gdb_items_rel_tr_f] [prjras.sde.GDB_ItemRelationships]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DBMS table not found [prjras.pr.tmp_24a][STATE_ID = 0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (CopyFeatures).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Tue Feb 07 10:31:51 2012 (Elapsed Time: 3 minutes 58 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Possible Solution/thoughts:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem may tied to my settings for postgreSQL.conf (described in SDE documentation) for the shared buffers and max_locks_per_transaction. ESRI documentation describes the shared_buffers as 16kb * number of max_connections and the max_locks_per_transaction represents the number of database objects that can be locked simultaneously. I have set shared_buffers to 25MB and max_locks_per_transaction to 500 (apparently the latter setting is not one-to-one but changing this is not helping).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 14:45:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-deadlock-detected/m-p/283658#M16287</guid>
      <dc:creator>MichaelO_Donnell1</dc:creator>
      <dc:date>2012-02-10T14:45:56Z</dc:date>
    </item>
  </channel>
</rss>

