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.

Significantly increased memory usage in 3.13.0

See original GitHub issue

Issue workflow progress

Progress of the issue based on the Contributor Workflow

  • 1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox

    Please make sure the graphql-eslint version under package.json matches yours.

  • 2. A failing test has been provided
  • 3. A local solution has been provided
  • 4. A pull request is pending review

Describe the bug

3.13.0 has increased memory consumption over 3.12.0, to the point that in CI the process is OOM-killed when run against the GitLab repository.

Using 3.12.0, the job passes reliably, while on 3.13.0 it fails reliably.

To Reproduce Steps to reproduce the behavior:

(Apologies that this isn’t a minimal reproduction. If/when I have time, I’ll make one and post it here.)

For now:

  1. See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/102654.
  2. The commit fb10562ab186e39800f5006601bce362e0d0474b bumps to 3.13.0, and fails to run in CI.
  3. The commit 46548bfb0e624c4eb5fc3f8120373f8ae11dab7d moves back down to 3.12.0, and runs successfully (as does latest master)

Expected behavior

Memory usage shouldn’t be significantly higher than with 3.12.0.

Environment:

  • OS: Linux (Docker image registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-2.7.patched-golang-1.18-node-16.14-postgresql-12:rubygems-3.2-git-2.36-lfs-2.9-chrome-103-yarn-1.22-graphicsmagick-1.3.36), though probably any Linux would do.
  • @graphql-eslint/eslint-plugin: 3.13.0
  • Node.js: 16.14.0

Additional context

I suspect that https://github.com/B2o5T/graphql-eslint/pull/1222 might be implicated, since it touches some caching-related stuff and was the most significant change between 3.12.0 and 3.13.0. But that’s just a hunch.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
markriancommented, Nov 9, 2022

Sadly it still OOMs. It’s frustrating that I can’t replicate this locally 😩

I think I might just set NODE_OPTIONS=--max-old-space-size=3584 for now instead, or at least try different values.

1reaction
markriancommented, Nov 9, 2022

Huh, even with NODE_OPTIONS=--max-old-space-size=3584 it got killed 🤔

I’m going to have to put this aside for now and stay on 3.12.0 until I have more time to look into this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Memory Leak in digital signature scheme for versions 3.13.0 ...
Hello, Running the code below will produce a significant memory leak for pycryptodome versions 3.13.0 and higher.
Read more >
ibus-daemon high memory usage - Ubuntu - Launchpad Bugs
Bug Description. After surfing the web in firefox for a while, I observed that ibus-daemon was occupying a surprisingly large amount of memory ......
Read more >
Enough memory but OOM killer invoked? - Server Fault
In practice, memory usage often has big enough spikes and any logger just doing a snapshot every N seconds rarely gets a look...
Read more >
Ubuntu 14 too high memory usage [duplicate]
I am using ubuntu 14 (3.13.0-35-generic #62-Ubuntu x86_64 x86_64 x86_64) and the RAM usage usually reach the 100%. even with a just-booted ...
Read more >
rsyslogd eating up 20+ GB (!) of RAM - what evidence to gather?
I have a Ubuntu 14.04.3 box running kernel 3.13.0-74 with 32GB RAM, which features a ...
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