MATLAB: PID or endpoint file exists error while starting MPS instance

MATLAB Production Server

When I try to start my MATLAB Production Server (MPS) instance, I get one of the following errors:
 
Error: ping: main pid file exists, but control endpoint file missing
or
  ERROR: Error: ping: control endpoint file exists, but main pid file missing
How do I resolve this?
 

Best Answer

The issue occurs if the mps_master_app.exe process is killed abruptly.  To resolve it:
1.  Open task manager and kill remaining mps_worker_app.exe processes.
2.  Delete the pid and endpoint folders in the MPS instance directory.
Restart the instance.