René's URL Explorer Experiment


Title: [Node.js] Excessive memory consumption when large data is stored on `IncomingRequest` object · Issue #14965 · getsentry/sentry-javascript · GitHub

Open Graph Title: [Node.js] Excessive memory consumption when large data is stored on `IncomingRequest` object · Issue #14965 · getsentry/sentry-javascript

X Title: [Node.js] Excessive memory consumption when large data is stored on `IncomingRequest` object · Issue #14965 · getsentry/sentry-javascript

Description: Description A user was reporting 2x-3x memory consumption when using the Node.js SDK. I had a chat with them and will summarize the setup and findings here. SDK setup is a very ordinary express setup with mostly SDK defaults (traces samp...

Open Graph Description: Description A user was reporting 2x-3x memory consumption when using the Node.js SDK. I had a chat with them and will summarize the setup and findings here. SDK setup is a very ordinary express set...

X Description: Description A user was reporting 2x-3x memory consumption when using the Node.js SDK. I had a chat with them and will summarize the setup and findings here. SDK setup is a very ordinary express set...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/14965

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Node.js] Excessive memory consumption when large data is stored on `IncomingRequest` object","articleBody":"### Description\n\nA user was reporting 2x-3x memory consumption when using the Node.js SDK. I had a chat with them and will summarize the setup and findings here.\n\n- SDK setup is a very ordinary express setup with mostly SDK defaults (traces sample rate: 0.5, 0.1 - doesn't matter, leaks more or less equally)\n- Requests to the service are transient\n- No long-running requests or anything\n- Large objects are stored on the `res` object (in particular large array of strings containing identifiers)\n- The memory snapshot shows that `NonRecordingSpan`s and `Span`s are holding references to the `res` object via the `_isolationScope` field.\n- The majority of these references seems to come from `NonRecordingSpan`s.\n- Interestingly, and I don't know if this is somehow relevant, the `NonRecordingSpan`s are held by very deep chains of `Timeout` objects. The user does not define any timeouts manually.\n\nMy hypothesis: We are not cleaning up `NonRecordingSpan`s \"naturally\" and keeping them in the exporter or _somewhere_ and they end up being evicted by a timeout policy. This may be in our code, or this may be in OTELs code.","author":{"url":"https://github.com/lforst","@type":"Person","name":"lforst"},"datePublished":"2025-01-09T16:21:05Z","url":"https://github.com/getsentry/sentry-javascript/issues/14965"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:be659af6-f4d2-0d8c-7e0a-69c5dd5d1a88
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id995A:225229:101577:1631E3:6B0445F9
html-safe-noncefc4f3f6240e76cfc4ffe59fa39616289dbc33e2ce4ca7da0080b5488af2171b8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTVBOjIyNTIyOToxMDE1Nzc6MTYzMUUzOjZCMDQ0NUY5IiwidmlzaXRvcl9pZCI6IjQyMDk0MzUxNDQ3ODg1NTY3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac56423593fc671888e5cdde3093d662ccda1f56115a9914c8982e8a9b8394e5be
hovercard-subject-tagissue:2778252900
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/getsentry/sentry-javascript/14965/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a69739e6f8a71e3aa4c5902f8212df0236e09c3ccf86964a7feaafd87e010649/getsentry/sentry-javascript/issues/14965
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a69739e6f8a71e3aa4c5902f8212df0236e09c3ccf86964a7feaafd87e010649/getsentry/sentry-javascript/issues/14965
og:image:altDescription A user was reporting 2x-3x memory consumption when using the Node.js SDK. I had a chat with them and will summarize the setup and findings here. SDK setup is a very ordinary express set...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelforst
hostnamegithub.com
expected-hostnamegithub.com
Noned4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
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
release9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/14965#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F14965
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F14965
Sign uphttps://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=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/14965
Reloadhttps://github.com/getsentry/sentry-javascript/issues/14965
Reloadhttps://github.com/getsentry/sentry-javascript/issues/14965
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues339 (339)https://github.com/getsentry/sentry-javascript/issues
Pull requests53 (53)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/14965
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/14965
[Node.js] Excessive memory consumption when large data is stored on IncomingRequest objecthttps://github.com/getsentry/sentry-javascript/issues/14965#top
https://github.com/lforst
Taskhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Task%22
https://github.com/lforst
lforsthttps://github.com/lforst
on Jan 9, 2025https://github.com/getsentry/sentry-javascript/issues/14965#issue-2778252900
lforsthttps://github.com/lforst
on Jan 9, 2025https://github.com/getsentry/sentry-javascript/issues/14965#event-15870385351
https://github.com/mydea
mydeahttps://github.com/mydea
on Jan 9, 2025https://github.com/getsentry/sentry-javascript/issues/14965#issuecomment-2580858998
#14806https://github.com/getsentry/sentry-javascript/pull/14806
https://github.com/lforst
lforsthttps://github.com/lforst
on Jan 10, 2025https://github.com/getsentry/sentry-javascript/issues/14965#issuecomment-2582292145
#14806https://github.com/getsentry/sentry-javascript/pull/14806
https://github.com/mydea
mydeahttps://github.com/mydea
on Jan 10, 2025https://github.com/getsentry/sentry-javascript/issues/14965#issuecomment-2582496248
AbhiPrasadhttps://github.com/AbhiPrasad
Package: nodehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Package%3A%20node%22
on Jan 13, 2025https://github.com/getsentry/sentry-javascript/issues/14965#event-15905793215
https://github.com/Msordet
Msordethttps://github.com/Msordet
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965#issuecomment-2595998118
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965#event-15963389116
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965#event-15963390007
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965
https://github.com/lforst
lforsthttps://github.com/lforst
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965#issuecomment-2596010780
@Msordethttps://github.com/Msordet
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965#event-15963452608
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965
https://github.com/Msordet
Msordethttps://github.com/Msordet
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965#issuecomment-2596041434
@lforsthttps://github.com/lforst
https://private-user-images.githubusercontent.com/45397025/403923551-088a03c2-ffd3-496e-97e4-dfb53c6384c9.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU0NDI0NzAsIm5iZiI6MTc5NTQ0MjE3MCwicGF0aCI6Ii80NTM5NzAyNS80MDM5MjM1NTEtMDg4YTAzYzItZmZkMy00OTZlLTk3ZTQtZGZiNTNjNjM4NGM5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIzVDEzNTYxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE1MDQ1MjdhOGE5YjAwMjk0OWUxZGUwMmIwZTI5NjczNThkYjI2NWQ3YTE5NWI4YTA0MWU2NDUwYmJmOTNkZmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.8QW0sxgS40UNGF3mSfIkuOtOjRd42MJsjGkf_e8kNIw
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965#event-15963635664
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965
https://github.com/lforst
lforsthttps://github.com/lforst
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965#issuecomment-2596046482
@Msordethttps://github.com/Msordet
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965#event-15963667201
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965
https://github.com/Msordet
Msordethttps://github.com/Msordet
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965#issuecomment-2596118409
@lforsthttps://github.com/lforst
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965#event-15964091996
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965
lforsthttps://github.com/lforst
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965#event-15966626656
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Jan 16, 2025https://github.com/getsentry/sentry-javascript/issues/14965
https://github.com/lforst
lforsthttps://github.com/lforst
on Feb 12, 2025https://github.com/getsentry/sentry-javascript/issues/14965#issuecomment-2653115820
lforsthttps://github.com/lforst
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 12, 2025https://github.com/getsentry/sentry-javascript/issues/14965#event-16277674636
Taskhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Task%22
on Aug 12, 2025https://github.com/getsentry/sentry-javascript/issues/14965#event-19124590755
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/14965
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/14965
lforsthttps://github.com/lforst
Taskhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Task%22
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.