I have a job that runs a workflow that opens up a powershell connection, queries a SQL table, if nothing to do, closes the powershell session and again waits one minute and starts again. My issue is I keep seeing the memory of my powershell host go up and up. Not sure why the close session is not killing my winRM session. The powershell script exits properly, but each time the workflow runs it creates a new WinRM plugin process eating up all the memory. I also noticed I am re-using the same powershell ID for each iteration. Is this a bug or a feature?
Thank you
-Stephen