Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

A weekly maintenance process requires stopping ArcGIS Server and ArcSDE services. After restarting all the services, is it better to restart IIS Admin Service or recycle Default App Pool? I currently run a python script to do the later, with inconsistent results. Sometimes it takes 2 or 4 attempts, or stopping and starting AGS and ArcSDE services again, to get the web services working. I'd like a clear procedure that will work each time.

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

Restarting the IIS admin service just puts more steps into the restart process for IIS. It may make things easier for you, but I would recommend a more careful restart:

  • After stopping ArcGIS Server and ArcSDE, wait until the SOM, SOC, giomgr and gsrvr processes have ALL stopped. The Stop Service command should wait for them, but they might not respond to the stop command.
  • Any processes that are still going after you've stopped the service need to be terminated. Otherwise the startup process will get confused and may try to attach those dying processes.
  • Make sure your database is up and running ("hot") when you start ArcSDE. It needs the database to get its license.
  • Start ArcGIS Server after ArcSDE.
  • Recycle the app pool.

Restarting IIS Admin service would be fine, but if your server also has FTP or SMTP services running through IIS they will be brought down too. Recycling the Default App Pool (and any other pools that run your maps!) should be adequate.

share|improve this answer
add comment

Recycling your application pool does not immediately kill the worker processes - it waits for them to complete, or for the timeout period to expire. This would be the reason why they would still be running after a few attempts to recycle.

It will however eventually restart all processes (and without suddenly cutting someone off).

In IIS7 you can see the requests that are still running by clicking on the Worker Process icon in IIS manager, and then double clicking on an individual process.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.