Forum Discussion
Firmbyte
Mar 07, 2022Copper Contributor
Huge memory consumption using ForEach-Object -Parallel
I’ve a function that updates the stats in databases using ForEach-Object -Parallel. When I run it, to loop through the stats in a database and update them, it consumes a lot of memory on the server w...
Mar 29, 2022
Please mark my answer as solution if it answered your question
Firmbyte
Mar 29, 2022Copper Contributor
Unfortunately it didn’t resolve the issue in my case. But I appreciate you responding, trying to help. My apologies for not responding before now.
- Mar 30, 2022Perhaps too much data in the foreach loop before having the chance to clear memory, where did you put it? Could you post the adjusted script?