[GH-ISSUE #4920] Running multiple frp server instances in bulk to reduce memory usage #3882

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

Originally created by @TheKhanj on GitHub (Aug 9, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4920

Describe the feature request

I tend to run multiple frps server instances (separate processes) for different configurations. However, this approach consumes a significant amount of memory.

I have a couple of questions:
1. Is there currently a feature in frp to run multiple server instances in a “bulk” or consolidated way (e.g., within a single process)?
2. If not, would running them in bulk actually reduce the overall memory usage in practice? I assume it might due to shared resources.
3. If this is beneficial, do you see this as something that should be implemented as part of frp itself, or should I instead create another CLI/tool that uses frp as a library (if that’s possible at all)?

This could be helpful for setups that require many frp instances without the overhead of separate processes.

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @TheKhanj on GitHub (Aug 9, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4920 ### Describe the feature request I tend to run multiple frps server instances (separate processes) for different configurations. However, this approach consumes a significant amount of memory. I have a couple of questions: 1. Is there currently a feature in frp to run multiple server instances in a “bulk” or consolidated way (e.g., within a single process)? 2. If not, would running them in bulk actually reduce the overall memory usage in practice? I assume it might due to shared resources. 3. If this is beneficial, do you see this as something that should be implemented as part of frp itself, or should I instead create another CLI/tool that uses frp as a library (if that’s possible at all)? This could be helpful for setups that require many frp instances without the overhead of separate processes. ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [x] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Aug 10, 2025):

Generally, you don’t need a large number of frps instances; with just a few, memory isn’t an issue. If you have special requirements, implementing your own extensions/scaling may be more appropriate.

<!-- gh-comment-id:3172520797 --> @fatedier commented on GitHub (Aug 10, 2025): Generally, you don’t need a large number of **frps** instances; with just a few, memory isn’t an issue. If you have special requirements, implementing your own extensions/scaling may be more appropriate.
Author
Owner

@TheKhanj commented on GitHub (Aug 10, 2025):

Ok then, thanks :)🙏

<!-- gh-comment-id:3172522652 --> @TheKhanj commented on GitHub (Aug 10, 2025): Ok then, thanks :)🙏
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#3882
No description provided.