"Repeat Test" causes high CPU usage

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
sunnyd24
Newbie
Newbie
Posts: 10
Joined: April 17th, 2021, 9:44 am

"Repeat Test" causes high CPU usage

Post 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?
User avatar
safihre
Administrator
Administrator
Posts: 5580
Joined: April 30th, 2015, 7:35 am
Contact:

Re: "Repeat Test" causes high CPU usage

Post 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?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
sunnyd24
Newbie
Newbie
Posts: 10
Joined: April 17th, 2021, 9:44 am

Re: "Repeat Test" causes high CPU usage

Post 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+.
User avatar
sander
Release Testers
Release Testers
Posts: 9254
Joined: January 22nd, 2008, 2:22 pm

Re: "Repeat Test" causes high CPU usage

Post 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?
User avatar
sander
Release Testers
Release Testers
Posts: 9254
Joined: January 22nd, 2008, 2:22 pm

Re: "Repeat Test" causes high CPU usage

Post 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"
sunnyd24
Newbie
Newbie
Posts: 10
Joined: April 17th, 2021, 9:44 am

Re: "Repeat Test" causes high CPU usage

Post 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.
User avatar
safihre
Administrator
Administrator
Posts: 5580
Joined: April 30th, 2015, 7:35 am
Contact:

Re: "Repeat Test" causes high CPU usage

Post by safihre »

Hmmm, I can reproduce this now also in my laptop...
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 9254
Joined: January 22nd, 2008, 2:22 pm

Re: "Repeat Test" causes high CPU usage

Post 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
sunnyd24
Newbie
Newbie
Posts: 10
Joined: April 17th, 2021, 9:44 am

Re: "Repeat Test" causes high CPU usage

Post by sunnyd24 »

Thanks for the github issue info, interesting behaviours noted indeed!
User avatar
sander
Release Testers
Release Testers
Posts: 9254
Joined: January 22nd, 2008, 2:22 pm

Re: "Repeat Test" causes high CPU usage

Post by sander »

It seems solved (both resported speed and high CPU usage), by changes on sabnzbd.org / cloudflare server side.

Can you check again?
Post Reply