Bug #10362
closeddynflow_executor_monitor taking up 100% CPU
Description
I recently installed the latest version of Katello which comes with Foreman version 1.9.0. When the system is idle (no sync or content view creations in process) the process dynflow_executor_monitor constantly takes up 100% CPU.
I verified there is no activity in the /var/log/foreman/* logs. In addition I verified there was no recent output in /usr/share/foreman/tmp/pids where the dynflow_executor.output and log file is located.
I then did a strace on the monitor PID and it appears to be constantly spinning on stating the dynflow_executor.pid file, opening it, reading it and then closing it. It then attempts to send SIG_0 to the dynflow_executor process (so checking whether the process exists).
Attached is the output from a strace run.
stat("/usr/share/foreman/tmp/pids/dynflow_executor.pid", {st_mode=S_IFREG|0644, st_size=6, ...}) = 0
open("/usr/share/foreman/tmp/pids/dynflow_executor.pid", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=6, ...}) = 0
fstat(5, {st_mode=S_IFREG|0644, st_size=6, ...}) = 0
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff8da280e0) = -1 ENOTTY (Inappropriate ioctl for device)
read(5, "27794\n", 8192) = 6
close(5) = 0
I also noted that there are two dynflow_executor processes running, with multiple threads for each one.
Files