Symptoms:
Management Agent hangs on Export and cannot be cancelled through Sync Engine. This causes scheduled jobs to get stuck. Requires killing the miiserver.exe process to resume scheduled sync jobs
Steps to reproduce:
Issue is difficult to reproduce but does consistently happens over a weeks worth of time running scheduled jobs on an hourly basis.
I speculate the problem is one of several possible things:
- Memory bloat of the miiserver.exe process due to
import-pssession calls. import-pssession should be avoided at all costs as it causes memory leaks.
- Hang up of remote PS session during processing, for example, re-cycling skype server during an Export run
- WSMAN sessions (client\server side) not being cleaned up properly causing process to hang