-
Notifications
You must be signed in to change notification settings - Fork 298
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
Save file may cause mem leak #655
Comments
Initially, I used the log interface of ap autorsa for testing. I created 15 processes and sent the log every 20ms. The memory usage increased wirelessly and very quickly. In order to rule out AP problems, I used dlt-example-user to test, and the same problem also exists. It is currently under investigation. I would like to ask if there have been similar problems before. |
I observed a phenomenon, dlt-daemon stack = 32kb in qnx, so the memory increases by 32kb each time |
I found that this problem occurs when only performing the first and third steps |
This test is wrong. When the storage is not set, it will stop when it reaches the RingbufferMaxsize. It does not stop when the storage is set. |
So I looked at dlt_offline_logstorage_behavior.c:494 |
I don't know if there are other considerations. So I just modified it myself and tested it. @minminlittleshrimp |
solvedsolved |
Hello @hush-soul |
Of course, you can check PR #666 |
Thank you for providing the fix, we will review. |
I tested it on both qnx and linux
use
dlt-daemon -d -c /etc/dlt.conf
dlt-logstorage-ctrl -c 1 -C /etc/dlt.conf -p /etc/dltlog
dlt-example-user -d 5 -n 10000 Hello123
The text was updated successfully, but these errors were encountered: