System.OutOfMemoryException
Author: vilyashe
Creation Date: 10/30/2008 9:53 PM
profile picture

vilyashe

#1
Error processing symbol CL Exception of type 'System.OutOfMemoryException' was thrown.



I am getting this exception when I am processing portfolio with large number of symbols on V5.1. Is there any way to increase max heap size for the Application?
profile picture

Eugene

#2
How large is your number of symbols and historical data depth? How complex is your Strategy? Which operating system and memory size?

Please see Out of memory problems in WL5 Wiki FAQ.
profile picture

vilyashe

#3
Number of Symbols is 100. And it's not a very complex strategy. My physical memory on the box is 4GB and when I am getting this 'System.OutOfMemoryException' there is a lot of physical memory is still available. I believe it's actual application does have some heap size limitation. Is there any way to increase it for WL 5.1 just like you can increase it for any java application by setting up -Xms parameter on the start up line?
profile picture

Eugene

#4
QUOTE:
Is there any way to increase it for WL 5.1 just like you can increase it for any java application by setting up -Xms parameter on the start up line?

WL5 is not a Java application (it's .NET). Perhaps the situation with memory will be improved for 64-bit operating system users with 5.3 that should become 64-bit OS-friendly.

As suggested by the Wiki link above, first try more obvious things like: estimate the amount of memory required to build the data series, optimize your coding, turn off any Performance Visualizer you can, break up an MSB, and call Bars.Cache.Clear.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).