I have package which has 1 for each loop container which has bunch of inserts and selects.
The list that the loop iterates is about few million complex rows or so..
Package is in Integration Services catalog, where it's ran by simply executing in SSMS (no agent job).
When i look in the resource monitor, memory for the ISServerExec.exe (comparable for dtsexec.exe) is growing every second (it takes about 1 second of the for each loop to complete).
After awhile all the memory in the windows server is used and server ends up paging to disk. And then the waiting times for the loop's queries become huge, 20 - 30 seconds per query.
What I am doing wrong?