Page 1 of 1

High Memory Usage

PostPosted: Sun Oct 23, 2016 7:08 am
by Dypsis
ServiioService.exe is using 320 MB.
Is that acceptable to be running with that much all the time?
Version 1.6.1 used only a fraction of that.

Serviio v1.6.1 is using 70 MB.
Serviio v1.7.1.1 is using 320 MB.

To me, that is too high.
I also have other DLNA servers running at only a fraction of what Serviio v1.7.1.1 is using.

I like this application, but in my opinion the memory usage of Serviio v1.7.1.1 is far too high.

Re: High Memory Usage

PostPosted: Sun Oct 23, 2016 11:48 am
by dominotes
Hello Dypsys,

I'm new with Serviio, so maybe I'm wrong :
The serviio app uses java; java caches all your thumbnails (according to the limit set in the serviio.sh script : see # Execute the JVM in the foreground
exec "$JAVA" -Xmx10G -Xms2G)

The more memory you have, the more serviio CAN use it.
This makes serviio faster if you recall an already visited page. Or if someone else uses one already visited page. No need to access the hard disk again !
So yes, consider this as an advantage.

In my case, I've seen serviio (java process) using up to 9 Gb, that is more than your 320 Mb !

You can reduce the max amount of memory serviio can use, just edit your file (I'm running linux, but you have something similar under WIndows)
But your serviio will not be as fast as it could.

Memory = fast
No memory = slower.

Developers could confirm.

Note : servioo does not only cache thumbnails, but titles, etc which use less memory compared to thumbnails.

Re: High Memory Usage

PostPosted: Tue Sep 13, 2022 10:41 am
by smiffypr
I have just installed serviio on my windows 10 "server". When I added a couple of media folders, the system memory use gradually increased from around 8GB to 15.9GB (out of 16GB) at which point the system became unresponsive. (At this point the C drive is working flat out paging). I had to force a restart then quickly uninstall serviio before the memory was gobbled up again. I have tried old versions as well as the latest versions, but the only way that I have found that I don't run out of memory in a few minutes is to only have one media folder set up. In the past I had serviio running on a laptop with a much smaller number of media files, but never noticed this phenomenon. As Java is mentioned above, I wonder if it could be due to a java update?
Any ideas of how to avoid this.

Re: High Memory Usage

PostPosted: Tue Sep 13, 2022 2:35 pm
by atc98092
I'm looking at my main Serviio install. It's on a Windows 10 computer with 8 GB of RAM. There are two instances of Serviio Service running, with one using 164 MB of memory and one using 0.1 MB. Serviio is currently using no more than 3% of the CPU (quad core i5), and is usually less than 1%, and the computer hasn't been rebooted for several days, with the more recent Windows update. I have no Java processes running at the moment other than the updater background service. Of course, there is no device streaming from my server at the moment.

My C drive is an SSD, but other than Serviio being installed on it I don't use the C drive for anything else for Serviio. I have the transcoding folder on a different, standard hard drive, and all my media is stored on other normal hard drives.

Remember that when you first set up Serviio, it is scanning your media folders and retrieving metadata for each file. Depending on the number of titles in your media library, this process could take some time. That would register as increased resource use, but would eventually complete and your resource use should be similar to mine.