question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: MacOS "usernoted" process eats all RAM

See original GitHub issue

Do you want to request a feature or report a bug? Bug

What is the current behavior? When Jest is ran on watch mode and notify option is turned on and there are failing tests, MacOS’ usernoted process consumes too much RAM.

screen shot 2018-02-16 at 15 53 56

What is the expected behavior? There should not be any memory leaks.

Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.

"jest": {
    "coveragePathIgnorePatterns": [
      "<rootDir>/node_modules",
      "<rootDir>/release"
    ],
    "modulePathIgnorePatterns": [
      "<rootDir>/node_modules",
      "<rootDir>/release"
    ],
    "transform": {
      "^.+\\.tsx?$": "ts-jest"
    },
    "testRegex": "(/__tests__/.*|(\\.|/)(test))\\.(tsx?)$",
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js",
      "jsx",
      "json",
      "node"
    ],
    "mapCoverage": true,
    "coverageThreshold": {
      "global": {
        "branches": 100,
        "functions": 100,
        "lines": 100,
        "statements": 100
      }
    },
    "notify": true
  }
  • Jest 22.3.0
  • NPM 5.6.0
  • MacOS 10.13.3

I saw that there has been the memory issue on terminal-notifier but since this is a different process I am posting it as a separate issue.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
Guuzcommented, Apr 17, 2020

Still an issue in 2020…

10reactions
AnalyzePlatypuscommented, Dec 12, 2018

I’m getting this on Mojave 10.14

usernotesd is casually using 58GB (!!!) of RAM on my 16GB MacBook Pro. Pore over this screenshot! Aren’t the numbers beautiful?

screen shot 2018-12-12 at 9 37 07 pm
Read more comments on GitHub >

github_iconTop Results From Across the Web

usernoted process eating all memory - Apple Community
usernoted process eating all memory. Anyone out there, I need help! I own a late 2015 iMac (please attachments for further details) I...
Read more >
why is usernoted using this much of my CPU? : r/MacOS - Reddit
Even if I restart my Mac or try to force quit usernoted, it just reopens. It was also using a significant portion of...
Read more >
Why Does Your RAM Usage Keep Maxing Out on Mac?
Your RAM usage keeps maxing out on Mac because Mac OS makes the most out of available resources to maximize efficiency and performance....
Read more >
What is the `installd` process, and why is it eating my CPU?
On Mac OS 10.10.1, this setting is under System Preferences -> App Store. Looks like they re-enabled it without telling me when I...
Read more >
Constant "your system is running out of application memory"
iMac 2011 with 4 GB of RAM and 750 GB free on HD... computer is almost ... and almost all the rest of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found