-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance issue with open file descriptors #615
Comments
What does this mean? 100 concurrent http request? Could you put together a reproduction with a script that does this? |
Yes, but could also be more than 50. By connection i mean connection (onConnectionInternal) which happens to be a fd on linux in terms of nodejs and incoming after onParseHeadersComplete in nodejs is an actual request in terms of express server.js const express = require('express'); //latest 4.x promMetrics(server); server.get('/status', (req, res) => res.send('{"status":"ok"}'); const port = process.env.PORT || 3000; metrics.js const promMetrics = (router) => { now create cpu profiler or flame graph for example start with `
` artillery run test.yml at the same time call /metrics and observe |
High cpu usage and from blocking file IO
Steps to reproduce
add default nodejs metrics
create 100 connections
Collect cpu profile and check this appears on top: https://github.com/siimon/prom-client/blob/master/lib/metrics/processOpenFileDescriptors.js#L25
Version 15.1.0
OS: RedHat Linux 8
Node: 18.18.2
The text was updated successfully, but these errors were encountered: