Check if we haven't reached maximum memory when loading into databank

see this task: https://roadmap.strategyquant.com/tasks/sq4_2488



It can happen that there are so many strategies that they crash the program. 
We should check if there is at least 10% of free memory, and if not then don't create a new ResultsGroup or stop build process.


- In strategy loader before Resultsgroup is created - make a check, and if it fails throw an exception and don't load the strategy. Stop also loading other strategies if it is mass load.


- in Builder/Retester/Optimizer - check this everytime when strategy is saved into databank. If it fails don't add strategy and stop the project.


To get memory usage use: MemoryUsage.getMax(),getUsed()




Experiment with 10% boundary - if it is enough. Maybe it should be 15%, or some exact amount in MBs.

Attachments
No attachments
  • Votes 0
  • Project StrategyQuant X
  • Type Feature
  • Status Fixed
  • Priority Normal

History

MF
#1

Mark Fric

15.08.2018 19:25

Task created

TB
#2

Tomas Brynda

20.08.2018 14:22

Status changed from New to Fixed


Votes: 0

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please