JackTurner 3 Posted November 11, 2018 Report Share Posted November 11, 2018 If so , What are the best pracitces to go about to keep it steady, and crash free. Thanks! Quote Link to post Share on other sites
bestmacros 60 Posted November 11, 2018 Report Share Posted November 11, 2018 yes it is Enough, but you need to code auto restart mechanism every X rounds - this will free memory and resources and make it run forever. Quote Link to post Share on other sites
JackTurner 3 Posted November 11, 2018 Author Report Share Posted November 11, 2018 Okay interesting, Can you give me an example because it seems like my bots keep crashing, or freezing. The tables I use , use ubots memory, what about big tables? How are they working yes it is Enough, but you need to code auto restart mechanism every X rounds - this will free memory and resources and make it run forever. Quote Link to post Share on other sites
Brutal 164 Posted November 11, 2018 Report Share Posted November 11, 2018 Check out Pash's plugins....he includes memory management on one of them. Quote Link to post Share on other sites
HelloInsomnia 1103 Posted November 12, 2018 Report Share Posted November 12, 2018 Don't store the data in the bot, ideally store it in a database like SQLite. If you let data pile up too long it's going to increase the memory usage. Try to keep your custom commands/functions simple and straightforward. Use the parameters - don't be using global for everything. Be really careful with recursion. Use http commands whenever possible and if you use http post don't forget to clear headers and objects. 1 Quote Link to post Share on other sites
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.