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

Running multiple scripts at the same time out of 8G memory, resulting in failure #30809

Closed
kongbai-16 opened this issue Dec 31, 2024 · 2 comments

Comments

@kongbai-16
Copy link

Test code to reproduce

How much memory is generally recommended to run cypress on how many servers? How many scripts can you run on 8 gigabytes of RAM? How to reduce the memory consumption of scripts?
To run with java code, start ten cypress run almost at the same time to run ten scripts.
The following happens:
1、Out of memory failed to run
2、Browser response timeout

1

Cypress Mode

cypress run

Cypress Version

13.10.0

Browser Version

Edge

Node version

v16.20.2

Operating System

win10

Memory Debug Logs

No response

Other

No response

@MikeMcC399
Copy link
Contributor

MikeMcC399 commented Dec 31, 2024

How much memory does the server recommend?

Your question about memory recommendations is answered already in https://docs.cypress.io/app/get-started/install-cypress#Memory which says: "4GB minimum, 8GB+ for longer test runs"

How many scripts can be parallelized at the same time? How many scripts can you run in 8GB?

This issue list is primarily for reporting issues with the documentation, not for asking support or "how-to" type questions. You may however be able to get some feedback and help from the Cypress technical community on Discord regarding the second part of your question.

Discord chat (click on button)

Cypress parallelization is described under https://docs.cypress.io/cloud/features/smart-orchestration/parallelization

@MikeMcC399
Copy link
Contributor

Please note the comment in the Cypress documentation:

https://docs.cypress.io/cloud/features/smart-orchestration/parallelization

Cypress can run recorded tests in parallel across multiple machines. While parallel tests can also technically run on a single machine, we do not recommend it since this machine would require significant resources to run your tests efficiently.

Additionally Node.js 16.x is no longer supported. See https://docs.cypress.io/app/get-started/install-cypress#Nodejs for currently supported versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants