Kodi Krypton RC3 strange RAM usuage

I’ve been running Kodi on my QNAP NAS for about 2 years now have worked right up through from v14 when I first got the NAS to Krypton RC3.

I’ve noticed recently Kodi using quite a large amount of RAM, more than I’ve experienced in the past. When I first boot Kodi up its using about 360MB of RAM which is perfectly reasonable. I’ve watched locally stored content like movies, tv shows and also listend to flac / MP3 music. The RAM tends to hover around the same mark only moving up or down a few MB. The problem comes when I start streaming content like radio or YouTube add on. The RAM seems to just keep increasing and increasing until playback is stopped when it’ll just stay at what ever level it’s at.

My partner uses the YouTube add on to listen to music so this is used on a daily basis. Before my last restart of Kodi it’s ram usage was up to 1.8GB which seems extremely high. Even once playback had stopped usages remained at this level. I leave Kodi on 24/7 so it never really has a chance to get rid of this usage.

Running a 3 minute music video on YouTube at 720p takes my ram from 322MB to 375MB which then dropped to 347 after playback. Playing the same video again ram goes from 347 to 384 then 377 once playback is stopped. It doesn’t seem too bad but when you have a playlist with 100 videos each making the ram increase by 20MB each time it soon adds up.

Is this normally behaviour for Kodi, should it be doing this or should the ram be staying around the same usage and not constantly increasing?

I have no advanced settings configured relating to buffer or cache.

Any help or suggestions would be greatly appreciated.