2003 Server, SP2 Enterprise Edition, High CPU utilization

I'm working on a server that is experiencing High CPU utilization. 2003 Server, SP2 Enterprise Edition.  On a ESX 3.5 vsphere 4.1/Vcenter.  This server is hosting a FoxPro Database.  Two Hard Drives are one C: 20GB and E: 20GB.  4 Virtual CPUs are allocated to this VM.  8GB of Ram.  After doing some trouble shooting I noticed while checking the recommended settings for this problem the following:  Virtual Memory allocation is set to C: Initial MB size is 2092 and Mac MB size is 3092 and the E: drive is set to Initial 4092 and Max is 4092.  I also check how fragmented both Hard Drives are and they are very fragmented.  I noticed while checking the performance monitor that the Commit Charge on the Ram usage is on peaking at 2536856 (K) out of the limit 14751680 (K) see attached PNG; So really not much physical Ram is being used.  Any recommendations on how to go about clearing this up will be greatly appreciated.  I will provide more information as I go through the necessary steps to clean this up.  Thank you in advance.
CPU-Utilization.png
vitengineeringAsked:
Who is Participating?
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Guest-based performance monitoring is an inaccurate and unhelpful means of evaluating performance in virtual deployments.  See Guest-based Performance Measurement for more inforamtion.  Monitoring and analysis of VMware ESX Server should be performed with esxtop and VirtualCenter.

esxtop is the tried-and-true means of collecting every performance stat  needed and making it available in a way that is conducive to analysis.  The best source of information on launching esxtop can be found in the Resource Management Guide (page 159).

1. Check and correct CPU utilization: CPU Performance Analysis and Monitoring
0
 
Gary ColtharpSr. Systems EngineerCommented:
What processes are consuming the CPU time? You might install ProcExp to get a clearer picture.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Reduce the number of vCPUs to 1. (and add processors of needed). Do you really need 4 CPUs?

vSMP because of the scheduling between CPUs can slow a virtual machine down.

Defragment the hard drives, and what is the undelying datastore for the virtual machine.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
vitengineeringAuthor Commented:
hanccocka:  This 2003 Server has a FoxPro database on it.  Also I mentioned that their Virtual Memory/Paging isn't set correctly.  I will go through your links and info you sent me an evaluate it.  Right now I'm getting ready to clone this server and try a few things: like expanding the c: and see if I can get it down to one vCPU.  I will update this thread on how it goes.  Thanks for now.  I will keep you updated. And I thank gcoltharp: as well.
0
 
vitengineeringAuthor Commented:
I'm trying to reduce the numbers of vCPU and can't, see attached error.
I reduced the amount of RAM from 8GB to 6GB as it wasn't using that much ram as stated in the window screenshot earlier and I figured that it would be easier to match the Virtual Memory settings.  Is there a max for the Virtual Memory setting; I thought I read somewhere that 4GB is the max over the RAM?  
Also I was able to expand the C: as it only had about 2 GB of free space I know gave a test cloned machine of this troubled server 40GB on the C: drive and will allocate just the C: with the Virtual Memory/paging as it's probably much better than having it spread across two different hard drives as stated below, right??

Virtual Memory allocation is set to C: Initial MB size is 2092 and Mac MB size is 3092 and the E: drive is set to Initial 4092 and Max is 4092

vCPUchangeError.png
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Do you have specific resources specified for memory and cpu on this VM?

I would create a new hard disk, and move the paging files, off the other disks, to this new disk, of the correct size. Match virtual memory swap file to physical memory.
0
 
vitengineeringAuthor Commented:
Hi hanccocka:
Now that I expanded the C: to 40GB and now has 20GB of free space is it best to set the Virtual Memory the this drive?  Also is this > "I would create a new hard disk, and move the paging files, off the other disks, to this new disk, of the correct size. Match virtual memory swap file to physical memory. " going to allow me to change the vCPU to 1?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
vCPU setting is a VMware Virtual Machine properties issue.

The contents inside the virtual machine have no effect on the Virtual Machine settings outside of the VM.
0
 
vitengineeringAuthor Commented:
hanccocka:  I'm not sure if the above screenshot is clear.  When I try and change the vCPU from four to one i get this:
Could not power on VM: Cpu min outside valid range
Is there any way to get this down to one like you suggested?
Thanks.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Check CPU reservations and Memory Reservations for the VM.

Select VM, Edit Settings, Click the Resources Tab, and Check CPU and Memory Reservations

Make sure that the CPU and Memory have Default values.
0
 
vitengineeringAuthor Commented:
Hi hanccocka:
In addition, I read that you really only get the benefit of 4 vCPUs if your ESX host has 8 cores?  Is this still correct?  I will check what you asked be above and let you know.
I also read an article that you have to boot from a 2003 server CD in repair mode to add or subtract vCPUs after you edit it at the VM level.  I could have misread this, let me know thanks.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
4 vCPUs is a lot to allocate to a VM, and it can slow the VM down. Normally a Windows 2003 Server installation is already using a multiprocessor HAL.
0
 
vitengineeringAuthor Commented:
Hi Hanccocka,
Attached are the resource settings.  Do I have to change this and then will I be able to reduce the amount of my vCPU?  See attached.
VM-ResourceSettings.png
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Move the CPU Reservation Slide to Zero

Tick the Unlimited Box.

Also do the same for Memory.

Your VM has been restricted to use a certain resources.
0
 
vitengineeringAuthor Commented:
Great hanccocka:, As I just did that and it worked.  Thanks.
I noticed that Hyperthreading was turned off/inactive.  I think the admin of this box changed it as they were trying to troubleshoot it a while back and Microsoft recommended that they turn this off.  Should this be turned back on?  Perhaps it was because of the four vCPU setup at the time??  
Also, so now that I have it down to 1 vCPU and 6GB of RAM and enough space on the C: would it be okay just to change the Virtual Memory to your suggested setting?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Hyperthreading should be set to Any.

Yes, change Virtual Memory, to what I suggested earlier.
0
 
vitengineeringAuthor Commented:
> Hyperthreading should be set to Any.  It is, however it says inactive?

0
 
vitengineeringAuthor Commented:
hanccocka:  About the Virtual Memory settings:
Attached is a snapshot of the production machine of the one I cloned to test changing the HD size and vCPU settings on.  The settings that I was familiar with was to do 1.5 x the physical RAM (which was back in the day when RAM was a lot more money and less used then.  Also I heard that matching the amount for initial and Max size is recommended on Clustered and I think database servers as fragmentation is avoided on the HD, should I apply it to this VM?

VirtualMemSetting.png
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
That's a different question to discuss really.

But I would use equal amounts of memory, one page file on a single disk you should never be in a position, where it swaps, because you can add more memory to the VM!
0
 
vitengineeringAuthor Commented:
Hi hanccocka:  Okay will I will close this question out as successful and credit you.  I will soon aply these changes to the actual production machine.  I will most likely pose another question on the Virtual Memory settings so be on the lookout.
Thanks again for all of your help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.