Page 1 of 1

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

PostPosted: Thu Nov 18, 2021 9:57 pm
by zomabes
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.
192.168.l.l routerlogin 192.168.0.1
What typical values could be used without wasting memory?

I cannot find any detailed guidance.

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

PostPosted: Fri Nov 19, 2021 12:42 am
by atc98092
It is used to expand the assigned memory for the Java virtual machine. In most cases there's no need to ever change it. I believe 1024 is the most any install should ever need. I personally have never encountered a need to change it. My primary Serviio machine has about 6000 media files. I know some users have far more than that, and perhaps increasing the memory is needed for them. It shouldn't make any difference for transcoded files, as FFMPEG is its own independent application, and isn't Java based. My personal thought is that it's mainly to support the Derby database, which is Java based.