How to configure tests to run on cypress so it does not go out of memory #9743
Unanswered
maga-polito
asked this question in
Docker
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm experiencing some problems to run my cypress tests inside docker image, after a while it is going out of memory and execution will never end. Docker logs displays following errors:
<--- Last few GCs --->
[748:0x1e5300000000] 4126646 ms: Scavenge 957.0 (1001.7) -> 957.0 (1001.7) MB, 2.7 / 0.0 ms (average mu = 0.611, current mu = 0.407) allocation failure
[748:0x1e5300000000] 4126651 ms: Scavenge 957.0 (1001.7) -> 956.6 (1003.9) MB, 4.7 / 0.1 ms (average mu = 0.611, current mu = 0.407) allocation failure
[748:0x1e5300000000] 4127253 ms: Mark-sweep 960.5 (1003.9) -> 960.1 (1006.7) MB, 593.2 / 0.1 ms (average mu = 0.408, current mu = 0.039) allocation failure scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory
The following error was thrown by a plugin. We stopped running your tests because a plugin crashed. Please check your plugins file (
/cypress/plugins/index.js
)Docker tests are executed with docker run command and headless chrome. Any suggestion to solve this issue?
Beta Was this translation helpful? Give feedback.
All reactions