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 12, 2022
Did it work out for you?
- Mar 29, 2022Please mark my answer as solution if it answered your question
- FirmbyteMar 29, 2022Copper ContributorUnfortunately 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?