Title: process.constrainedMemory() should map UINT64_MAX to 0, per node documentation · Issue #59227 · nodejs/node · GitHub
Open Graph Title: process.constrainedMemory() should map UINT64_MAX to 0, per node documentation · Issue #59227 · nodejs/node
X Title: process.constrainedMemory() should map UINT64_MAX to 0, per node documentation · Issue #59227 · nodejs/node
Description: Version v22.17.1 Platform Linux#32-Ubuntu SMP Wed May 28 19:48:56 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? Execute process.contrainedMemory() on any linux machine without any define...
Open Graph Description: Version v22.17.1 Platform Linux#32-Ubuntu SMP Wed May 28 19:48:56 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? Execute process.contrainedMemory()...
X Description: Version v22.17.1 Platform Linux#32-Ubuntu SMP Wed May 28 19:48:56 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? Execute process.contrainedMemory()...
Opengraph URL: https://github.com/nodejs/node/issues/59227
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"process.constrainedMemory() should map UINT64_MAX to 0, per node documentation","articleBody":"### Version\n\nv22.17.1\n\n### Platform\n\n```text\nLinux#32-Ubuntu SMP Wed May 28 19:48:56 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nExecute process.contrainedMemory() on any linux machine without any defined constraints.\n\n### How often does it reproduce? Is there a required condition?\n\nWhen there is a constraining mechanism, but there is no constraint set\n\n### What is the expected behavior? Why is that the expected behavior?\n\nAccording to node documentation, If there is a constraining mechanism, but there is no constraint set, 0 should be returned\n\n### What do you see instead?\n\nnode\nWelcome to Node.js v22.17.1.\nType \".help\" for more information.\n> os.totalmem()\n2003443712\n> process.constrainedMemory()\n18446744073709552000\n>\n\n### Additional information\n\n[This](https://github.com/nodejs/node/blob/main/src/node_process_methods.cc#L244) code should be amended\n\nLibuv doc: https://docs.libuv.org/en/v1.x/misc.html#c.uv_get_constrained_memory\nNode doc: https://github.com/nodejs/node/blob/main/doc/api/process.md?plain=1#L1086","author":{"url":"https://github.com/Asaf-Federman","@type":"Person","name":"Asaf-Federman"},"datePublished":"2025-07-26T16:26:13Z","url":"https://github.com/nodejs/node/issues/59227"}
| 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:e3f0dfa1-6d71-1104-5ca7-e90425bd3b2c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA14:321644:102062:15E3FE:6AED35AA |
| html-safe-nonce | 4d99fd1f466425c03745438336d24d2ec058c1ed8ce6d00e7bb5bfa85fd9e138 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTE0OjMyMTY0NDoxMDIwNjI6MTVFM0ZFOjZBRUQzNUFBIiwidmlzaXRvcl9pZCI6IjIwMDYwNjU4Mzg2MTg5MTYyNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2bfccd16d1fbe76c9b59670b66115cdffbc246f06ba5ed8ab4cc7f017c52b4aa |
| hovercard-subject-tag | issue:3265864319 |
| 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/59227/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d3edab0b7171659f7c2bbf27b2e1b43df22495e164215d95256c04f26a29d14c/nodejs/node/issues/59227 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d3edab0b7171659f7c2bbf27b2e1b43df22495e164215d95256c04f26a29d14c/nodejs/node/issues/59227 |
| og:image:alt | Version v22.17.1 Platform Linux#32-Ubuntu SMP Wed May 28 19:48:56 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? Execute process.contrainedMemory()... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Asaf-Federman |
| 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