Hi,
Is there a way to set JVM Arguments via config file for BM or is this only possible if we run BM from command line?
Thanks,
How to set Xms and other JVM Arguments
-
- Site Admin
- Posts: 278
- Joined: Mon Jun 11, 2018 11:44 am
- Has thanked: 2 times
- Been thanked: 31 times
Re: How to set Xms and other JVM Arguments
You can set those in shortcut, but you basically still have to run it as you would from command line. (...javaw -Xmx6G -Xms6G....)
Note that you'll need to set some arguments to lock locale, specifically -Duser.language=en
That being said - I'm not sure I see much benefit in setting Xms (as opposed to Xmx, which you can set from bookmap UI under "Settings" menu), as that's the initial memory allocation (not maximal). I mean, I see a few cases, like if you have some other memory-hungry process that could use up the memory that bookmap suddenly needs at some point, but that's a pretty exotic case.
Note that you'll need to set some arguments to lock locale, specifically -Duser.language=en
That being said - I'm not sure I see much benefit in setting Xms (as opposed to Xmx, which you can set from bookmap UI under "Settings" menu), as that's the initial memory allocation (not maximal). I mean, I see a few cases, like if you have some other memory-hungry process that could use up the memory that bookmap suddenly needs at some point, but that's a pretty exotic case.