byteframe Posted February 4, 2019 Report Share Posted February 4, 2019 sorry to whine, but I am suffering from a memory leak issue with the version 4 branch. After disabling all my code, except for one account logging in, (and doing nothing) it still leaks. I left the one idle account running doing nothing and after about a day or so it exceeded the ~1.5 GB of heap the node process (by default) can use. I then downgraded to 3.9.2 and it's fine now. I restored all the code and all the accounts are running and its been 12 hours now and memory usage is proper and garbage collecting is happening. It kinda seems like garbage collecting wasnt happening with v4, but I'm not sure exactly, as I didn't play around much with --expose-gc, yet. I quick glance suggested I couldnt just hack around this with manual global.gc() calls, but that would have probably been fine with me. This happens on Linux and Windows, and im using node lts 10, linux from now on. What version does the the doctor use, btw? I wish could be of more help, I tried generating heapdumps, but It locked up my machine, and I cant seem to get 'node-memwatch' installed/compiled, which had some event I maybe later could listen to that detects leaks. All the accounts are 'assigned/joined/ to a steam group chat however, a idle ghost town chat with nobody chatting in there, so maybe its likething related to (other) group chat events. Ill try to test this out next with an account who is not joined to a group chat. thanks for looking. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted February 5, 2019 Report Share Posted February 5, 2019 I'm using v10 right now. I just set up a couple processes running on my Linux server generating heapdumps hourly. I'll let it run for a day or so and see what I can come up with. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted February 6, 2019 Report Share Posted February 6, 2019 Well, it's been over 24 hours now and both my test processes are still low on memory usage: WS: 2019-02-06 00:43:13 - rss: 134.3 MB, heapTotal: 59 MB, heapUsed: 49.5 MB, external: 173.9 KB TCP: 2019-02-06 00:43:27 - rss: 147.6 MB, heapTotal: 57.9 MB, heapUsed: 49.3 MB, external: 81 KB One is connected to Steam using a WebSocket, the other using TCP. Both have just logged on and gone online on Steam, nothing more. Also, neither has crashed. Node v10.15.0. Quote Link to comment Share on other sites More sharing options...
byteframe Posted February 7, 2019 Author Report Share Posted February 7, 2019 are they joined to a group chat? all my accounts currently are. Ill try one without. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted February 7, 2019 Report Share Posted February 7, 2019 They weren't; I've just joined them to one. Quote Link to comment Share on other sites More sharing options...
byteframe Posted February 7, 2019 Author Report Share Posted February 7, 2019 ok thank you for taking the time to test this out. if you cant find aything Ill have to resume banging my head against the wall on this Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted February 25, 2019 Report Share Posted February 25, 2019 Can you please give v4.4.4 a shot and let me know if it improves anything? Quote Link to comment Share on other sites More sharing options...
byteframe Posted March 1, 2019 Author Report Share Posted March 1, 2019 Certainly. Quote Link to comment Share on other sites More sharing options...
byteframe Posted March 1, 2019 Author Report Share Posted March 1, 2019 It still leaks memory like mad, but I'm convinced it's my fault, even though it is ok with the older branch. I think it's something related to my chat handling. I'll keep trying. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted March 1, 2019 Report Share Posted March 1, 2019 Since updating to 4.4.4, my memory-leak test setup isn't doing too badly. Just ~150 MB per instance. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted March 14, 2019 Report Share Posted March 14, 2019 My test instances still haven't gone above 150 MB (although one of them crashed on Tuesday because Steam gave it an InvalidPassword... stay classy Valve) so I'm going to go ahead and end this experiment. One of them was sending a chat message to a chat room both bots were in every second or so and still there was no significant memory usage. Quote Link to comment Share on other sites More sharing options...
byteframe Posted March 19, 2019 Author Report Share Posted March 19, 2019 thank you very much for checking it out. Quote Link to comment Share on other sites More sharing options...
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.