Title: HTTP2 server memory explodes and terminated · Issue #52952 · nodejs/node · GitHub
Open Graph Title: HTTP2 server memory explodes and terminated · Issue #52952 · nodejs/node
X Title: HTTP2 server memory explodes and terminated · Issue #52952 · nodejs/node
Description: Version 20.13.0 and later, including latest 22.x Platform Linux hostname 6.5.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the ...
Open Graph Description: Version 20.13.0 and later, including latest 22.x Platform Linux hostname 6.5.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem No...
X Description: Version 20.13.0 and later, including latest 22.x Platform Linux hostname 6.5.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem No...
Opengraph URL: https://github.com/nodejs/node/issues/52952
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"HTTP2 server memory explodes and terminated","articleBody":"### Version\n\n20.13.0 and later, including latest 22.x\n\n### Platform\n\nLinux hostname 6.5.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64 x86_64 x86_64 GNU/Linux\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nI may need some help to narrow down the problem as it happens sporadically.\r\n\r\nCurrently I only know that it happens after:\r\n\r\n1. A session created.\r\n2. The server `pushStream` to the client (and callback called).\r\n3. The client sends a request to create another stream and the server hangs.\r\n\r\nI have tested with versions 20.10.0, 20.11.0, 20.12.0 and 20.12.1 and there's no problem. But since 20.13.0 the issue appears.\n\n### How often does it reproduce? Is there a required condition?\n\n_No response_\n\n### What is the expected behavior? Why is that the expected behavior?\n\n_No response_\n\n### What do you see instead?\n\nI tried to use `--inspect` and pause on hanging (also the memory usage increases rapidly to several gigabytes and then terminated by OS I think) but no luck.\r\n\r\nAnd tried `--prof` there's part of that looks suspicious:\r\n\r\n```\r\n ticks parent name\r\n 27305 70.6% /usr/bin/node\r\n 24662 90.3% JS: ^submitRstStream node:internal/http2/core:450:25\r\n 24662 100.0% JS: ^finishCloseStream node:internal/http2/core:1963:27\r\n 24662 100.0% JS: ^closeStream node:internal/http2/core:1930:21\r\n 24662 100.0% JS: ^_destroy node:internal/http2/core:2325:11\r\n 24662 100.0% JS: ^_destroy node:internal/streams/destroy:90:18\r\n```\r\n\r\nI am not a security guy but at first I thought it's something related to HTTP2 rapid reset attack and spent a whole day debugging towards that. At the end of the day I decided to downgrade Node.js and found out the older version just works.\n\n### Additional information\n\nAlso the HTTP2 server is on internet but generally only used by myself. Though I do saw a Russian IP connecting it periodically and that's also why I thought it was an attack.\r\n\r\nBut it also happens with only my own clients connected.","author":{"url":"https://github.com/vilicvane","@type":"Person","name":"vilicvane"},"datePublished":"2024-05-12T04:27:30Z","url":"https://github.com/nodejs/node/issues/52952"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1eeba7d4-8f75-3b39-ec91-831064ea7978 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8884:32386D:8B1909:B4DC4A:6AED3737 |
| html-safe-nonce | 2fd22add192fc5e7564a24e62acb83312bc99bdaef73013a1d6acc73563c51d9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODg0OjMyMzg2RDo4QjE5MDk6QjREQzRBOjZBRUQzNzM3IiwidmlzaXRvcl9pZCI6IjY4MjgxODU2NjA5MDk1MDAyMTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 158413f553402e91a1277267d16eb4fe4abefb742e0de86bad8e361b80bd30ed |
| hovercard-subject-tag | issue:2291160966 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/52952/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2e0ba8a8664036d46bc726fc8ac98f072608338cbf8d2b265c6ce0e3c67574d5/nodejs/node/issues/52952 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2e0ba8a8664036d46bc726fc8ac98f072608338cbf8d2b265c6ce0e3c67574d5/nodejs/node/issues/52952 |
| og:image:alt | Version 20.13.0 and later, including latest 22.x Platform Linux hostname 6.5.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem No... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vilicvane |
| hostname | github.com |
| expected-hostname | github.com |
| None | 26c92a9388ddfad3fa88d132b5d5f0b4747030233dcc4e5efb05f1cbae152184 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c629ad99c254d306375fc8354d04321c2c362236 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width