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

Reduce memory usage #1197

Merged
merged 2 commits into from
Jul 6, 2022
Merged

Reduce memory usage #1197

merged 2 commits into from
Jul 6, 2022

Conversation

idinium96
Copy link
Member

@idinium96 idinium96 commented Jul 6, 2022

Should help with FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory problem, which crashes the bot. This will also significantly help reduce memory usage.
From the latest changes made on TF2Autobot/tradeoffer-manager, the bot will only cache trade history for only up to 200 trades only, from the original 1100.

Some screenshots:

Before:
image1

After:
image

Some bots can even go lower than that. It's based on the bot trades history.

@idinium96 idinium96 merged commit d6dca00 into development Jul 6, 2022
@idinium96 idinium96 mentioned this pull request Jul 8, 2022
@idinium96 idinium96 deleted the reduce-memory-usage branch July 8, 2022 13:35
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

Successfully merging this pull request may close these issues.

1 participant