Closed HarvelsX closed 3 months ago
Old tasks were already being cancelled, I've removed the redundant scheduling when there is no messages however the real impact is probably next to zero.
@jpenilla, every clock cycle a new task was scheduled, even if the previous one was canceled, the scheduling costs could play a role. If necessary, I can provide a memory dump with many tasks of this lambda.
If the file is not too large I guess I can take a look, but I do not see any way for a meaningful memory leak (or any memory leak at all) to happen here, the tasks are not capturing the previous task or anything like that.
@jpenilla, here are some screenshots from Eclipse MAT and the dump itself
hprof: https://drive.google.com/file/d/1RMt15DhFI2G-1e9aZ5QXhq1kCJlNHQT8/view
Looks like some sort of bug with the async scheduler or another plugin
f201bb1ef190f0c61385dcaca560f4aa71bb53a1 this will avoid the issue
another plugin
It's also a possibility, I'll continue to look into issue when similar problems arise.
Thanks a lot for the very fast support, you are the best!
Describe the bug If no messages are available on the broadcast, the plugin cyclically schedules to process a message queue with no messages in it, which causes constant scheduling.
To Reproduce
messages=[]
)Expected behavior Ignoring scheduling of tasks without messages, or optimizing scheduling
Screenshots
Server Software and Version:
Suggestions for solutions Remove recursive scheduling