This is something annoying for every C++ dev. IntelliSense can go crazy and consume more than 1GB of RAM, even having only 2 active vcpkgsrv.exe instances. Hopefuly we can kill it every few seconds…

#!/usr/bin/python
import psutil # run cmd: "pip install psutil"
import time

def Clean(p):
    p.kill()
    print 'Headshot'
    
while True:
    print '.'
    [Clean(p) for p in filter(lambda p: p.name() == "vcpkgsrv.exe", psutil.process_iter())]
    time.sleep(15)