We are running Mac Pro's with 64GB & 10.12 as VDI-Servers.
We have problems with the SecurityAgent. The process will take more than 100% CPU (how can this be?) after 6 hours of work according to top.
At this point no user can login anymore. We have to reboot or kill one or more SecurityAgent instances (Sometimes there are more then 5 instances running) I would like to monitor this and restart the Service when the CPU load exeeds a given limit.
My questions are :
- How can I determine the CPU load for this process and their instances with a shell-script?
- Since simply killing the process seems to be a bad idea, I would like to restart (kickstart?) the process instead. How can I achieve this?