OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: andrema2 on July 06, 2020, 10:59:23 PM

Title: unknown Python 3.7 causing spikes on CPU
Post by: andrema2 on July 06, 2020, 10:59:23 PM
Hi

On the 20.1.8_1 version, I'm seeing spikes that takes 100% of CPU caused by a Python 3.7.

I don't know how I can find out what is this Python program. Any suggestion is welcome
Title: Re: unknown Python 3.7 causing spikes on CPU
Post by: mimugmail on July 07, 2020, 05:59:42 AM
It might be insight traffic aggregation. Can you try to stop local netflow and see if it stops?
Title: Re: unknown Python 3.7 causing spikes on CPU
Post by: Marin BERNARD on July 07, 2020, 08:54:01 AM
Try to monitor system process with top:


Then just wait for some spike to happen, and note the python command invocation string.

If the console width is too narrow, either use an ssh / tty connection with a maximized window (run resizewin on tty to have the terminal fit the dimensions of the window).
Title: Re: unknown Python 3.7 causing spikes on CPU
Post by: jds on July 07, 2020, 02:21:04 PM
I have a similar problem, but specifically with maltrail. Are you running that?
Title: Re: unknown Python 3.7 causing spikes on CPU
Post by: andrema2 on July 07, 2020, 02:29:29 PM
Quote from: jds on July 07, 2020, 02:21:04 PM
I have a similar problem, but specifically with maltrail. Are you running that?

No, I have not.

Quote from: marinbernard-pep06 on July 07, 2020, 08:54:01 AM
Try to monitor system process with top:


  • Launch top

I'll try it. Thanks
  • Press "s", then "1", then ENTER to set the refresh interval to 1 second
  • Press "a" to show full command strings
  • Press "i" to hide idle processes

Then just wait for some spike to happen, and note the python command invocation string.

If the console width is too narrow, either use an ssh / tty connection with a maximized window (run resizewin on tty to have the terminal fit the dimensions of the window).