question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extremely high memory usage

See original GitHub issue

Steps to reproduce

Run pwsh.exe

Expected behavior

The shell should open quickly and use very little memory.

Actual behavior

The shell opens, doesn't get to the prompt very quickly, then once running each pwsh.exe process uses rougly 250Mb of RAM (!!!)
For daily use this is not acceptable when compared to my typical shell workflow.

Environment data

Loading personal and system profiles took 2136ms.
PS C:\projects> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.2.1
PSEdition                      Core
GitCommitId                    6.2.1
OS                             Microsoft Windows 10.0.18362
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22

github_iconTop GitHub Comments

2reactions
photexcommented, Jul 17, 2019

I’d reckon high memory usage for a shell that’s sitting idle to be a very specific and trackable issue. I’d love to see this situation improve.

As cool as it may be, it’s not worth the price of entry as a daily use shell. If you’re honestly cool with your idle terminals consuming over a Gb of RAM then more Power to you.

1reaction
iSazonovcommented, Jul 18, 2019

Ok I’ve tracked down the major consumer of RAM which was the AWS tools for PsCore.

If it uses Web cmdlets from PowerShell Core it is known issue and we have a tracking issue(s) for them (web cmdlets consume a lot of memory)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix High RAM Memory Usage Issue on Windows 11/10 ...
High Memory Usage is a state where Windows computers' RAM, ROM, or Cache usage grows to an extremely high level. Windows 10 high...
Read more >
Windows 10 High Memory Usage [Causes and Solutions]
How to Fix Windows 10 High Memory Usage · Close unnecessary programs. · Disable startup programs. · Disable Superfetch service. · Increase virtual ......
Read more >
High memory usage. How to fix them
1) See fixes for high RAM usage: · 2) Optimize Virtual Memory: · 3) Type Resource in Search box, open Resource Monitor as...
Read more >
How to Fix High Memory Usage in Windows
How to Fix High Memory Usage in Windows · 1. Close Unnecessary Programs and Applications · 2. Remove Unwanted Programs from Your PC...
Read more >
Top 12 Fixes: High RAM/Memory Usage on Windows 11/10
1. Close Excessive Programs 2. Reduce the Number of Startup Programs 3. Check to See if Superfetch Is Disabled 4. Select Best Performance...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found