PowerShell script for Service Console memory
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).
5 Responses to PowerShell script for Service Console memory
Leave a Reply Cancel reply
Forbes Guthrie
Recent Posts
- Small update to the Reference Card
- Minor update to the vSphere 5 Reference Card
- vSphere 5 vReference Card released
- Cisco UCS boot from iSCSI SAN – ESXi design consideration
- vSphere 5 vReference card – Storage section
- Does 2008 R2 Failover Clustering require a change to the Notify Switches policy?
- vSphere 5 vReference card – Host section
- vSphere 5 vReference card – Install section
- Auto Deploy design concern
- vSphere 5 vReference card – vCenter section
Recent Comments
- honglus on How to PXE boot from your trunked vmnic0
- Sunmeet on Understanding ESXi – stateless, diskless, feckless
- Forbes Guthrie on vSphere 5 Card
- Forbes Guthrie on vSphere 5 Card
- Jakk on vSphere 5 Card
- Purushothama S on vSphere 5 notes
- Bjorn on vSphere 5 Card
- Chris on Minor update to the vSphere 5 Reference Card
- Michael Webster on Auto Deploy design concern
- Ankur Maheshwari on vSphere 5 notes
Twitter
- As much as I've become an NFS supporter over the years, VMFS5 & ATS is really making me like iSCSI & its better multipathing. : 2 weeks ago
- @__wintertale__ Hi Iona (& Lesley). Welcome to the twitterverse from a cloudy and wet Vancouver. How's the coffee? : 3 weeks ago
- RT @jtroyer: ... Kaua'i http://t.co/s4Ovo4jD << Staying in same resort next month. Pls, no destroying it with wild parties ;) : 3 weeks ago
- RT @dobaer: @forbesguthrie How was the run in your shiny new shoes? << Nice, the trails around Vancouver are stunning. : 3 weeks ago
- @h0bbel I'm a Salomon addict, but I'm scared to get these ones muddy :) : 3 weeks ago
- Just took my pwutty new #salomon trail shoes for an hour's run in Pacific Spirit Park. http://t.co/7dAQDXgl : 3 weeks ago
- RT @alim__k: @forbesguthrie @keith_aasen look at you guys, figuring this out over social media ;-) < that's where I do all my best designs : 3 weeks ago
- @keith_aasen Great, just what I was after. And presumably one per controller to prevent performance degradation on failover (after refill) : 3 weeks ago
- @keith_aasen You're the VDI sizing TR author :) You're my Guru! : 3 weeks ago
- NetApp gurus: VDI on 3170 - where's FlashCache watershed for 2x 512GB to 4. When is it 2TB not 1TB? Don't say "it depends" /cc @keith_aasen : 3 weeks ago






I have this problem recently which caused absolute chasos in my organisation. Thanks for the script!
You do not need to rebuild your ESX host to fix the Service Console memory. The memory can be altered from 272MB to 800 MB in VirtualCenter. This is in regards to ESX 3.5.0. The memory change will require a reboot of your ESX host.
Ignore my comment above, I thought Forbes Guthrie was referring to the amount of memory allocated to the Service Console, not the swap space.
I wasn’t aware that most people give their SC 800MB by default. In 4 years, I’ve never given the SC more than the installation default…unless I knew the client wanted to install agents or other extra stuff in the SC. Are people seeing their SC run out of RAM by taking the defaults…and not installing anything extra?
Hi Chris, I’d say its a very common “customization”. Yes, this can be particularly important if you install any extra agents in the Service Console. However, I’ve also seen memory issues on vanilla ones too. If you ever get close to oversubscribing your hosts, then this is definitely something you’d want to look at. Running out of memory like this will just kill your whole host. I’ve seen it on production servers and it ain’t pretty.