Stopping the WAMulator

There are several ways to stop the WAMulator. Using control-c on Macs and linux systems or CTRL-C on windows systems will terminate its process after a one second shutdown period. Additionally, the WAMulator includes an endpoint within the console port at a path of /admin/shutdown that will cause the process to terminate. This is useful for times when you've started the WAMulator and left it running in the background or its process has somehow become orphaned and either its command line console or the in-IDE console is no longer visible for some reason. Typically, this situation is discovered when you attempt to start another instance and receive the following output in a console:

INFO: Running [Start Service] command...
Mar 10, 2014 10:53:28 AM <init>
INFO: Starting up config file update monitor.  Monitoring config file: /Users/markboyd/helping/jaredDanielMoore/wamulator/./config.xml
Exception in thread "main" Address already in use
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke( 
	at java.lang.reflect.Method.invoke(
	at com.intellij.rt.execution.application.AppMain.main(

When this occurs, look at the configuration file for the instance that you are attempting to start. Specifically look at the <config> element's console-port value. Then point your browser at http://localhost<console-port-number>/admin/shutdown. This will return the following text/plain response and that WAMulator instance will exit.

This page was last modified on 10 March 2014, at 11:44.

Note: Content found in this wiki may not always reflect official Church information.