first things first: Once again a big thanks for the new release!
From time to time I am running out of memory on my server because rclone has opened one file too many times. I was trying to figure out if it is a rclone or an Emby problem and I think it is an issue with Emby.
Anyways, there might be a solution for this on the rclone side… My thought:
Is there a way to limit rclone to open a file only 1 time? My logs sometimes show that a file is opened dozens of times although there is only one Emby client accessing the file.
I am not using rclone cache (might that help?) and the --chache-chunk-no-memory flag did not help here, still ran out of memory…
I hope I could explain myself, in case you have questions please let me know.
Just did a quick test and while streaming only one file on one client using lsof I could see that the file was open 16 times and that eventually leads to rclone crashing with no memory left.
So, if I got you right there is no way to limit the times a single file is opened, for instance only 2-3 times?
I will contact the people over at Emby, maybe they have a solution. Will report back!
€dit: Do you think rclone cache could solve the problem given that it probably would read from cache?