Posts Tagged ‘Verifying the /3GB switch’
2003 server - Thursday, February 28, 2008 3:04 - 0 Comments
Verifying the /3GB switch
How to verify memory allocation when the /3GB switch is used.
So you’ve got an Exchange Server 2003 machine and you’ve added /3GB /USERVA=3030 to the boot.ini file. How do you know that it’s working? The simplest way is to query for the MaxProcessMemory size using WMI as follows:
strComputer = “.”
Set objWMIService = GetObject(“winmgmts:\” & strComputer & “rootcimv2”)
Set colItems = objWMIService.ExecQuery(“Select MaxProcessMemorySize from Win32_OperatingSystem”)
For Each objItem in colItems
Wscript.Echo “MaxProcessMemorySize: ” & objItem.MaxProcessMemorySize
Next
Here are the possible outputs:
2097024 means neither switches are working
3145600 means only the /3GB switch is working
3104640 means both the /3GB and /USERVA=3030 switches are working
Article written by MyComputerAid.com