Excessive script time relaunch
ard jonker
ard.jonker at xs4all.nl
Mon Apr 20 06:02:28 EDT 2020
> On 25 Feb 2020, at 16:06, James Sentman <james at sentman.com> wrote:
>
> Is this a problem with some process on the mini using up 100% of the CPU either XTension or other? I have had similar issues in the past and have done things to regularly monitor for a high CPU usage situation.
This happened the other day, after I have taken the measures you suggest. I must say, yours _idle really is a smart solution to catch the villain!
> In XTension if you create a pseudo unit named “_idle” and in ON script
> if value of (thisUnit) is greater than 9% and (future value) is less than 10% then
> do async shell script “echo ‘- - - - - - - -‘ >> ~/Documents/psout.txt ; date >> ~/Documents/psout.txt ; ps aux >> ~/Documents/psout.txt”
> end if
>
Although this time the behaviour was erratic in a different way. It appeared to be a daemon that takes care of Photos' image recognition. That even runs if you have removed the Photos app from your computer :-(
ard
More information about the XTensionList
mailing list