Skip to content

Instantly share code, notes, and snippets.

@grigorye
Last active October 4, 2017 05:59
Show Gist options
  • Save grigorye/c9116848e5ca426656c126f8f3a27d91 to your computer and use it in GitHub Desktop.
Save grigorye/c9116848e5ca426656c126f8f3a27d91 to your computer and use it in GitHub Desktop.
Config file for https://mmonit.com/monit/ to kill SourceKitService when it ends up eating all the memory
set daemon 30
check process SourceKitService matching "SourceKitService"
if memory > 2 GB then exec "/usr/bin/killall -9 SourceKitService"
repeat every 1 cycle
mode passive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment