Solved

Vsphere guest VM uses massive memory for doing nothing

Posted on 2010-11-09
15
707 Views
Last Modified: 2012-05-10
Hi,

I Have a virtual machine that runs smooith. It is a windows 2003 32bit R2 server. It runs on Virtual Center 4.1

It has 1 CPU and 512 MB RAM

When I add one CPU and give it 4GB RAM, It uses up to 3 GB RAM. When before it used 256MB RAM

How can I fix this?
0
Comment
Question by:sayadi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 3
  • 3
  • +1
15 Comments
 
LVL 6

Expert Comment

by:jdfulton
ID: 34095411
I assume you have rebooted the server after making the changes?  Also is the VMware Tools up to date?  What process on the server is using all of the memory?  You can see this using Task Manager.
0
 
LVL 2

Author Comment

by:sayadi
ID: 34095467
Yes I did rebooted or else the CPU would not be seen by the windows.
Show all processes from all users is checked and all the processes combined it does not even add up to 400 MB.
VM tools is also up to date.

Now - an hour later - the total amount of memory in use is 1200MB
0
 
LVL 28

Accepted Solution

by:
bgoering earned 500 total points
ID: 34095541
In the boot.ini on your server you need to add

/PAE

to the end of the boot line for it to recognize all 4 GB. I believe it needs to be Enterprise Edition to use this, otherwise 3GB is it.

See http://support.microsoft.com/kb/283037

Good Luck

0
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
LVL 6

Expert Comment

by:jdfulton
ID: 34095912
Windows Server 2003 supports up to 4GB of ram without any customization so I don't think the previous comment is correct.  So it sounds like it is an issue between Windows and VMware.  VMware is not reporting the correct memory usuage correct or is Windows saying it is using the memory?  If you can provide screenshots of where you are seeing this it may be helpful.  I would try uninstalling VMware tools and reinstalling next.
0
 
LVL 28

Expert Comment

by:bgoering
ID: 34096155
@jdfulton - PAE is only enabled automatically in 2003 if the memory is hot-added. Otherwise you have to explicitely add the switch. I had the impression the machine was taken down, reconfigured, and brought back up - if so not hot add event was ever raised.

@sayadi - You need to look at the performance tab in the vSphere client to see what the actual memory consumption is on the vm. Windows may "think" it is using a lot, but VMware is pretty good at reclaiming physical memory that isn't being actively used while letting the guest vm believe that it still has it. Several techniques are used by VMware  You can refer to http://www.vmware.com/files/pdf/techpaper/vsp_41_perf_memory_mgmt.pdf for the details of how memory is utilized and reclaimed.

Good Luck
0
 
LVL 40

Expert Comment

by:coolsport00
ID: 34096296
Are you wanting to see how to get RAM usage down, or are you wanting your VM's OS to see all 4GB of RAM? In other words, are you seeing performance issues based off RAM usage and want to decrease RAM usage? I think some posters are suggesting how to get your VM OS to 'see' all 4GB RAM, but from your orig post, it seems your wondering why your VM is using 3GB RAM whereas before it used barely any (256MB)? Please clarify...

Thanks.

~coolsport00
0
 
LVL 2

Author Comment

by:sayadi
ID: 34100506
coolsport00 you are right. The issue is why it's using so much memory.

The fix for high memory support in windows solved the recondition problem. But it's still using way to much memory.
0
 
LVL 2

Author Comment

by:sayadi
ID: 34100558
Hier is an screenshot
screenshot.doc
0
 
LVL 2

Author Comment

by:sayadi
ID: 34100567
@bgoering
in the performance tab the same amout of memory is claimed.
0
 
LVL 40

Expert Comment

by:coolsport00
ID: 34101175
According to your screenshot, you have a MS Service (obviously unsure specifically of which one) and "MCShield" using up a lot of memory. A quick Google of"MCShield" states that it's a process used by McAfee. So, I can only assume that is your memory issue...that app/process and the service that goes with it. Disable it then moniro your memory usage to see if it goes back down.

~coolsport00
0
 
LVL 2

Author Comment

by:sayadi
ID: 34101191
That is the Virus Scanner. Now using 114MB, but it does not add up to be 2500MB+ total consumption.
0
 
LVL 40

Expert Comment

by:coolsport00
ID: 34101206
Ok...misread the usage; click on the Performance tab and check memory usage there....see how much is actually being used.

~coolsport00
0
 
LVL 28

Expert Comment

by:bgoering
ID: 34101414
At boot up time Windows will look at the total RAM available after OS and all services have been started. Then it will claim a large percentage for file buffering - this memory is initialized to binary zeros. This shows up in the task manager with the Physical Memory Cached value. As time goes on if it is not being used Windows may reduce the cached pool if it is not being utilized. For example, if the Windows machine is not doing much in the way of being a file server Windows will reduce that value. Take a look at http://technet.microsoft.com/en-us/library/cc778082(WS.10).aspx for the description of the performance counters for the core memory object in Windows 2003. Using perfmon you can dig a bit deeper into how the memory is actually being utilized.

However, VMware recognizes this Windows behavior and will not actually allocate all of that to real physical RAM unless it is really needed. If you refer to the document I referenced in an earlier post to this thread you can get a full description of the various techniques VMware will use to manage the physical RAM on your system.

Hope this helps
0
 
LVL 2

Author Comment

by:sayadi
ID: 34534809
Large memory support in windows was the problem

http://support.microsoft.com/kb/283037/en-us
0
 
LVL 2

Author Closing Comment

by:sayadi
ID: 34534822
issue solved
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question