High CPU usage from schedtc.php

freepbx
asterisk
Tags: #<Tag:0x00007fafc415d260> #<Tag:0x00007fafc415d030>

(mniess) #1

Hi,

on my machine all cores run php /var/lib/asterisk/bin/schedtc.php with full CPU usage. This seems to be a recurring problem. Running it by hand (as user asterisk) resulted in a PHP stacktrace pointing to a SysV semaphore exception.

Shutting down and rebooting freepbx helped, but I’d still like to investigate this further, so any pointers are greatly appreciated.

Thanks,
Matthias


(Lorne Gaetz) #2

It would be nice to fix the issue, but if you need a band-aid, know that the only thing this script does is to update Asterisk hints for Time Conditions BLF buttons. If you don’t have any TC BLFs you can disable maintenance polling in advanced settings.


(mniess) #3

Thanks… I’m actually using BLFs. From the looks of it, I’d say this problem occurs when there is a temporary resource shortage (had those, increased CPU and RAM for the box) and the PHP SemaphoreException is correctly thrown, but not actually handled.


(system) closed #4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.