jajuk-team / jajuk

Advanded jukebox for users with large or scattered music collections
48 stars 19 forks source link

How to supply Xms & Xmx in a windows JaJuk install ? #2064

Open mbmcf opened 3 years ago

mbmcf commented 3 years ago

Hi JaJuk Team,

I see where I can change the Xms & Xmx in my Linux startup script (I use both Linux & windows).

When I go to add the parameters in a windows install, there doesn't seem to be any way to supply Xms & Xmx for JaJuk windows startup. Is there some hidden way to supply these java variables on JaJuk startup ? Windows startup is an executable file, I see Xms & Xmx buried in the executable, but can't edit the executable.

Is there any way to add Xms & Xmx in a windows JaJuk startup ?

Thank you,

Bruce McFarland

centic9 commented 3 years ago

Jajuk uses launch4j for the Windows executable.

According to https://stackoverflow.com/questions/19345517/launch4j-override-default-jvm-heap-size-via-command-line you can add an ini file to set Xmx, but according to that page it only works if there is no memory setting in the binary itself, so you can try, but it might not work.

Then your only current options would be to download the sources and re-build them with a changed memory setting or to build he java command to start Jajuk yourself out of the launch4j options file, see https://github.com/jajuk-team/jajuk/blob/master/src/packaging/windows/jajuk.launch4j and https://github.com/jajuk-team/jajuk/blob/master/src/packaging/windows/jajuk.cmd.