Garbage Collector configuration not respected when running SQCLI (and possibly SQX)

My machine has 256GB RAM, and so I do not expect to run into memory problems. Even at the maximum setting of 128GB RAM allocated to a single SQX instance, when I am using ParallelGC with some large projects I experience the 'OutOfMemoryError' after some time when I have saved lots of strategies.



As a result, I have switched over to the G1 collector to see if it improves things. 


However, when I start SQX CLI via the command prompt, I see that this configuration option I have picked (and confirmed on a restart of the main program that it is still selected in the configuration files) is not respected by the launcher, as it still clearly uses ParallelGC.




Attachments
image-0.png
(62.09 KiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

MW
#1

Goon

16.07.2021 20:26

Task created

MW
#2

Goon

16.07.2021 20:28
Voted for this task.
MW
#3

Goon

16.07.2021 20:29
This also makes me doubt whether the config is applied correctly to the main application as well as the CLI. 
MW
#4

Goon

17.07.2021 00:38
Ahhh, I now see that the runtime config for each .exe is in their associated config file. So for sqcli.exe to use G1 I'll need to copy over the option -XX:+UseG1GC in place of the option -XX:+UseParallelGC in the sqcli.config file!
MW
#5

Goon

17.07.2021 02:58
Same deal with the heap memory limit, being added to the main application config but not the command line interface, which in retrospect may well have been the source of my memory problems: - option -Xmx128g


This is a pretty crucial part of running things - I think a reasonable solution would be to mirror config changes on the main application to the sqcli.config file, as there's no intuitive way to change CLI-specific config without modifying the file itself, and this might be misleading for many users (myself included..). 

TT
#6

Tamas

01.06.2022 15:01

Status changed from New to Fixed

It was fixed in SQX135. Each app has a separate config file...for cli there is a config file sqcli.config

Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please