OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: mindfuse on April 03, 2020, 04:04:14 PM

Title: Python3.7 CPU Spikes?
Post by: mindfuse on April 03, 2020, 04:04:14 PM
Hi everyone

Who can tell me why I see Python3.7 CPU spikes every ~30-50 seconds?
What's using Python3.7 intensively? 

  PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMAND
97892 root          1  75    0 30856K 27072K CPU1    1   0:01  65.53% python3.7
40226 root          1  23    0  1033M  2408K wait    0   0:00   0.98% flock
92546 root          1  20    0  1033M  2892K bpf     1   0:00   0.96% filterlog


Cheers
M
Title: Re: Python3.7 CPU Spikes?
Post by: banym on April 03, 2020, 04:18:09 PM
You need to share what processes are run by python3.7.
It can have many sources. For example log parsing or other stuff could happen and need some CPU time.
Check for example: ps ax  to find the process in detail that uses the ressources.
Python itself is only the interpreter, what job or script it runs is the interessting part.