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

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory #8

Open
elkd opened this issue Apr 4, 2022 · 0 comments

Comments

@elkd
Copy link
Owner

elkd commented Apr 4, 2022

There is a known issue with playwright JS having a Memory leak when the same context is used for a long time, depending on the size of JS heap memory available, this issue could occur after 1 hour of running the bot. See this issue

A quick fix could be trying to flush the objects by creating a new context let's say after every 30 minutes. Since state.json is already stored this shouldn't be a very big problem. The current stake, LDP, stop profit/loss also needs to be stored before destroying and recreating a new context.

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

No branches or pull requests

1 participant