<?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 Locking on AGS Config directories - Linux in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/locking-on-ags-config-directories-linux/m-p/197777#M7786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we have an AGS 10.6.1 for RHEL (not Enterprise - no Portal) that has recently been migrated to a new server environment.&lt;/P&gt;&lt;P&gt;There are two servers set up in a single site using a NetApp NAS device for shared server directories and server configuration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #365f91;"&gt;The admins have&amp;nbsp;recently executed performance test in the new ArcGIS environment and observed many errors in the server log, some examples below. Majority of the errors are related to timeout exception.&amp;nbsp;It seems there are&amp;nbsp;timeouts due to AGS waiting for locks to get released; however before release of lock, timeout occurred and transaction error-ed out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #365f91;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #365f91;"&gt;During load testing simulating many concurrent users,&amp;nbsp;the Linux admins have reported&amp;nbsp;"massive amount of locks being taken on &lt;/SPAN&gt;&lt;SPAN style="color: #365f91;"&gt;/ArcGisProd1/arcgisserver1061/config-store/.site/site-key.dat.lock"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #365f91;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #365f91; text-decoration: underline; "&gt;Questions from the admins are – &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #365f91;"&gt;&amp;nbsp;&lt;/SPAN&gt;Is the ArcGIS Server application natively performing locks even for read transactions ?&lt;/P&gt;&lt;OL style="margin-top: 0in;"&gt;&lt;LI&gt;&lt;SPAN style="color: #365f91;"&gt;Locks in the tune of ~5000 sounds alarming or it is usual ? &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #365f91;"&gt;Are there any application level parameters that are related to locking which can be modified ? or it is primarily driven through OS level parameters ? &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #365f91;"&gt;Below are some of the ArcGIS articles that has reference to disable OpLocks. Have you heard issues with OpLocks causing problem for ArcGIS application ?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #365f91;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://enterprise.arcgis.com/en/server/10.6/administer/linux/common-problems-and-solutions.htm"&gt;https://enterprise.arcgis.com/en/server/10.6/administer/linux/common-problems-and-solutions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;A href="https://support.esri.com/en/technical-article/000012722" style="text-indent: -0.25in;"&gt;https://support.esri.com/en/technical-article/000012722&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #365f91;"&gt;Appreciate if you could shed some lights on above questions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As GIS administrators, this is outside any experience we have seen before.&lt;/P&gt;&lt;P&gt;The response we have given so far is:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;"As you have seen in the Esri articles, our recommendation is to disable Opportunistic locking when using a shared file server for configuration files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;The reason is that there is a significant chance that the “waiting” instance will send lock break requests to the file share very frequently and this will disrupt the synchronisation between the file server nodes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&amp;nbsp;I believe the reason there are many locks applied is that every read requests does attempt to set a lock, this is not a configuration that can be changed in the ArcGIS Server application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&amp;nbsp;So – disabling oplocks on the Samba share is the recommendation."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it seems they have disabled opLocks and they are still seeing the issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas from the gurus?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David Hoy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Aug 2019 08:34:55 GMT</pubDate>
    <dc:creator>DavidHoy</dc:creator>
    <dc:date>2019-08-30T08:34:55Z</dc:date>
    <item>
      <title>Locking on AGS Config directories - Linux</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/locking-on-ags-config-directories-linux/m-p/197777#M7786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we have an AGS 10.6.1 for RHEL (not Enterprise - no Portal) that has recently been migrated to a new server environment.&lt;/P&gt;&lt;P&gt;There are two servers set up in a single site using a NetApp NAS device for shared server directories and server configuration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #365f91;"&gt;The admins have&amp;nbsp;recently executed performance test in the new ArcGIS environment and observed many errors in the server log, some examples below. Majority of the errors are related to timeout exception.&amp;nbsp;It seems there are&amp;nbsp;timeouts due to AGS waiting for locks to get released; however before release of lock, timeout occurred and transaction error-ed out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #365f91;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #365f91;"&gt;During load testing simulating many concurrent users,&amp;nbsp;the Linux admins have reported&amp;nbsp;"massive amount of locks being taken on &lt;/SPAN&gt;&lt;SPAN style="color: #365f91;"&gt;/ArcGisProd1/arcgisserver1061/config-store/.site/site-key.dat.lock"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #365f91;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #365f91; text-decoration: underline; "&gt;Questions from the admins are – &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #365f91;"&gt;&amp;nbsp;&lt;/SPAN&gt;Is the ArcGIS Server application natively performing locks even for read transactions ?&lt;/P&gt;&lt;OL style="margin-top: 0in;"&gt;&lt;LI&gt;&lt;SPAN style="color: #365f91;"&gt;Locks in the tune of ~5000 sounds alarming or it is usual ? &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #365f91;"&gt;Are there any application level parameters that are related to locking which can be modified ? or it is primarily driven through OS level parameters ? &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #365f91;"&gt;Below are some of the ArcGIS articles that has reference to disable OpLocks. Have you heard issues with OpLocks causing problem for ArcGIS application ?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #365f91;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://enterprise.arcgis.com/en/server/10.6/administer/linux/common-problems-and-solutions.htm"&gt;https://enterprise.arcgis.com/en/server/10.6/administer/linux/common-problems-and-solutions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;A href="https://support.esri.com/en/technical-article/000012722" style="text-indent: -0.25in;"&gt;https://support.esri.com/en/technical-article/000012722&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #365f91;"&gt;Appreciate if you could shed some lights on above questions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As GIS administrators, this is outside any experience we have seen before.&lt;/P&gt;&lt;P&gt;The response we have given so far is:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;"As you have seen in the Esri articles, our recommendation is to disable Opportunistic locking when using a shared file server for configuration files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;The reason is that there is a significant chance that the “waiting” instance will send lock break requests to the file share very frequently and this will disrupt the synchronisation between the file server nodes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&amp;nbsp;I believe the reason there are many locks applied is that every read requests does attempt to set a lock, this is not a configuration that can be changed in the ArcGIS Server application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&amp;nbsp;So – disabling oplocks on the Samba share is the recommendation."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it seems they have disabled opLocks and they are still seeing the issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas from the gurus?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David Hoy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 08:34:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/locking-on-ags-config-directories-linux/m-p/197777#M7786</guid>
      <dc:creator>DavidHoy</dc:creator>
      <dc:date>2019-08-30T08:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Locking on AGS Config directories - Linux</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/locking-on-ags-config-directories-linux/m-p/197778#M7787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The resolution for this was to switch the NetApp file server to only use SMB 1.0 protocols for their file shares.&lt;/P&gt;&lt;P&gt;This allowed us to disable OpLocks (this is apparently not possible for later versions of SMB. So when the NetApp admins said they had tried - they meant they had been unable to do so)&lt;/P&gt;&lt;P&gt;Once this was done, performance improved enormously and failures disappeared.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2019 23:04:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/locking-on-ags-config-directories-linux/m-p/197778#M7787</guid>
      <dc:creator>DavidHoy</dc:creator>
      <dc:date>2019-10-10T23:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Locking on AGS Config directories - Linux</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/locking-on-ags-config-directories-linux/m-p/1136244#M32271</link>
      <description>&lt;P&gt;hi&amp;nbsp;@&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/460855" target="_self"&gt;&lt;SPAN class=""&gt;SimonSchütte_ct&lt;/SPAN&gt;&lt;/A&gt;&lt;BR /&gt;This is an old post - going back to SMB1.0 is a pretty drastic suggestion now (it is vulnerable to hostile attack) and may even not be possible anymore for some vendors.&amp;nbsp;&lt;BR /&gt;At later versions of SMB, the best answer may be to disable local caching from the client side&lt;/P&gt;&lt;P&gt;I recommend you may wish to read Danny Krouk's fantastic article which covers many aspects of file share performance.&amp;nbsp;&lt;A href="https://community.esri.com/t5/implementing-arcgis-blog/troubleshooting-files-shares-and-arcgis-enterprise/ba-p/1091013" target="_blank" rel="noopener"&gt;Troubleshooting Files Shares and ArcGIS Enterprise - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 00:03:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/locking-on-ags-config-directories-linux/m-p/1136244#M32271</guid>
      <dc:creator>DavidHoy</dc:creator>
      <dc:date>2022-01-24T00:03:46Z</dc:date>
    </item>
  </channel>
</rss>

