How to set Xms and other JVM Arguments

Custom indicators, trading strategies, data export and recording and more...
blk
Posts: 44
Joined: Fri Nov 01, 2019 8:59 pm
Has thanked: 7 times

How to set Xms and other JVM Arguments

Post by blk » Sun Feb 07, 2021 6:20 pm

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,
 

Svyatoslav
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

Post by Svyatoslav » Mon Feb 08, 2021 11:09 am

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.

Post Reply