Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

can I measure how much memory is allocated to the buffer in SS2K8 on VMWare accurately Expand / Collapse
Author
Message
Posted Thursday, September 20, 2012 1:43 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, August 23, 2013 1:01 PM
Points: 123, Visits: 293
I have a 8GB SS2K8 database on a smallish VMware server with 5 other VMs running on the host. The SS2K8 server is supposed to have 4GB of memory. Task Manager and Activity monitor indicate that there is 4GB, but I suspect that the host is stealing memory for another VM because a few times a day the database slows way down. I don't see high IO or CPU on the database when this happens. Are there DMV's that would allow me to view what the database is really getting ( or losing!) during these slow downs?
Post #1362292
Posted Thursday, September 20, 2012 2:57 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 6:32 AM
Points: 7,135, Visits: 12,745
Measure total server memory used by SQL Server:

SELECT cntr_value / 1024.0 AS TotalServerMemoryMB
FROM sys.dm_os_performance_counters
WHERE counter_name = 'Total Server Memory (KB)';

For physical (if VM host is stealing) and buffer use:

SELECT  CAST(physical_memory_in_bytes / (1024.0 * 1024.0 * 1024.0) AS DECIMAL(20, 2)) AS PhysicalMemoryGB,
CAST((bpool_committed * 8) / (1024.0 * 1024.0) AS DECIMAL(20, 2)) AS BufferPoolCommittedMemoryGB
FROM sys.dm_os_sys_info;



__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1362331
Posted Friday, September 21, 2012 3:06 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Friday, March 21, 2014 9:46 AM
Points: 387, Visits: 1,078
If you want to measure memory usage of Buffer pool,
Select Count(*) * 8 / (1024.00) 'BufferPoolSize In MB' From sys.dm_os_buffer_descriptors
Post #1362494
Posted Friday, September 21, 2012 6:58 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, August 23, 2013 1:01 PM
Points: 123, Visits: 293
Thanks!
Post #1362631
Posted Saturday, September 22, 2012 2:36 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 2:33 PM
Points: 6,626, Visits: 14,197
Consult with your vm admin, if memory ballooning becomes a problem you may have to uninstall the balloon driver from the vmware tools but simply having the admin reserve resources should be sufficient.

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs"
Post #1363083
Posted Wednesday, September 26, 2012 7:00 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Today @ 5:32 AM
Points: 192, Visits: 423
I'd start with asking your VMware Admin to check the memory usage statistics for the physical host of your VM. The reason I'd start here is because its very quick to check on the VMs from a high level where as memory investigation within the VM itself and SQL Server will require more time.

Confirm you're VM isn't having pressure from it's neighbors and then drill down into it.

Here are the esxtop commands. He or she would just have to look at "MEMCTL" (MB) to tell if there is ballooning taking place.

http://communities.vmware.com/docs/DOC-9279
Post #1364995
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse