Changing ESX Service Console memory

Changing ESX Service Console memory

During default ESX installation, Service Console will be allocated 272MB of memory. Most of time, it is sufficient. However, if you have third party software installed in Service Console, or you have a powerful server (like Sun Fire x4600, with 8 Dual core CPU, 64GB memory) that can support more than 50 vCPUs, I strongly suggest to change the Service Console memory to 512MB. In ESX 2.x, VMware suggested 512MB should be used to support more than 32 vCPUs. Since ESX 3.x has a much more effect method to manage its memory, it runs 50 to 60 vCPUs without any problems with 512MB. If you have other third party software in the Service Console, you might want to increase to more than 512MB.

Here is how to change the Server Console’s memory, and it needs a reboot to take in effect.

First of all, back up the files that we are going to modify.

cp /etc/vmware/esx.conf /etc/vmware/esx.conf.bak
cp /boot/grub/grub.conf /boot/grub/grub.conf.bak

Second, modify esx.conf and grub.conf:

1. Edit /etc/vmware/esx.conf to change the number of 272 to 512

Original: /boot/memSize = “272”
After: /boot/memSize = “512”

2. Edit /boot/grub/grub.conf to change:

Original: 272M
After: 512M
Original: uppermem 277504
After: uppermem 523264

Or

Original: 272M
After: 800MB
Original: uppermem 277504
After: uppermem 818176

Update:

Just found sed is a stream editor in Linux. Using sed in a script would make this job much easier and less errors.

#!/bin/sh

#back up config files

/bin/cp /etc/vmware/esx.conf /etc/vmware/esx.conf.bak

/bin/cp /boot/grub/grub.conf /boot/grub/grub.conf.bak

#editing esx.conf and grub.conf

/bin/sed -i -e ‘s/272/512/’ /etc/vmware/esx.conf

/bin/sed -i -e ‘s/272M/512M/’ /boot/grub/grub.conf

/bin/sed -i -e ‘s/277504/523264/’ /boot/grub/grub.conf

 

Leave a Reply

Your email address will not be published. Required fields are marked *

four × 5 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.