[GH-ISSUE #4984] Abnormal memory usage #3928

Closed
opened 2026-05-05 14:30:16 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @KaiveYoung on GitHub (Sep 19, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4984

Bug Description

The compiled version of the package.sh script uses more memory than the released version downloaded from GitHub.

I'm using a Linux ARM32 architecture with 128MB of total system memory. With the same configuration file, the version downloaded from GitHub only uses 3 to 4MB, but the compiled version from package.sh uses 15MB.
I compiled using go version go1.24.6 linux/amd64

I'd like to know what environment the GitHub release version was compiled in, and why my compiled version uses so much memory.

Thank you.

frpc Version

0.64.0

frps Version

0.64.0

System Architecture

linux/arm

Configurations

[common]
server_addr = xxx.xxx.xxx.xxx
server_port = 55599
token =xxxxx
tls_enable = true
[xxxxxxxxxxxxxxxx]
type = stcp
sk = xxxx
local_ip = 127.0.0.1
local_port = 22

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @KaiveYoung on GitHub (Sep 19, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4984 ### Bug Description The compiled version of the package.sh script uses more memory than the released version downloaded from GitHub. I'm using a Linux ARM32 architecture with 128MB of total system memory. With the same configuration file, the version downloaded from GitHub only uses 3 to 4MB, but the compiled version from package.sh uses 15MB. I compiled using `go version go1.24.6 linux/amd64` I'd like to know what environment the GitHub release version was compiled in, and why my compiled version uses so much memory. Thank you. ### frpc Version 0.64.0 ### frps Version 0.64.0 ### System Architecture linux/arm ### Configurations [common] server_addr = xxx.xxx.xxx.xxx server_port = 55599 token =xxxxx tls_enable = true [xxxxxxxxxxxxxxxx] type = stcp sk = xxxx local_ip = 127.0.0.1 local_port = 22 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Sep 19, 2025):

The build environment for frp is set up in GitHub Actions; there’s nothing special about it: https://github.com/fatedier/frp/blob/dev/.github/workflows/goreleaser.yml

<!-- gh-comment-id:3311354102 --> @fatedier commented on GitHub (Sep 19, 2025): The build environment for frp is set up in GitHub Actions; there’s nothing special about it: https://github.com/fatedier/frp/blob/dev/.github/workflows/goreleaser.yml
Author
Owner

@KaiveYoung commented on GitHub (Sep 19, 2025):

thank you

<!-- gh-comment-id:3311474794 --> @KaiveYoung commented on GitHub (Sep 19, 2025): thank you
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3928
No description provided.