ServerInventoryReport | A set of scripts to create an inventory report | Dashboard library
kandi X-RAY | ServerInventoryReport Summary
kandi X-RAY | ServerInventoryReport Summary
A set of scripts to create an inventory report using PowerShell, SQL and WPF.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ServerInventoryReport
ServerInventoryReport Key Features
ServerInventoryReport Examples and Code Snippets
Community Discussions
Trending Discussions on ServerInventoryReport
QUESTION
I'm an active reader of StackOverflow as it usually helps me resolve all my issues.
But for my first question ever I'll ask your help about runspaces in Powershell, specifically for memory management.
I created some PS apps with GUI and now I use runspaces to avoid hang of the GUI when big operations are running. My problem is that I can't manage to dispose my runspaces when they are finished.
Regarding the code below, it's a simple script to try to understand how I can dispose of my runspaces. I tried to incorporate a unique runspace to monitor and dispose the app runspaces, I inspired myself from a proxb's script (huge fan btw) but it doesn't seems to work.
Everytime I execute the runspace I gain 10Mb of memory, huge leak!
Can you help me to resolve this problem please ?
...ANSWER
Answered 2018-Aug-11 at 12:56When you call $runspace.PowerShell.Dispose()
, the PowerShell
instance is disposed, but the runspace that it's tied to is not automatically disposed, you'll need to do that first yourself in the cleanup task:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ServerInventoryReport
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page