Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mbmcf opened this issue Sep 11, 2020 · 1 comment
Open

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

mbmcf opened this issue Sep 11, 2020 · 1 comment

Comments

@mbmcf
Copy link

mbmcf commented Sep 11, 2020

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
Copy link
Contributor

centic9 commented Oct 18, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants