<?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: Orphaned ArcSOC.exe in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/orphaned-arcsoc-exe/m-p/364744#M14132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have seen this pattern before and believe it is an ArcGIS Server bug.&amp;nbsp; Essentially, you have a boundary condition where ArcGIS Server has removed an instance of ArcSOC from management but yet the process did not cleanly exit.&amp;nbsp; You can attach a debugger, such as WinDbg, to the hung process and attempt to figure out why it is hung.&amp;nbsp; This starts to get deep fast.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have a custom Server Object Extension?&amp;nbsp; If so then post back and I'll share a good trick with you with regards to how I addressed this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If there is no custom SOE then the only way to resolve this is that you have to file a reproducible incident with ESRI support.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Sep 2013 08:58:51 GMT</pubDate>
    <dc:creator>RichardWatson</dc:creator>
    <dc:date>2013-09-15T08:58:51Z</dc:date>
    <item>
      <title>Orphaned ArcSOC.exe</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/orphaned-arcsoc-exe/m-p/364743#M14131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just a few moments ago I came across a curious issue - the over-writing of one of my services continued to fail. This isn't the first time this has happened to me - and last time I fixed it when I re-ran the ArcGIS Server configuration - the one that you specify which user ArcGIS Server is running under. I kept getting the error...&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;SEVERE

Sep 14, 2013 2:23:26 PM

Failed to create the service.: Unable to delete service input folder.

System/PublishingTools.GPServer&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me continue with a back story. Last night I was fiddling around doing queries - for some reason through the REST interface my service will -never- return if I do an objectid lookup. I have to put OBJECTID=&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;n&lt;/SPAN&gt;&lt;SPAN&gt; into the WHERE instead. Me doing this last night caused one of my services to be become unstable - showing one constantly being in use. I shrugged - I know ArcGIS Server will kill off a service that's in use for too long.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However this morning that same one was still in use. I stopped my service and looked at task manager - the ArcSOC.exe for that service did not stop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I decided to try to overwrite the service. Failure - however the service was now no longer part of my list of services on the manager portal. I was confused - I checked folder permissions and everything was in check. It turns out that orphaned ArcSOC.exe was holding onto that folder. I understand that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I do NOT understand is how I even GOT an orphaned ArcSOC. What about the automatic clean-up? Why did it miss this one? Perhaps I am misunderstanding "The maximum time a client can use a service:" - which I assumed was ticking down on the "Instances in Use: 1" - with the recycling options, which are set to 24 hours. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, even STOPPING the service didn't kill off the ArcSOC, so I assume the recycling wouldn't have done it either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice would be fantastic. Sorry for the length. Try to fit as much as I can.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Sep 2013 18:09:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/orphaned-arcsoc-exe/m-p/364743#M14131</guid>
      <dc:creator>JustinHunter</dc:creator>
      <dc:date>2013-09-14T18:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Orphaned ArcSOC.exe</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/orphaned-arcsoc-exe/m-p/364744#M14132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have seen this pattern before and believe it is an ArcGIS Server bug.&amp;nbsp; Essentially, you have a boundary condition where ArcGIS Server has removed an instance of ArcSOC from management but yet the process did not cleanly exit.&amp;nbsp; You can attach a debugger, such as WinDbg, to the hung process and attempt to figure out why it is hung.&amp;nbsp; This starts to get deep fast.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have a custom Server Object Extension?&amp;nbsp; If so then post back and I'll share a good trick with you with regards to how I addressed this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If there is no custom SOE then the only way to resolve this is that you have to file a reproducible incident with ESRI support.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Sep 2013 08:58:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/orphaned-arcsoc-exe/m-p/364744#M14132</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-09-15T08:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Orphaned ArcSOC.exe</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/orphaned-arcsoc-exe/m-p/364745#M14133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My service does have an SOE that I built attached to it, however running it was not the cause of the original hanging - if that makes a difference.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Sep 2013 22:49:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/orphaned-arcsoc-exe/m-p/364745#M14133</guid>
      <dc:creator>JustinHunter</dc:creator>
      <dc:date>2013-09-15T22:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Orphaned ArcSOC.exe</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/orphaned-arcsoc-exe/m-p/364746#M14134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The way that I solved this problem was when the SOE is Shutdown I start a background thread.&amp;nbsp; What the thread does is to wait some amount of time (say 5 minutes) and then it kills the process.&amp;nbsp; What this does is to give the process time to cleanly exit.&amp;nbsp; If it hangs then death is forced.&amp;nbsp; Doing this stops the zombie ArcSOC processes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 00:07:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/orphaned-arcsoc-exe/m-p/364746#M14134</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-09-16T00:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Orphaned ArcSOC.exe</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/orphaned-arcsoc-exe/m-p/364747#M14135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This sounds like a custom SOE I could build that has no purpose other than to ensure the process does eventually end. What I'm worried about is that these processes are kept track of somewhere and my SOE that kills it may cause issues - such as ArcGIS Server thinking there are 5 processes already running when in fact only 4 are.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your suggestion. I'm going to duplicate this and bring it to ESRI's attention.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 11:43:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/orphaned-arcsoc-exe/m-p/364747#M14135</guid>
      <dc:creator>JustinHunter</dc:creator>
      <dc:date>2013-09-16T11:43:12Z</dc:date>
    </item>
  </channel>
</rss>

