Ever tried to open a Linux kernel source directory on a shared workstation using Visual Studio Code? If you or one of your colleages have, then you must know how it feels to have a thousand cpptools
process eating up all your CPU and memory.
With this script, all your troubles are gone! The script not only kills all the cpptools
processes, but prevent all future cpptools
processes from spawning as well.
- Visual Studio Code and the C/C++ extension (if you do not have them, why do you need this script?)
- SystemTap
Use the run.sh
to run once. The effectiveness continues until the device is powered off or rebooted.
cp ./cpptools-killer.stp /etc/systemtap/script.d/
See man 8 systemtap-service
for details.
All processes with a name containing "cpptools" will be called.