Very High CPU Usage (all of a sudden)

My box is showing an unexplained surge in CPU usage. The system is now running at 70-99% CPU at idle, and with 1 call, it’s always 99%, and the call quality has degraded immensely.

Worked fine, and then all of a sudden this happened.

Both of the following log files are over 1 GIGABYTE EACH, and growing quick. Is it ok to delete them, and start fresh?..
/var/log/asterisk/full
/var/log/asterisk/full.0

Thanks!

yes you can delete the log files safely.
Although if you open them is there anything in there that jumps out at you that might be a cause of your issue?

What @Dickson said - the log files are there to tell you the story behind what your system is doing, so you might want to tail them for a while to see what’s going on.

Generally you can only ‘safely’ delete previously rotated log files that are not “open”, the open ones identified by

lsof /var/log/asterisk/*

rm /var/log/asterisk/full.[0-9]*

so prior to brazen deletion I would from bash

logrotate -f -v /etc/logrotate.conf

then

tailf /var/log/asterisk/full

to see the chatter, paste a few lines of those that keep on repeating rapidly

Found the problem viewing the live logging (tailf /var/log/asterisk/full) !!!

I had created a new MOH stream that was empty. That was it! Deleted the empty stream, and problem solved! 0% CPU… Is this a bug that should be reported?

If you can reproduce the issue consistently, I would say file a ticket.

I can. Can anyone else confirm that creating an empty MOH stream causes CPU to spike?