Title: Angular Router numeric matrix parameters can exhaust memory during SSR · Issue #70716 · angular/angular · GitHub
Open Graph Title: Angular Router numeric matrix parameters can exhaust memory during SSR · Issue #70716 · angular/angular
X Title: Angular Router numeric matrix parameters can exhaust memory during SSR · Issue #70716 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description Angular Router stores matrix parameters in regular JavaScript objects. Numeric parameter names such as: /a;990;2522 behave very differentl...
Open Graph Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description Angular Router stores matrix parameters in regular JavaScript objects. Numeric parameter names suc...
X Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description Angular Router stores matrix parameters in regular JavaScript objects. Numeric parameter names suc...
Opengraph URL: https://github.com/angular/angular/issues/70716
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular Router numeric matrix parameters can exhaust memory during SSR","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nrouter\n\n### Is this a regression?\n\nNo\n\n### Description\n\nAngular Router stores matrix parameters in regular JavaScript objects.\n\nNumeric parameter names such as:\n\n```text\n/a;990;2522\n```\n\nbehave very differently in V8 compared with normal string keys.\n\nFor example, these two paths have the same length and contain the same number of matrix parameters:\n\n```text\n/a;990;2522\n/a;aaa;bbbb\n```\n\nbut the numeric version uses significantly more memory.\n\nDuring Angular SSR, this difference becomes large enough that a relatively small burst of concurrent requests can exhaust the Node.js heap.\n\nI tested this through Nginx using request sizes that still fit within its normal 8 KiB request-line limit:\n\n| V8 old space | Concurrent requests | Segments/request | Request path size |\n| ---: | ---: | ---: | ---: |\n| 256 MiB | 12 | 742 | 8,162 B |\n| 512 MiB | 22 | 742 | 8,162 B |\n\nWith a 256 MiB heap, 12 concurrent requests using the numeric version consistently terminate the SSR worker with:\n\n```text\nJavaScript heap out of memory\n```\n\nThe same-size control using normal string keys completes successfully and Angular remains healthy.\n\nThe reproduction briefly keeps requests active for 500 ms so that their SSR work overlaps consistently. This is only to make the memory difference easy to reproduce.\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://github.com/SkyZeroZx/angular-router-ssr-oom-lab","author":{"url":"https://github.com/SkyZeroZx","@type":"Person","name":"SkyZeroZx"},"datePublished":"2026-09-14T02:31:06Z","url":"https://github.com/angular/angular/issues/70716"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:3dd80bef-697b-bcca-b8c6-29545676b1ea |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCE6:9F736:B6DE:EDFE:6AFDD04F |
| html-safe-nonce | 6622ab5edf47a8beca81b6e1b1534cb3e23ea80b03485b35da439f78852c7950 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0U2OjlGNzM2OkI2REU6RURGRTo2QUZERDA0RiIsInZpc2l0b3JfaWQiOiI3NTI5MDU4NzQ4MDU3MTEyNjU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c6bf9904734f0e1c81dda7acd13477ba628005af470b98f05322703a74ce046f |
| hovercard-subject-tag | issue:5444480894 |
| 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/angular/angular/70716/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e118428865bd61bd846cf2cfb1d95d94c9ef9a4ecbeb891db0f8157a722a057e/angular/angular/issues/70716 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e118428865bd61bd846cf2cfb1d95d94c9ef9a4ecbeb891db0f8157a722a057e/angular/angular/issues/70716 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description Angular Router stores matrix parameters in regular JavaScript objects. Numeric parameter names suc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SkyZeroZx |
| hostname | github.com |
| expected-hostname | github.com |
| None | 26886a40b582b821a7a76351e0a2f42b6d6160854b6e2520db24f31fd7be5da7 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| 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 | 68ebaa631a1d248d69ebde4b9c5defd3a19aeb2f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width