<?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: Database connections exceeded or unable to connect in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581280#M22396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Doug,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure if you are having the same problem that we were experiencing.&amp;nbsp; By default when you create a new geodatabase the maximum number of connections to the database is 48.&amp;nbsp; That was ample with 10.0 but with 10.1 we were having problems.&amp;nbsp; We first noticed that we were running out of connections in the 10.1 Arcgis Server log.&amp;nbsp; It seems as though every one of the 70 services in Arcgis Server was making a connection to the database so we were already over 20 connections short.&amp;nbsp; I called tech support and they showed me how to use the SDE command line interface to change the maximum number of connections to the database.&amp;nbsp; I changed it to 200 and we have not had a problem since.&amp;nbsp; The table that we changed was sde.SDE_server_config and the field was CONNECTIONS.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luci&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Apr 2013 12:01:13 GMT</pubDate>
    <dc:creator>LuciHawkins</dc:creator>
    <dc:date>2013-04-30T12:01:13Z</dc:date>
    <item>
      <title>Database connections exceeded or unable to connect</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581279#M22395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We've run into this problem a couple times now during testing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After several users have launched the web application and we go back to doing desktop work we run into a couple errors (see screen shot) and&amp;nbsp; the other error message is "have exceeded the maximum number of connections".&amp;nbsp; If someone was alreay using a database connection they could still work but no additional data connections coule be made.&amp;nbsp; Also, we could still use the web app and all data displays without problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've checked with our dba and he says we are not eve nclose to exceeding our db connection limit.&amp;nbsp; So what gives?&amp;nbsp; Is there a setting in ArcServer that will reduce or eliminate the number of database connections?&amp;nbsp; Is this an SDE issue or an ArcServer issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doug&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 23:11:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581279#M22395</guid>
      <dc:creator>DougRulison</dc:creator>
      <dc:date>2013-04-25T23:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Database connections exceeded or unable to connect</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581280#M22396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Doug,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure if you are having the same problem that we were experiencing.&amp;nbsp; By default when you create a new geodatabase the maximum number of connections to the database is 48.&amp;nbsp; That was ample with 10.0 but with 10.1 we were having problems.&amp;nbsp; We first noticed that we were running out of connections in the 10.1 Arcgis Server log.&amp;nbsp; It seems as though every one of the 70 services in Arcgis Server was making a connection to the database so we were already over 20 connections short.&amp;nbsp; I called tech support and they showed me how to use the SDE command line interface to change the maximum number of connections to the database.&amp;nbsp; I changed it to 200 and we have not had a problem since.&amp;nbsp; The table that we changed was sde.SDE_server_config and the field was CONNECTIONS.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luci&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 12:01:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581280#M22396</guid>
      <dc:creator>LuciHawkins</dc:creator>
      <dc:date>2013-04-30T12:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Database connections exceeded or unable to connect</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581281#M22397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Doug,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to add onto what Luci posted, some help resources:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/The_SERVER_CONFIG_system_table/002q0000000v000000/"&gt;&lt;BR /&gt;The SERVER_CONFIG system table&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Altering_SERVER_CONFIG_parameters/002q00000010000000/"&gt;&lt;BR /&gt;Altering SERVER_CONFIG parameters&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 15:26:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581281#M22397</guid>
      <dc:creator>DerekLaw</dc:creator>
      <dc:date>2013-05-01T15:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Database connections exceeded or unable to connect</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581282#M22398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I ran into the same issue today on our publication database which is only used for map services.&amp;nbsp; I'm running ArcGIS Server 10.1 with MSSQL server.&amp;nbsp; I have about 70 services, but ArcCatalog shows only 4 instances currently running on one of those services, yet SQL server shows 252 active connections.&amp;nbsp; Any idea how to further research why I have all these open connections?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second, the CONNECTIONS field in the SDE_server_config table has a value of 64.&amp;nbsp; So how can the "gisweb" SQL user (used for mapservices) have 252 connections active?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sebastian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 20:28:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581282#M22398</guid>
      <dc:creator>SebastianRoberts</dc:creator>
      <dc:date>2013-12-18T20:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Database connections exceeded or unable to connect</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581283#M22399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This behavior is a result of orphaned connection. You can set TCPKEEPALIVE = TRUE to remove orphaned connections. As Law suggested, you can 'Alter SERVER_CONFIG parameter'. However it should be limited to the memory of the machine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 04:48:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581283#M22399</guid>
      <dc:creator>NidhinKarthikeyan</dc:creator>
      <dc:date>2013-12-19T04:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Database connections exceeded or unable to connect</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581284#M22400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A script can be used in Oracle to clean 'Process_Information Table':&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;set SERVEROUTPUT ON 
exec dbms_output.enable(100000); 

DECLARE 

CURSOR process_list IS 
SELECT sde_id, owner, nodename FROM sde.process_information; 

lock_name VARCHAR2(30); 
lock_handle VARCHAR2(128); 
lock_status INTEGER; 
cnt INTEGER DEFAULT 0; 

BEGIN 

FOR check_locks IN process_list LOOP 

lock_name := 'SDE_Connection_ID#' || TO_CHAR (check_locks.sde_id); 
DBMS_LOCK.ALLOCATE_UNIQUE (lock_name,lock_handle); 
lock_status := DBMS_LOCK.REQUEST (lock_handle,DBMS_LOCK.X_MODE,0,TRUE); 

IF lock_status = 0 THEN 
DELETE FROM sde.process_information WHERE sde_id = check_locks.sde_id; 
DELETE FROM sde.state_locks WHERE sde_id = check_locks.sde_id; 
DELETE FROM sde.table_locks WHERE sde_id = check_locks.sde_id; 
DELETE FROM sde.object_locks WHERE sde_id = check_locks.sde_id; 
DELETE FROM sde.layer_locks WHERE sde_id = check_locks.sde_id; 
cnt := cnt + 1; 
dbms_output.put_line('Removed entry ('||check_locks.sde_id||'): '||check_locks.owner||'/'||check_locks.nodename||''); 
END IF; 

END LOOP; 

/* Remove any orphaned lock entries... */ 

DELETE FROM sde.state_locks WHERE sde_id NOT IN (SELECT sde_id FROM sde.process_information); 
DELETE FROM sde.table_locks WHERE sde_id NOT IN (SELECT sde_id FROM sde.process_information); 
DELETE FROM sde.object_locks WHERE sde_id NOT IN (SELECT sde_id FROM sde.process_information); 
DELETE FROM sde.layer_locks WHERE sde_id NOT IN (SELECT sde_id FROM sde.process_information); 

COMMIT; 

dbms_output.put_line('Removed '||cnt||' entries.'); 

END; 
/ 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It remove any orphaned entries in the table which can prevent new connections (because of maximum connection).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:59:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581284#M22400</guid>
      <dc:creator>NidhinKarthikeyan</dc:creator>
      <dc:date>2021-12-12T00:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Database connections exceeded or unable to connect</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581285#M22401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nidhin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Thanks for your reply.&amp;nbsp; I will bump up the CONNECTIONS parameter.&amp;nbsp; I'm not sure what you mean by "it should be limited to the memory of the machine".&amp;nbsp; Our database server has 8 GB of RAM, but we also have about 20 ArcMap users making connections to our production database on the same server.&amp;nbsp; Do you know where I can get more direction on what is a reasonable number of connections to allow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Also, I will try setting the TCPKEEPALIVE parameter to true.&amp;nbsp; I do have all map services set to "periodically check and repair data connections for idle instances" and to recycle every 24 hours at midnight.&amp;nbsp; However, even though we have very little web traffic over night, the number of open database connections didn't decrease at all over night, and I had to restart our application server (running ArcGIS server) this morning in order to release the idle/broken connections on our Database server.&amp;nbsp; Does the TCPKEEPALIVE parameter work differently than the two settings that I mentioned above?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sebastian Roberts&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 15:32:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581285#M22401</guid>
      <dc:creator>SebastianRoberts</dc:creator>
      <dc:date>2013-12-19T15:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Database connections exceeded or unable to connect</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581286#M22402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The maximum number of connection is database specific(limit). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; It should be limited to the memory of the machine&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its about Windows host. Windows will exhaust its 'non-interactive desktop heap'. I would suggest you to take a look at this &lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/23953"&gt;technical article&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting the parameter, TCPKEEPALIVE = TRUE for ArcSDE removes any orphaned gsrvr processes. However TCPKEEPALIVE does not clean up entries in the SDE.PROCESS_INFORMATION table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can create a batch file to restart your service and then create a scheduled task on SDE server that runs this batch file 'at system startup'. It will remove orphaned connections.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 15:57:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581286#M22402</guid>
      <dc:creator>NidhinKarthikeyan</dc:creator>
      <dc:date>2013-12-19T15:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Database connections exceeded or unable to connect</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581287#M22403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The technical article link is broken for me but I know what you're referring to.&amp;nbsp; However, does the memory issue only apply to 3 tier connections only or does it include direct connects?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 21:40:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/database-connections-exceeded-or-unable-to-connect/m-p/581287#M22403</guid>
      <dc:creator>RandyKreuziger</dc:creator>
      <dc:date>2014-08-29T21:40:11Z</dc:date>
    </item>
  </channel>
</rss>

