- ago
After 2 hours running an Optimization Job of Shrinking Window Optimization, WL start freezing & I have to start again & again
0
473
13 Replies

Reply

Bookmark

Sort
- ago
#1
I used to have that problem when running with 16 GB memory. I built a new machine with 64 GB memory and haven't seen that problem since. So, maybe memory is the limitation. Your mileage may vary.
0
- ago
#2
I also have 64 GB of RAM
0
- ago
#3
Some Ideas:
* observe memory usage in Task Manager. After an initial growth the memory usage should stay (nearly) constant for most of the time.
* If memory usage increases: There is a memory leak somewhere.
* Does it happen with another (simple) strategy? (If not your strategy has a memory leak)
* Does it happen with another optimizer? (If not the shrinking window optimizer has a problem)

I run big optimizations with 16 GB of memory. Memory usage in Task Manager is about 12GB for Windows, and WL and a big optimization.


0
- ago
#4
OK I see now an error message in the Log



How can I fix it?
0
- ago
#5
QUOTE:
OK I see now an error message in the Log

It has nothing to do with optimizations and/or freeze.
0
- ago
#6
So what is the problem?

WL is freezing in the middle of doing Optimization
0
Cone8
 ( 24.80% )
- ago
#7
There's no information here. You should start by describing the "freeze". How did you determine "freeze". How are you sure that nothing's happening? Dr. Koch suggested monitoring memory - is it moving/increasing? How many variables are there? How many symbols? What scale? What's the data range? About how many bars in each series? Did you try a different optimizer? .. give us SOMETHING to work with. One big image of the WealthLab environment can be a big help. You know the drill Sam.
0
- ago
#8
To add to Cone's reply, don't forget about DrKoch's question re: another strategy. You've got enough things to test/try.
0
Glitch8
 ( 9.89% )
- ago
#9
Also, paste the memory view of the Windows performance monitor. It sounds like your memory is getting consumed, but with 64g that’s hard to imagine. If you can send the strategy to us via email I can try it locally.
0
- ago
#10
OK I emailed you the file
0
- ago
#11
The "Index out of Range" error in Reply# 4 "might" cause an object to become larger and larger in memory. It would be advised to place the strategy code in a try/catch block and have the catch block dump a trace of this failure and identify which object it is. WL has a nice error logger, but you have to write a catch{} routine to use it. (I would just use brute force and comment out code lines until the problem disappeared.)

My guess is that there's an object that's declared in such a way that its "over extended scoping" doesn't allow it to reclaim memory when it needs to. But troubleshooting this might require an experienced oops programmer that can judge the merits of the declarations and how their corresponding objects are scoped.

Maybe an article about declarations and scoping is in order which gives more explanation about the life expectancy of an object. This isn't something the "casual" C# coder may know about.

I seriously doubt it's a problem with the optimizer; otherwise, we would all be seeing it.
0
Glitch8
 ( 9.89% )
- ago
#12
Hi kls, I optimized your strategy without any issues. What settings are you using in the Shrinking Window optimizer?
0
- ago
#13
Profit by High matric

200 x 200
0

Reply

Bookmark

Sort