Whenever I open a Powershell prompt either via the built in shell or through ConEmu, Powershell's memory usage is excessively high - usually around 1.5 Gb.
It's worse opening as an Administrator where it jumps between 1Gb and 2Gb roughly every second.
Removing everything from my ~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1
file has no effect.
Running [System.Gc]::Collect()
takes memory usage down to ~30Mb and it stays that way.
How can I find out what is causing this high usage? Most Powershell memory advice I can find is to do with high usage when running scripts whereas my shell appears to be doing nothing.
Windows 10, Build 1703.
Get-Module
should give you a list of loaded ones. Did this start recently?Microsoft.PowerShell.Utility
andPSReadline
loaded.