FAQ  •  Register  •  Login

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

<<

Paul C

DLNA master

Posts: 283

Joined: Wed Feb 17, 2016 3:46 pm

Location: Essex, UK

Post Mon Oct 14, 2019 2:10 pm

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

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.
Serviio Pro v2.3, DBpoweramp & Asset UPnP (R7.4), HP Elitebook, HP Pavilion, Windows 10 Pro, Linn Majik DS/1, NEET AirstreamPro renderer, Naim NAC72/NAP140 (x2), Celestion Ditton 25 and Spendor A5 speakers, WD TV Media Player (x2), Panasonic Blu-ray DMP-BDT360, Panasonic TV, Amazon Fire 7 HDX, Kazoo & BubbleUPnP apps, Qobuz Studio Hi-Res.
<<

atc98092

User avatar

DLNA master

Posts: 5214

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Tue Oct 15, 2019 3:14 am

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

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.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Oct 20, 2019 4:09 pm

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

yes, gives the max allowed memory serviio can consume. it might help increasing it for very large libraries.
<<

Paul C

DLNA master

Posts: 283

Joined: Wed Feb 17, 2016 3:46 pm

Location: Essex, UK

Post Thu Nov 14, 2019 10:21 am

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

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?
Serviio Pro v2.3, DBpoweramp & Asset UPnP (R7.4), HP Elitebook, HP Pavilion, Windows 10 Pro, Linn Majik DS/1, NEET AirstreamPro renderer, Naim NAC72/NAP140 (x2), Celestion Ditton 25 and Spendor A5 speakers, WD TV Media Player (x2), Panasonic Blu-ray DMP-BDT360, Panasonic TV, Amazon Fire 7 HDX, Kazoo & BubbleUPnP apps, Qobuz Studio Hi-Res.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Nov 20, 2019 8:25 pm

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

I'd stick with defaults, unless you run into OutOfMemory errors or extreme slowness when browsing the library.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 60 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.