[GH-ISSUE #2036] frps crashing, freezing when 300 + clients connected #1618

Closed
opened 2026-05-05 13:02:03 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @jembem on GitHub (Oct 21, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/2036

frps crashing when there is 300 - 400 + and more clients connecting to frps

I'm using vps with 1 GB of RAM

all clients got enabled http proxy plugin

I have specified in frps config max_pool_count=100000, because there is alot of connections is it good ?

why it is crashing ?

and when there is not specified max_pool_count in frps config then I'm unable to connect with client proxies

if 50 - 100 clients are connected then all seems to working good, but when 300 + clients are connected then it crashing or it is not possible to connect.

Originally created by @jembem on GitHub (Oct 21, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/2036 frps crashing when there is 300 - 400 + and more clients connecting to frps I'm using vps with 1 GB of RAM all clients got enabled http proxy plugin I have specified in frps config max_pool_count=100000, because there is alot of connections is it good ? why it is crashing ? and when there is not specified max_pool_count in frps config then I'm unable to connect with client proxies if 50 - 100 clients are connected then all seems to working good, but when 300 + clients are connected then it crashing or it is not possible to connect.
gitea-mirror 2026-05-05 13:02:03 -06:00
Author
Owner

@hallkk commented on GitHub (Oct 22, 2020):

"By default, frps creates a new frpc connection to the backend service upon a user request. With connection pooling, frps keeps a certain number of pre-established connections, reducing the time needed to establish a connection."

<!-- gh-comment-id:714179372 --> @hallkk commented on GitHub (Oct 22, 2020): "By default, frps creates a new frpc connection to the backend service upon a user request. With connection pooling, frps keeps a certain number of pre-established connections, reducing the time needed to establish a connection."
Author
Owner

@fatedier commented on GitHub (Oct 25, 2020):

  1. Do not set too many pool count.
  2. Monitor your VPS for cpu and memory info.
<!-- gh-comment-id:716089742 --> @fatedier commented on GitHub (Oct 25, 2020): 1. Do not set too many pool count. 2. Monitor your VPS for cpu and memory info.
Author
Owner

@github-actions[bot] commented on GitHub (Dec 10, 2020):

Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.

<!-- gh-comment-id:742168341 --> @github-actions[bot] commented on GitHub (Dec 10, 2020): Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.
Author
Owner

@nlvedwin commented on GitHub (Oct 20, 2023):

hi @fatedier do you think frps can take thousands of clients? but of course with good server specs.

<!-- gh-comment-id:1772234129 --> @nlvedwin commented on GitHub (Oct 20, 2023): hi @fatedier do you think frps can take thousands of clients? but of course with good server specs.
Author
Owner

@fatedier commented on GitHub (Oct 20, 2023):

hi @fatedier do you think frps can take thousands of clients? but of course with good server specs.

Yes.

<!-- gh-comment-id:1772239379 --> @fatedier commented on GitHub (Oct 20, 2023): > hi @fatedier do you think frps can take thousands of clients? but of course with good server specs. Yes.
Author
Owner

@landrix commented on GitHub (Oct 25, 2023):

What are good server specs for 300+ clients?

<!-- gh-comment-id:1778473200 --> @landrix commented on GitHub (Oct 25, 2023): What are good server specs for 300+ clients?
Author
Owner

@fatedier commented on GitHub (Oct 25, 2023):

What are good server specs for 300+ clients?

@landrix This is difficult to estimate, I suggest you actually test it. 300 clients with empty loads cannot be compared to 300 clients with full loads.

If I remember correctly, I once simulated tens of thousands of idle frpc connections on my 16-inch Mac Pro without any user data transmission. Of course, due to memory issues, all these frpc instances were running in a single process.

<!-- gh-comment-id:1778499562 --> @fatedier commented on GitHub (Oct 25, 2023): > What are good server specs for 300+ clients? @landrix This is difficult to estimate, I suggest you actually test it. 300 clients with empty loads cannot be compared to 300 clients with full loads. If I remember correctly, I once simulated tens of thousands of idle frpc connections on my 16-inch Mac Pro without any user data transmission. Of course, due to memory issues, all these frpc instances were running in a single process.
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#1618
No description provided.