-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed - connection leak during high load with few connections #5971
- Loading branch information
Nikita Koksharov
committed
Jun 26, 2024
1 parent
ca4dae1
commit 3c1c90f
Showing
3 changed files
with
44 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3c1c90f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel 100 is too big in real application.
how about reduce to 5 or 10 or even smaller ?
3c1c90f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing out. I managed to reproduce the issue with your test and
Flux.range(1, 8000)
, so I reduced it to25
. Less values, even 2 can't help to resolve issues withFlux.range(1, 10000)
3c1c90f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking is any way to catch that StackOverflow Error and print something in error log?
because once it happen, it's so difficult to notice.
but because it's JVM error, maybe nothing we could do.
3c1c90f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't catch it. Do you?
3c1c90f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when I test by
I found CompletableFuture could catch it , but I didn't check how it work
3c1c90f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more we add those local variable in stack memory, less recursive it could run