Page 1 of 1

What does System property -Xmx....m do?

PostPosted: Mon Oct 14, 2019 2:10 pm
by Paul C
What does -Xmx...m memory option in the "Supported system properties" do and how is it configured?

What will trigger memory shortages?

I have one server set to -Xmx1024m (twice the basic memory).
What impact/benefit does it have for performance, index handling, audio (including handling large hi-res files) or is it mainly for video impact.

What typical values could be used without wasting memory?
I cannot find any detailed guidance.

Re: What does System property -Xmx....m do?

PostPosted: Tue Oct 15, 2019 3:14 am
by atc98092
Paul C wrote:What does -Xmx...m memory option in the "Supported system properties" do and how is it configured?

What will trigger memory shortages?

I have one server set to -Xmx1024m (twice the basic memory).
What impact/benefit does it have for performance, index handling, audio (including handling large hi-res files) or is it mainly for video impact.

What typical values could be used without wasting memory?
I cannot find any detailed guidance.


I believe (and could be wrong) that this setting is for reserving memory for Java. I use a Java application at work that can benefit from assigning additional memory, especially with 64 bit processing. For transcoding it should be of little value, as FFMPEG doesn't run in Java. But how it might improve overall Serviio performance, Zip will have to chime in here.

Re: What does System property -Xmx....m do?

PostPosted: Sun Oct 20, 2019 4:09 pm
by zip
yes, gives the max allowed memory serviio can consume. it might help increasing it for very large libraries.

Re: What does System property -Xmx....m do?

PostPosted: Thu Nov 14, 2019 10:21 am
by Paul C
zip wrote:yes, gives the max allowed memory serviio can consume. it might help increasing it for very large libraries.

Zip Thanks for your post but this is the problem -
How much memory ? and
how big is a large library ?

I now have memory set to -Xmx1536m on a 64-bit Win 10 8gb machine (i.e three times the default). Note this seems to be the max allowed as 2048m crashes Serviio on loading.
and the buffer set to -Dserviio.socketBuffer=655350 (i.e. ten times the default) - see my other support post viewtopic.php?f=5&t=25764

My library is 21,000 flac audio files (including some "large" hi-res), 100 video files and 7000 image files - is that a large library?

Re: What does System property -Xmx....m do?

PostPosted: Wed Nov 20, 2019 8:25 pm
by zip
I'd stick with defaults, unless you run into OutOfMemory errors or extreme slowness when browsing the library.