NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory consumption of for loop (disabled results)

Solved!
Go to solution

Hello,

i have a testsequence which contains only one subsequence.

Result recording of this subsequence is diasabled.

Result processing is also disabled.

 

In the subsequence is a for loop that runs endless.

In the for lopp are no other steps. It is only the "for" and "end".

 

Now i wonder why this construct needs memory when executing?

When i check the taskmanager in the memory-tab i see

1610MB free if not running

1600MB free after 10k loops

1500MB free after 45k loops

1400MB free after 63k loops

1300MB free after 97k loops

...

What is happening with these 300MB memory?

If the testplan runs longer it says "-1700 - Out of memory".

 

Thx

TM

0 Kudos
Message 1 of 5
(2,774 Views)

What version of TestStand are you using?  Are you running with the process model or in interactive mode?  I tested it out and got up to 700k iterations....no extra memory consumption.  And I had a step inside of the for loop that was displaying the iteration.

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 5
(2,757 Views)

Hi,

i am using TS2016 SP1 32bit on a Windows 7 64 bit running in a VirtualBox.

I disabled the model and get the same results. (Execute + Run mainsequence)

Also when selecting only the to steps "For + End " -> Run selected steps -> memory consumpetion the same.

 

 

 

0 Kudos
Message 3 of 5
(2,754 Views)
Solution
Accepted by topic author OnlyOne

My fault.

In the sequence call i only disabled Result recording of the call and not of the steps inside.

If i open the subsequence and select [x] disabled result recording for all steps then the memory does not change.

So what i saw was the result collection. (300mb are used for logging 97k times for + end.)

 

Thx for your tests

0 Kudos
Message 4 of 5
(2,751 Views)

Glad you figured it out.  Good luck!

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 5 of 5
(2,749 Views)