New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Severe memory leak detected #18
Comments
I have been running this code for several years and have never seen this problem (one of my current servers has been up for 64 days). Do you have the possibility to add information about which process that eats all the memory? (current data applies to the entire virtual server which means it could be anything) |
Hello Per, I installed the smem utility this morning and am monitoring the memory behavior. python2 ./bin/collector.py trackdirect.ini 0 Because in the morning he "ate" 314.9M: 2022.04.05 10:20:01
and in 2022.04.05 19:25:01 it became more: 464.1M
And it probably continues to grow further. I will continue to observe and inform you about the behavior of this process. |
Hi, Thank you for investigating the problem. The use of 300 Mb by the collector seems pretty reasonable, it has a in memory database to handle the the frequency limit (to reduce cpu and database usage). But if it grows much larger in just a day or two we should investigate it. I'm waiting for your update. |
The collector has a lot in memory to handle the frequency limit (to avoid having to always fetch to much from db). The intention was never for this data to be this large. I will try to reduce the amount of data that we keep in memory. |
Hi, Continue: 2.5 GB The swap is no longer zero, as before, but 414 MB. |
Hi, |
Thank you very much, Per! I am testing your improvement soon, and will inform you. |
Hi,
Immediately after the start of the application: 34.7 MB
For example, instead of https://example.com/ this: https://example.com/aprs/ What changes of code do me need to make to your products for this? |
Hi, Per, Unfortunately, the memory used is growing: 1.1 GB
|
Please try to disable the frequency limit (set collector.frequency_limit to "0") and disable duplicate detection (set collector.detect_duplicates to "0"), that will affect memory usage a lot. It should be possible to place the website at any url (including subdirectories). But if you place it in a subdirectory the "automatic" websocket url finder will not work, you need to set "websocket_url" manually in config file. |
Thanks you Per, I'll do it. |
Hi Per,
Unfortunately, in the process of using TrackDirect, a serious memory leak was discovered.
RAM or swap partition for 6-7 days overflows every time and the system collapses.
I've tried different combinations of swap partition volume and swappiness ratio 0 to 60, but it doesn't help.
So far, I have temporarily switched to a daily reboot of the system, but this is not the best solution.
Per, I very hope you will solve this annoying problem.
The text was updated successfully, but these errors were encountered: