PROBLEM

Unable to publish new or start existing services when a large number of ArcSOC.exe processes are running

Last Published: January 19, 2023

Description

Note:
This article is only applicable for Windows environments.

When a large number of web service instances are running on an ArcGIS Server machine (for example, about 200 or more) in a Windows environment, the ArcGIS Server may fail to publish new or start existing services. The existing hardware resources appear adequate to support instantiating additional service instances including having enough physical and virtual memory available.

ArcGIS Server logs indicate the following:

  • Failed to initialize server object
  • Failed to construct instance of service
  • Internal Server Error. Error handling service request

Cause

In certain Windows environments after a high number of concurrent processes has been reached, the non-interactive desktop heap size may have been exhausted and causing the issues above on ArcGIS Server workflows.

Solution or Workaround

In Windows, it is possible to increase the non-interactive desktop heap size in order to ensure that a sufficient number of processes can be created and run concurrently.

Warning:
Do not proceed with these instructions unless the user is confident that desktop heap exhaustion is the cause of the problems starting or publishing services. 

The instructions below include making changes to essential parts of the operating system. It is recommended to back up the operating system and files, including the registry, or create a snapshot of the virtual machine before proceeding. Consult with a qualified computer systems professional, if necessary.

Esri cannot guarantee results from incorrect modifications while following these instructions; therefore, use caution and proceed at your own risk.
  1. Click Start > Run, type regedit and click OK.
  2. Navigate to HKEY_Local_Machine > SYSTEM > CurrentControlSet > Control > Session Manager > Subsystems.
  3. Within the Windows string value, there is a SharedSection parameter that, by default, should read SharedSection=1024,20480,768. The last number represents non-interactive desktop heap that should be increased, for example from 768 to be 1024. Make sure that the entirety of the key value is preserved and only that one part is to be modified.
  4. Reboot Windows.
Warning:   
Increasing the non-interactive desktop heap size can cause issues leading to Windows failing to boot. It is strongly recommended to maintain a proper backup and to increase the non-interactive heap in small increments (for example, 256K) and test after each iteration.

Article ID: 000001218

Software:
  • ArcGIS Server

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options