VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts)
8 Replies Last post: Sep 18, 2009 12:38 PM by proden20  

Oracle or VM resources tunning? posted: Sep 14, 2009 3:39 PM

Click to view edzava's profile Enthusiast 31 posts since
Dec 2, 2005

I have a VM with windows server 2003 standard edition running 4 instances of oracle database 10g (version 10.2.0.4) in esxi 3.5 R4.

I assigned 2 virtual proccessor (3ghz) and 3gb of memory to the VM.

Each oracle service consumes 450mb of ram and there are 2 or 3 total connections to the databases on the server.

I see that the proccesor is always nearly 80% of utilization and the memory is full used and the access is very slowly.

When the VM is restarted and the databases start up the access is very slowly too and there isn't active connectios on any databases.

The DBA reviewed the performance view, alerts, trace logs of all instances and were OK.

I attached some outputs of esxtop (the 2178 ID belongs to the affected VM)

What can you suggeest me to do?

Eduardo

Attachments:

Re: Oracle or VM resources tunning?

1. Sep 14, 2009 4:23 PM in response to: edzava
Click to view vm_arch's profile Hot Shot 78 posts since
Jun 18, 2008

can you tell us a bit more info?.

What are the other vm's on the ESX box (how many vCPU/Memory). From the screenshots it appears you have 32Gb physical memory with about 26Gb of it in use to running VM's - is this correct? CPU resource for the VM you speak of looks overcommitted. Have you tried either a) making a resource reservation on CPU for that VM, or b) increasing the CPU Shares on that VM to HIGH? - this may assist.


Re: Oracle or VM resources tunning?

2. Sep 14, 2009 4:52 PM in response to: edzava
Click to view proden20's profile Hot Shot 145 posts since
Jan 29, 2008

From the Oracle standpoint I've seen situations where there didn't appear to be an issue, but the DBA later found out that they needed to tweak their SGA. In addition, after months of not conceding to additional vcpu's, I allocated 4 vcpu's to an Oracle server and reports ran 10x faster. It likes to multithread (but you also suffer the drawback of locking too many cores.)


If you found this question to be correct or helpful, please remember to award points.

Dennis Procopio - VCP

Re: Oracle or VM resources tunning?

6. Sep 16, 2009 10:59 AM in response to: edzava
Click to view proden20's profile Hot Shot 145 posts since
Jan 29, 2008

I don't remember the exact scenario, but I believe our problem was that tnslistener was dropping packets, and the dba had to tweak pga/sga. They blamed the vmware infrastructure (and me), until they found the problem was with oracle configuration. Also, I allocate at least 4GB RAM to the Oracle VMs.

Later, there were problems with performance. I try not to grant more vcpus if they don't hit 100% often or a high average, but in this case balancing the load across 4 vcpus immediately showed a drastic improvement in performance. There are costs to it, but it seems to make Oracle happy.

Did you try granting reservation or high cpu shares as recommended above?

If you found this question to be correct or helpful, please remember to award points.

Dennis Procopio - VCP

Re: Oracle or VM resources tunning?

8. Sep 18, 2009 12:38 PM in response to: edzava
Click to view proden20's profile Hot Shot 145 posts since
Jan 29, 2008

Eduardo,

Glad you got it resolved. It is preferable to architect around resource hogs like Oracle, SJAS, etc, even get them in their own cluster if need be.

Reservations depend on your cluster and how implement them (per vm, resource pools, etc.) I use high/normal/low resource pools and make sure my Oracle boxes are in the high share pools. I don't have alot of contention so this really hasn't been a problem for me yet.

I didn't use metrics when I mentioned a "10x" improvement. It was an arbitrary number but report generation dropped from hours to minutes with the addition of 2 vcpus, which was proof in itself.

If you found this question to be correct or helpful, please remember to award points.

Dennis Procopio - VCP

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities