I'm curious to the underlying "cleaning" differences between restarting the entire ArcGIS Server process with stopserver.sh vs. doing a stop through the arcgis/admin console.


Obviously stopserver.sh shuts down the entire process, and admin-stop will keep up the admin/rest APIs and Manager.

I've noticed that the above command shuts down all services and arcsoc.exe processes, but does it keep open states in the background that get resumed on startup, or would this be the equivalent of running stopserver.sh in regards to application server maintenance?

The problem that I am running into is that over time that ArcGIS Server does a poor job of recycling resources, eventually causing issues with services. I'd like to run a scheduled reboot, but currently have a clustered configuration and this would require running stopserver.sh separately on each system.

I would rather create something that is system-independent (In case I migrate), and that works through the web adapter.

  • ArcGIS Server already recycles services daily at midnight (or however frequently you have it configured). You can't "cold stop" AGS through the API (if you could, you certainly couldn't restart it, since it wouldn't be running to accept the request). You could certainly script a restart request at the OS level, but it's not likely to be OS-agnostic. – Vince Dec 17 '15 at 20:43
  • 1
    Are you using ArcGIS 10.3.1? I had some stability issues with 10.3 (on Lniux) until I upgraded to 10.3.1, then most of the issues went away. – Mintx Dec 17 '15 at 20:49
  • @Vince Right. Not to mention if it's in a cluster I'd be worried about the first machine not rebooting, and then the entire system is down when the second machine restarts. I'd have to setup a network location between both machines to read a file on the other's result. – disflux Dec 17 '15 at 21:36
  • 1
    You can poll the REST API of server 2 to make sure it's up again before restarting server 1. This could easily be done with Python, Java, or even a shell script with curl – Vince Dec 17 '15 at 21:44
  • 1
    @disflux Every 4 or 5 months, a random map service or two would stop responding. Clicking "Stop" in Server Manager would set the status to "Stopping..." and wouldn't change until I shut everything down. Occasionally, a java process would take off and consume 100% CPU for no reason until the server was rebooted. – Mintx Dec 17 '15 at 21:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.