rustdesk / rustdesk/rustdesk-server
hbbr using unexpected amount of memory and error out after a day in self-hosted setup
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 10.4k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
When I use the self hosted server, it works for a day but the server would consistently fail after some time (1-2 days). When looking into it I found the following.
Jun 28 20:34:19 ip-172-31-0-49 hbbr[422]: memory allocation of 488135971 bytes failed
Jun 28 20:34:19 ip-172-31-0-49 systemd[1]: rustdesk-hbbr.service: Main process exited, code=killed, status=6/ABRT
Jun 28 20:34:19 ip-172-31-0-49 systemd[1]: rustdesk-hbbr.service: Failed with result 'signal'.
Jun 28 20:34:19 ip-172-31-0-49 systemd[1]: rustdesk-hbbr.service: Consumed 8.722s CPU time.
The server works after a restart.
Describe the environment
Installed on AWS EC2 instantce. Since rustdesk is quite lightweight, I used t3.nano instance with only 0.5GB of memory allocated. During normal operation this seems to be perfectly sufficient, but occationally I get the above error message, it seems hbbr is asking for a lot of memory sometimes.
Is this expected behabior? Also this is quite similar to issue #96 which was not fully explained.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the hbbr failure on the AWS EC2 t3.nano setup and reviewing the reported allocation and systemd logs alongside issue #96. Done means identifying why memory grows or a large allocation occurs after 1–2 days and documenting or addressing the cause.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, rust
- Domain
- backend, cloud, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100