Stream-Viewer-Chat-Bot
Stream-Viewer-Chat-Bot copied to clipboard
Possible Memory Leak
Describe the bug The used RAM by StreamViewerBot process dramatically increases over time. It starts normally 300-400 MB. After starting around 10 bots, again, no problem. However, after some time, RAM usage starts to increase. It is more noticeable after a couple of hours.
To Reproduce Steps to reproduce the behavior:
- Start program as usual.
- Start 10-15 bots non-Headless to watch any live stream on Twitch.
- Open Task Manager.
- See that RAM usage by StreamViewerBot process is about 300-500 MB on Task Manager.
- Wait a couple of hours (Even before 1 hour, you will notice the increase of RAM usage).
- See that RAM usage is increased.
Screenshots
Desktop (please complete the following information):
- OS: Windows 10
- Chrome Version 103.0.5060.114 (Official Build) (64-bit)
- Bot Version 3.0.2
- Twitch stream service
Additional context Note that it is only for StreamViewerBot process. Usage of Chrome processes can be seen separately on Task Manager normally, each eating about 300-400 MB.
Additional note: It may be related to #175 as we can see that RAM usage has been increased there also. Some kind of memory pressure could cause that unexpected behavior.
P.S. I could debug this. However, I cannot build the application on my machine right now as there is no development branch I can see, and BotCore is deleted, so I cannot build the project even on main branch.