TradeSampah Posted January 2, 2023 Report Posted January 2, 2023 (edited) Hi, I created a bot that only have task to auto accept trade and deployed it in 2GB Linux VPS. When I start the bot it's fine, but after about 10-20 seconds, the memory usage will spike until max and the bot crashed. I tried to run in my local that have 16GB RAM and I noticed the same spike at every 10-20 seconds interval and will eat around 1.5GB-2GBish of the RAM. So my question is the requirement for RAM must be higher than 2GB or I did something wrong? For reference, my code almost the same as in https://github.com/prasunroy/steam-bot/blob/master/bot.js . I deleted everything and left only the part of "manager.on('newOffer')". Edited January 2, 2023 by TradeSampah Quote
Dr. McKay Posted January 3, 2023 Report Posted January 3, 2023 Memory usage is normal when you're specifying a language to the TradeOfferManager constructor, which retrieves item descriptions automatically. If you have very limited memory and are processing a lot of trades, then you want to omit your language to opt out of receiving item descriptions. TradeSampah 1 Quote
TradeSampah Posted January 17, 2023 Author Report Posted January 17, 2023 After I remove the language, RAM usage back to reasonable. Thanks a lot sir. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.