Page 1 of 1

"Repeat Test" causes high CPU usage

Posted: May 31st, 2025, 4:59 pm
by sunnyd24
After running "Repeat Test", the 'SABnzbd.exe' process consumes very high CPU usage (>40%) on 5/6 cores, driving CPU to 4.08GHz.
This kicks off the CPU fan into overdrive.
In around 10 seconds, the test completes and sends back success results for all items. After 10 seconds, disk usage is at 0.1MB/s, and network usage 0 MB/s, but CPU usage is still >40%.

Waiting around 6 minutes (with or without web interface browser tab opened), or, restarting SABnzbd from Web interface resolves the high CPU usage, until "Repeat Test" is run again. This behaviour seems to be very repeatable.

Debug logs show spamming of the "Request GET /api from 127.0.0.1" at very short intervals but not for the whole 6 minutes, so may not be the real cause, see below:

Code: Select all

2025-05-31 22:32:38,112::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'queue', 'start': '0', 'limit': '20', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100275'}
2025-05-31 22:32:38,113::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'history', 'failed_only': '0', 'start': '0', 'limit': '50', 'archive': '0', 'last_history_update': '1', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100276'}
2025-05-31 22:32:40,141::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'queue', 'start': '0', 'limit': '20', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100277'}
2025-05-31 22:32:40,143::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'history', 'failed_only': '0', 'start': '0', 'limit': '50', 'archive': '0', 'last_history_update': '1', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100278'}
2025-05-31 22:32:42,109::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'queue', 'start': '0', 'limit': '20', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100279'}
2025-05-31 22:32:42,110::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'history', 'failed_only': '0', 'start': '0', 'limit': '50', 'archive': '0', 'last_history_update': '1', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100280'}
2025-05-31 22:32:44,117::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'queue', 'start': '0', 'limit': '20', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100281'}
2025-05-31 22:32:44,118::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'history', 'failed_only': '0', 'start': '0', 'limit': '50', 'archive': '0', 'last_history_update': '1', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100282'}
2025-05-31 22:32:46,108::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'queue', 'start': '0', 'limit': '20', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100283'}
2025-05-31 22:32:46,110::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'history', 'failed_only': '0', 'start': '0', 'limit': '50', 'archive': '0', 'last_history_update': '1', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100284'}
2025-05-31 22:32:48,112::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'queue', 'start': '0', 'limit': '20', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100285'}
2025-05-31 22:32:48,113::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'history', 'failed_only': '0', 'start': '0', 'limit': '50', 'archive': '0', 'last_history_update': '1', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100286'}
2025-05-31 22:32:50,116::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'queue', 'start': '0', 'limit': '20', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100287'}
2025-05-31 22:32:50,117::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'history', 'failed_only': '0', 'start': '0', 'limit': '50', 'archive': '0', 'last_history_update': '1', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100288'}
2025-05-31 22:32:51,134::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'queue', 'start': '0', 'limit': '20', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100289'}
2025-05-31 22:32:51,135::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'history', 'failed_only': '0', 'start': '0', 'limit': '50', 'archive': '0', 'last_history_update': '1', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100290'}
2025-05-31 22:32:51,861::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'status', 'skip_dashboard': '0', 'calculate_performance': '0', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100291'}
2025-05-31 22:32:52,147::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'queue', 'start': '0', 'limit': '20', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100292'}
2025-05-31 22:32:52,233::DEBUG::[interface:144] Request GET /api from 127.0.0.1 [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0] {'mode': 'history', 'failed_only': '0', 'start': '0', 'limit': '50', 'archive': '0', 'last_history_update': '1', 'output': 'json', 'REMOVED': '<REMOVED>', '_': '1748727100293'}
SABnzbd 4.5.1
Windows 11, 23H2

Any ideas, or is this a bug in SABnzbd that needs looking at?

Re: "Repeat Test" causes high CPU usage

Posted: June 3rd, 2025, 12:49 am
by safihre
Since it has never been reported before, I have no clue what could cause this on your system.
In any case, just don't hit Repeat Test?

Re: "Repeat Test" causes high CPU usage

Posted: June 3rd, 2025, 1:45 am
by sunnyd24
When I mean "repeat test", it applies to first test run too.

I could just not use this function as suggested, however is it useful to use to understand when the set up is not correct and what may be limiting the system performance.

This recent behaviour is coupled with the 'Internet bandwidth' test showing a really slow reported speed at most 8mbps, but speedtest.net and fast.com show much greater speeds 500mbps+, as well as download speed at 99.5 MB/s+.

Re: "Repeat Test" causes high CPU usage

Posted: June 3rd, 2025, 2:35 am
by sander
During the test, which process is causing the high CPU usage? Check with Windows / Task Explorer (I don't know the exact name)?

If you turn off your firewall and your virusscanner, and repeat the test: still high CPU usage, and low results?

Re: "Repeat Test" causes high CPU usage

Posted: June 3rd, 2025, 6:03 am
by sander
Plus:

You're on Windows, with pre-built SABnzbd binary?

At http://127.0.0.1:8080/config/ ... what is the python version?

For example: "Python Version: 3.13.3"

Re: "Repeat Test" causes high CPU usage

Posted: June 3rd, 2025, 7:27 am
by sunnyd24
In task manager, is shows up as "SABnzbd.exe" when CPU usage is high.

Yes, pre-built SABnzbd binary.
Python Version: 3.13.2 (tags/v3.13.2:4f8bb39, Feb 4 2025, 15:23:48) [MSC v.1942 64 bit (AMD64)] [cp1252]

I will try without firewall and virus scanner too, will post back details when done.

Re: "Repeat Test" causes high CPU usage

Posted: June 5th, 2025, 2:29 am
by safihre
Hmmm, I can reproduce this now also in my laptop...

Re: "Repeat Test" causes high CPU usage

Posted: June 5th, 2025, 2:53 am
by sander
> Python Version: 3.13.2

Hmm, 3.13.2 reports a high Internetspeed on Linux, but reports a low Internetspeed on Windows?

See https://github.com/sabnzbd/sabnzbd/issu ... 2942809909

Re: "Repeat Test" causes high CPU usage

Posted: June 5th, 2025, 4:29 am
by sunnyd24
Thanks for the github issue info, interesting behaviours noted indeed!

Re: "Repeat Test" causes high CPU usage

Posted: June 8th, 2025, 4:44 am
by sander
It seems solved (both resported speed and high CPU usage), by changes on sabnzbd.org / cloudflare server side.

Can you check again?