Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [Bug] FATAL ERROR In Backend Tests, Because We Run Out Of Memory #5180

Open
1 of 3 tasks
Tirokk opened this issue Aug 15, 2022 · 0 comments
Open
1 of 3 tasks

🐛 [Bug] FATAL ERROR In Backend Tests, Because We Run Out Of Memory #5180

Tirokk opened this issue Aug 15, 2022 · 0 comments
Labels
bug Something isn't working service: backend

Comments

@Tirokk
Copy link
Member

Tirokk commented Aug 15, 2022

🐛 Bug Report

FATAL ERROR in backend tests, because we run out of memory.
Same happens often in GitHub Actions.
See screen shot:

Locale:

Bildschirmfoto 2022-08-15 um 12 28 58

GitHub Actions:

Bildschirmfoto 2022-08-15 um 12 58 11

Additional Informations

Possible Reasons

Show Memory Usage

https://stackoverflow.com/questions/62885390/my-jests-tests-are-leaking-memory-how-can-i-fix-this

Solutions

But this is just because the heap size seems not to be limited to 2 GB.
Like you can see if you add --logHeapUsage to the jest test call.
Or even change the call to cross-env NODE_ENV=test node --expose-gc ./node_modules/.bin/jest --runInBand --logHeapUsage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working service: backend
Projects
No open projects
📒 Ocelot.social
Awaiting triage
Development

No branches or pull requests

2 participants