René's URL Explorer Experiment


Title: AbortSignal.any() causes memory leak · Issue #54614 · nodejs/node · GitHub

Open Graph Title: AbortSignal.any() causes memory leak · Issue #54614 · nodejs/node

X Title: AbortSignal.any() causes memory leak · Issue #54614 · nodejs/node

Description: Version v22.6.0 Platform Microsoft Windows NT 10.0.22631.0 x64 Linux ****** 4.4.0-22621-Microsoft #3672-Microsoft Fri Jan 01 08:00:00 PST 2016 x86_64 x86_64 x86_64 GNU/Linux Subsystem https://nodejs.org/api/globals.html#class-abortsignal...

Open Graph Description: Version v22.6.0 Platform Microsoft Windows NT 10.0.22631.0 x64 Linux ****** 4.4.0-22621-Microsoft #3672-Microsoft Fri Jan 01 08:00:00 PST 2016 x86_64 x86_64 x86_64 GNU/Linux Subsystem https://nodej...

X Description: Version v22.6.0 Platform Microsoft Windows NT 10.0.22631.0 x64 Linux ****** 4.4.0-22621-Microsoft #3672-Microsoft Fri Jan 01 08:00:00 PST 2016 x86_64 x86_64 x86_64 GNU/Linux Subsystem https://nodej...

Opengraph URL: https://github.com/nodejs/node/issues/54614

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AbortSignal.any() causes memory leak","articleBody":"### Version\n\nv22.6.0\n\n### Platform\n\n```text\nMicrosoft Windows NT 10.0.22631.0 x64\r\nLinux ****** 4.4.0-22621-Microsoft #3672-Microsoft Fri Jan 01 08:00:00 PST 2016 x86_64 x86_64 x86_64 GNU/Linux\n```\n\n\n### Subsystem\n\nhttps://nodejs.org/api/globals.html#class-abortsignal\n\n### What steps will reproduce the bug?\n\nRun this and watch memory usage. \r\n \r\n\r\n```javascript\r\nconst formatMemoryUsage = (data) =\u003e `${Math.round(data / 1024 / 1024 * 100) / 100} MB`;\r\n\r\nlet memoryData = process.memoryUsage();\r\nconsole.log('Mem before loop', formatMemoryUsage(memoryData.rss));\r\n\r\nfor (let i = 0; true; i++) {\r\n    const abortController = new AbortController();\r\n    const signal = abortController.signal;\r\n    const composedSignal = AbortSignal.any([signal]);\r\n\r\n    if (i === 1000000) {\r\n        break;\r\n    }\r\n}\r\n\r\nmemoryData = process.memoryUsage();\r\nconsole.log('Mem after 1 million iteration', formatMemoryUsage(memoryData.rss));\r\n```\r\n\r\nThis is what I get on my local machine \r\n![image](https://github.com/user-attachments/assets/af4db4cd-c1bf-4e51-a0b1-c61e747894f6)\n\n### How often does it reproduce? Is there a required condition?\n\nAlways reproducible as far as I can tell\n\n### What is the expected behavior? Why is that the expected behavior?\n\nMemory post loop execution should be fairly equivalent to the first log but somehow the `const composedSignal = AbortSignal.any([signal]);` does not get cleaned up from memory, I would expect this to get cleaned properly or if this is the intended behavior to have a clear warning in the documentation. \n\n### What do you see instead?\n\nWe see a memory leak that will eventually lead to an out of memory error. \n\n### Additional information\n\nThis has been tested on Node 22.6 on different machine and both Windows + Unix versions. Happy to provide more details if needed ","author":{"url":"https://github.com/Furzel","@type":"Person","name":"Furzel"},"datePublished":"2024-08-28T17:16:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/54614/node/issues/54614"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:19583eef-e7ee-433f-c9d1-d35ed2b9b846
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA8AE:2BE1C0:8A478:BA72C:6A4C108E
html-safe-nonce3e4f56250051405843ab505965eb3890c55153767beb6cc010c8201a544ef2e8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEFFOjJCRTFDMDo4QTQ3ODpCQTcyQzo2QTRDMTA4RSIsInZpc2l0b3JfaWQiOiI1MzQ5NTQ1NTIzMTY5NDY0NDYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5fa119c0a5c6cb12d50ec91e2e13cb111cef928de686b3b85a1c73a6d7ff5ad9
hovercard-subject-tagissue:2492621511
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/54614/issue_layout
twitter:imagehttps://opengraph.githubassets.com/21b0714a31f8b4e35e821f4c1882529b51eca5fa63c351fc0b3d38329ff4d15c/nodejs/node/issues/54614
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/21b0714a31f8b4e35e821f4c1882529b51eca5fa63c351fc0b3d38329ff4d15c/nodejs/node/issues/54614
og:image:altVersion v22.6.0 Platform Microsoft Windows NT 10.0.22631.0 x64 Linux ****** 4.4.0-22621-Microsoft #3672-Microsoft Fri Jan 01 08:00:00 PST 2016 x86_64 x86_64 x86_64 GNU/Linux Subsystem https://nodej...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameFurzel
hostnamegithub.com
expected-hostnamegithub.com
None0ccfc9e5281bfe12e38a4d632dc422843e4d5b6757917f7efda2f6567d72fea9
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release18812876666a23a0912556e224383baa4c84cf8e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/issues/54614#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F54614
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F54614
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/54614
Reloadhttps://github.com/nodejs/node/issues/54614
Reloadhttps://github.com/nodejs/node/issues/54614
Please reload this pagehttps://github.com/nodejs/node/issues/54614
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/issues/54614
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.4k https://github.com/nodejs/node/issues
Pull requests 967 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
AbortSignal.any() causes memory leakhttps://github.com/nodejs/node/issues/54614#top
abortcontrollerIssues and PRs related to the AbortController APIhttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22abortcontroller%22
memoryIssues and PRs related to the memory management or memory footprint.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22memory%22
https://github.com/Furzel
Furzelhttps://github.com/Furzel
on Aug 28, 2024https://github.com/nodejs/node/issues/54614#issue-2492621511
https://nodejs.org/api/globals.html#class-abortsignalhttps://nodejs.org/api/globals.html#class-abortsignal
https://private-user-images.githubusercontent.com/2779334/362385966-af4db4cd-c1bf-4e51-a0b1-c61e747894f6.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODMzNzAxNzAsIm5iZiI6MTc4MzM2OTg3MCwicGF0aCI6Ii8yNzc5MzM0LzM2MjM4NTk2Ni1hZjRkYjRjZC1jMWJmLTRlNTEtYTBiMS1jNjFlNzQ3ODk0ZjYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDcwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA3MDZUMjAzMTEwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWQ3ZTQyMDM0MDg4M2I3MjA3OWY4N2JkZDQ1MTg5NzVmNjgwMTI4YmIyMGNlZmI5YjMzMGVjMWJmMzllN2E5MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.ynWsnMSiPu0bgeTRXmalfn94TmqQmiAo8Ti_xrtgbEM
abortcontrollerIssues and PRs related to the AbortController APIhttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22abortcontroller%22
memoryIssues and PRs related to the memory management or memory footprint.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22memory%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.