Select to view content in your preferred language

Script to list unused mapservices

191
2
2 weeks ago
IreneEgbulefu1
Regular Contributor

We have been having this issue of high number of ArcSocs which has been boging down our server.

I received some suggestions here such as increasing the memory on our ArcGIS server and Webadaptor which i have done. All the 4 servers in our federated environment are now 64GB physical memory. 

I have also reduced all the instances to a maximum of 2 which makes it 4 for the two servers, I also changed some instances from dedicated to shared.

I also added an extra ArcGIS server and have the two servers share the Configstores and Directory on a Fileshare.

 

Now the ArcGIS server manager takes a good while to open up when accessed. The number of ArcSocs is still at 219 and 225., Some of the services are also timing out from time to time.

So I have exhausted all options without solution.

I got another option to remove all unused map services from the server, and I got this script hoping that it will be able to help me list all the unused map services and the date of last used and time.

The script is running but not providing the necessary things like the last-used date and time.

 

So I am here to seek help again. I am attaching the script. I know we have over 100 mapservcies  from 2019 to date but i need to extract the ones that are no longer in use and get rid of them to see if the ArcSOCs can be reduced 

 

Tags (2)
2 Replies
TanuHoque
Esri Regular Contributor

Hi @IreneEgbulefu1 

I won't be able to help with the script. Just have a side question. Are you using 'dedicated' instances or 'shared'? If the former one, do you think it would be an option to switch to 'shared' instances? As you know shared instances are meant to optimize your resources used by SOC processes.

 

0 Kudos
IreneEgbulefu1
Regular Contributor

When the issue started, I had to switch some of my services from dedicated to shared instances. So right now, I have some of them set as shared and also on dedicated

0 Kudos