Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Latest commit

 

History

History
13 lines (10 loc) · 776 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 776 Bytes

sentry-domain-memory-leak

This repo contains a reproduction of an issue related to getsentry/sentry-javascript#7031.

Reproduction instructions

  • Clone the repo and run yarn install
  • Run docker pull ubuntu
  • Run node --inspect index.js
  • Attach a debugger and look at the memory consumption; it should be ~10MB.
  • Make a request to http://localhost:80/ in your browser.
  • Look at the memory consumption in the debugger; it should be about 300MB and should stay that way even after manually triggering a garbage collection.
  • Stop the server, remove all Sentry-related code from index.js, and repeat the above steps. Note that memory consumption should fall back to ~10MB either immediately or after triggering a garbage collection.