HELP! Asterisk is hogging CPU

I want to uninstall Asterisk since I don’t use it.

I recently updated to OS Sierra and Asterisk is using 99% CPU and it’s causing my MacBook Air battery to last 25% as long as it used to. This is not ok.

Please help. I can’t even find it in my computer anywhere to remove it.

in the source directory where you compiled asterisk you can do a make ‘uninstall-all’ and that should remove anything installed.

I have no idea what this means. I don’t even remember installing this program… I also can’t even find ANY files by searching for ‘asterisk’ in my computer. I have no idea where or what it even is but its using 99% of my CPU pretty much all day meaning I have to plug into a power source often.

How do you know it’s asterisk causing your problem then?

Activity monitor.

I have no suggestions then. You may want to re-install your operating system if you don’t know how it was installed.

how about how to UNINSTALL the program!?

This is a pain in the ass.

I gave you the instructions on how to uninstall asterisk if you have compiled it from source above.

do a ‘make uninstall-all’ in the source directory.

If you used a package manager to install asterisk you will have to use that package manager to remove it.

Would the files be called anything but Asterisk? Because doing a search on my HD doesn’t bring anything up related.

The source directory is usually named asterisk-version number so asterisk- or asterisk-11.0.0 or asterisk-14.0.1

Most people put the sources in /usr/src or /usr/local/src

Asterisk is not something you just have accidentally on a machine. Also asterisk does not consume a lot of CPU unless it is doing something. You really need to find out and understand why it was there in the first place.

However, on most installations, you can break it by removing or renaming /usr/sbin/asterisk.

Doesn’t exist.

This is rough times. lol I literally cannot find it anywhere.

You need a local linux expert

You could try running lsof on the process to try and find the pathname for the executable (this is likely to be work best immediately after booting).

What does “sudo find / -name asterisk -print” return?

Also, something in the startup scripts must be starting it, so look where they are kept for your version of Linux.

However, if you have big pieces of optional software running that you didn’t configure, you should be seriously worried about the integrity of that machine and you really do need a linux expert to work out if it has been compromised (although I can’t think why a hacker would install Asterisk).