rustdesk / rustdesk-server

RustDesk Server Program
https://rustdesk.com/server
GNU Affero General Public License v3.0
6.75k stars 1.46k forks source link

high cpu usage on windows server 2019 #186

Open playla2 opened 1 year ago

playla2 commented 1 year ago

Hi! i got some trouble with hbbs.exe. i try it on Windows 10, everything is great! but on windows server 2019 hbbs.exe sets CPU load 100%. sometimes hbbs.exe works fine 5-10 mins, but then CPU 100% load. hbbs.exe runs in cmd.exe, not installed service. i try to run it "hbbs.exe -r 127.0.0.1", to get no client connection. but geting 100% CPU load. i try nssm install servive, but result is same. i try it in guest windows server 2019 in Hyper-V, on 2 different hyper-v hosts.i try it on different physical PCs. but everytime 100% CPU load. i can try another build windows server 2019, but in production i cant reinstall it. guest windows10 on the same Hyper-V host + same VM settings works great, no problems! hbbs

rustdesk commented 1 year ago

We have no env to reproduce it.

0Knot commented 1 year ago

Win10 system 22H2 19045.2486 CPU: Intel(R) Core(TM) i5-9300H CPU Rust Desk client version: 1.1.9

After the connection, the Rust Desk client has a high CPU usage. If there is a page change, the CPU will be occupied by 60-90%, and it will even reach 100% in an instant.

In the same situation, using RDP or other remote assistance software, the CPU will not exceed 20%

rustdesk commented 1 year ago

Can you try out this?

image

CrippleZero commented 1 year ago

Installed on Server 2022 Standard Edition and getting the same results. HBBS is pegging at 97%+ while all other processes are .5% or less .... attached screenshot is the same for Server 2022 from playla2

dateno1 commented 1 year ago

I has problem but fixed

ReGenerate New Keypair by rustdesk-utils and paste it to file

then Stop&ReRun hbbs/hbbr

Now All OK

Tested on Windows 7/10 x64@VM

Kylejustknows commented 6 months ago

Having the exact issue on a clean Windows Server 2016 VPS.

The HBBS.exe consumes 99% CPU, pushing the VPS automatically allocate more CPU and we got an abusing warning from the cloud supplier.

We tried regen keys, remove keys, reset db, set key=fixed, nothing worked..... After running HBBS.exe for 1~2 mins, it starts to hog 99% CPU.

The only working solution we manage to got it fix is:

Using processhacker2, look into HBBS.exe, in the Threads section, there are usually 5 threads the HBBS.exe is executing. Find the HBBS Threads with the lowest TID number (usually it is the threads using the most CPU) Set the Priority to the "Lowest".

Suddenly, The HBBS.exe would turn from using 99% CPU into using only 0.05% CPU, shockingly. And it still functions normally.

image