Here is a script that will query all your ESX hosts and create a report of what their Service Console memory is set to. Like most people I always set this to 800MB after an install, but when you are dealing with a large environment it’s all too easy to miss some. Having your Service Console memory set too low can create some very peculiar errors and cause a complete lockup of certain processes (which then requires a host reboot).
I am certainly no PowerShell expert and must credit Mr Hugo Peeters (www.peetersonline.nl) with all the logic behind the script. I just want to post the whole script so everyone can benefit.
Grab the script here. Just rename it with a “.ps1” extension, edit the script to point to your VC and run it as usual.
If the Actual and Configured values are different, this means that you’ve changed the Service Console memory but not yet rebooted.
P.S. If you do discover any hosts that aren’t set with the full 800MB, you’ll want to run a “free –m” at the Console to see how large the Swap Partition is. Hopefully this will be the recommended 1600MB, to ensure the “Service Console x 2” rule. If not, you really have 3 options:
- Leave the memory set as it is.
- Rebuild the host with the correct partitioning.
- Augment the Swap Partition with a Swap File on another partition (there are a couple of excellent forum posts explaining how to do this if you’re not sure).