MaxMemoryPerShellMB

by jmp8600 at 2013-04-11 08:14:18

Hello There,

is there a way to find amount of data will be using by executing invoke-commands in PSSession? how do I know which value to set MaxMemoryPerShellMB to? I have a script which work on most servers but every now and then it fails with error wsman error…after increasing MaxMemoryPerShellMB to 300 i don’t see it happening anymore…

Thx
-hp
by mjolinor at 2013-04-11 08:27:05
That’s going to depend on the command/script being executed, but probably not.

You may need to look at modifying the script to minimize the amount of memory it’s using.
by jmp8600 at 2013-04-11 08:32:11
well i am just getting properties of IIS like, AppPool configurations, memory limit, .Net version, SSL cofig etc. …why would that take over 150MB of PSSession?
by DonJ at 2013-04-11 08:40:02
Because the underlying .NET code might be huge.
by jmp8600 at 2013-04-11 09:38:13
interesting…i just have to shoot arrows in black until i hit the right size…Thx Don.