Simple server stops responding after 16000+ requests for multiple seconds #4727
Replies: 0 comments 3 replies
|
I don't see a large GC pause. The last two take only ~3 ms. You're probably looking at the first number ( |
|
It's possible that the GC pause might be a red herring. The thing is that the program stops responding to requests for some time and there is a higher probability that GC message appears here (since there are no more request logs present at the time). |
|
GC is a more or less continuous activity so that's not surprising. You're probably running out of ephemeral ports; 16,000 is around the usual range on most systems. ab is also an infamously terrible benchmarking tool; try e.g. wrk instead. Last but not least, benchmarking on macOS is like trying to drive a Ferrari on a dirt road. Try tarmac^WLinux instead. I see no reason to suspect a node bug so far so I'll go ahead and convert this to a discussion. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Version
v18.16.0
Platform
Darwin *** 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:43 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T8112 arm64
Subsystem
net
What steps will reproduce the bug?
When running a simple server, after 16300+ requests program stops responding for multiple seconds with what seems like a large GC pause.
How often does it reproduce? Is there a required condition?
It happens every time I run ab with more than 16300+ requests on Apple M2 Macbook. I couldn't reproduce this on a laptop with ubuntu installed.
What is the expected behavior? Why is that the expected behavior?
The program should continue serving the requests.
What do you see instead?
When running a simple server, after 16000+ requests program stops responding for multiple seconds with what seems like a large GC pause.
Additional information
It seems to be happening on multiple versions of Node (tried 16 and 18). Also happening on M1 Macbook Pro with 16,18,20
All reactions