5 months ago
I am experiencing some issues with the application's RAM consumption. I do not understand why this is happening.
The bot's purpose is to execute requests at specified intervals. The first screenshot shows how the memory consumption graph steadily increases as requests are executed (4 requests every 5 seconds and 1 every 10 seconds). But as soon as I turned off tracking, the graph stabilized and consumption remained at a steady 1 gigabyte (as shown in the second screenshot).
I am almost certain that there is a memory leak somewhere in the code and that something is being stored in RAM after the requests. But I can't figure out what exactly it is. To fix the problem, I tried to set up
parallelization by connecting a semaphore and adding an HTTP adapter with restrictions. But that didn't help, and the bot continues to accumulate something in memory as it executes requests.
I am attaching the two main files through which the main tracking logic occurs.
4 Replies
5 months ago
Does the same behavior occurs if you run this code locally?
5 months ago
To be honest, I checked it out
5 months ago
I'll check right now.
5 months ago
Memory usage is maintained at 52 MB, even though all workers are running for tracking purposes.
Perhaps I am not looking in the right place, but I launched the bot from the console

