SlideShare uma empresa Scribd logo
1 de 69
vSphere Performance Monitoring and Troubleshooting Overview What? CPU, Memory, Disk, Network How? Use available tools and a systematic methodology Why? Need to build confidence in virtualizing critical and high demand applications
vSphere Performance Monitoring and Troubleshooting Top Issues Top Issues: Storage "performance capacity" oversubscription Memory oversubscription SMP overuse Firmware & driver issues
vSphere Performance Monitoring and Troubleshooting What tools do we have at our disposal? Top tools for information collection: vCenter - Performance charts and alarms Guest OS* - Task Manager/Resource Monitor and PerfMon ESX Host - esxtop and vscsiStats vSpherePowerCLI *Guest based monitoring is subject to inaccuracy
vSphere Performance Monitoring and Troubleshooting Prepare vCenter Settings
vSphere Performance Monitoring and Troubleshooting Prepare vCenter Settings
vSphere Performance Monitoring and Troubleshooting Prepare vCenter Settings Prepare custom vCenter alerts: Host Console Swap In Rate  512KBps Warning, 1024 KBps Alert Host Console Swap Out Rate  512KBps Warning, 1024 KBps Alert VM CPU Ready  1000ms Warning, 2000ms Alert VM Disk Latency  20ms Warning, 50ms Alert
vSphere Performance Monitoring and Troubleshooting Prepare vCenter Settings
vSphere Performance Monitoring and Troubleshooting Prepare vCenter Settings
vSphere Performance Monitoring and Troubleshooting Prepare esxtop ESXTOP realtime monitoring: esxtop(run command from SSH or tech-support mode) s 2 (refresh view every 2 seconds) V (View VMs only) h(for quick in-tool command reference) Batch Mode for a 5 minute capture of all stats: esxtop-b -a -d 2 -n 150 > esxtop_capture.csv
vSphere Performance Monitoring and Troubleshooting Prepare PowerCLI Run PowerCLI: Tip: Run as Administrator Set-ExecutionPolicyremotesigned Connect-VIServer -Server <host> -Protocol https -User <user> -Password <pass> 	<host> can be IP address or name of ESX server or vCenter Get-VM Get-Stat -common -realtime
vSphere Performance Monitoring and Troubleshooting Where do we get started?
vSphere Performance Monitoring and Troubleshooting Network Overview
vSphere Performance Monitoring and Troubleshooting Network Troubleshooting Guidance: 1.	Physical Issues - A bad cable, a failing switch port or NIC, or an incompatible/flawed firmware or device driver (use VMXNET3 whenever possible) 2.	Configuration Issues - Inconsistent configuration of vSwitches, Port Groups, or upstream VLAN trunks 3.	Capacity Issues - Too many VMs on a single NIC; inadequate switch backplane or uplink capacity; sharing “unmanaged” network infrastructure for storage and data 4.	Thresholds – Bandwidth saturation, dropped packets
vSphere Performance Monitoring and Troubleshooting Network – What can we see?
vSphere Performance Monitoring and Troubleshooting Network vCenter Metrics:  Receive packets dropped Transmit packets dropped
vSphere Performance Monitoring and Troubleshooting Network ESXTOP Metrics:
vSphere Performance Monitoring and Troubleshooting Network ESXTOP Commands: esxtop s 2 n f
vSphere Performance Monitoring and Troubleshooting Network ESXTOP Example:
vSphere Performance Monitoring and Troubleshooting Network PowerCLI Commands: Get-Stat -net -realtime Get-Stat -Entity <Host> -stat net.droppedRx.summation Get-Stat -Entity <Host> -stat net.droppedTx.summation
vSphere Performance Monitoring and Troubleshooting Network – What can’t we see?
vSphere Performance Monitoring and Troubleshooting Network Possible resources for external monitoring: Native Telnet/SSH/HTTP-based interface counters and stats Third-party SNMP, NetFlow and ICMP tools
vSphere Performance Monitoring and Troubleshooting CPU Overview
vSphere Performance Monitoring and Troubleshooting CPU Troubleshooting Guidance: 1.	Physical Issues - Rare and always catastrophic (e.g. obvious) 2.	Configuration Issues - Too many / too few vCPUs per VM; SMP/HAL mismatch; incorrect CPU affinity settings 3.	Capacity Issues - CPU saturation at the guest or host level; CPU starvation due to high IO or other system level ops 4.	Thresholds – Waiting for CPU cycles (due to co-scheduling, swapping, high IO)
vSphere Performance Monitoring and Troubleshooting CPU – What can we see?
vSphere Performance Monitoring and Troubleshooting CPU vCenter Metrics:  Host/Guest Saturation Stacked Graph (per VM) Usage
vSphere Performance Monitoring and Troubleshooting CPU vCenter Metrics: Guest Ready (value/20=n%) Swap Wait
vSphere Performance Monitoring and Troubleshooting CPU ESXTOP Metrics:
vSphere Performance Monitoring and Troubleshooting CPU ESXTOP Commands: esxtop s 2 V c e GID (expand/contract a VM world)
vSphere Performance Monitoring and Troubleshooting CPU ESXTOP Example: Excessive vCPUs
vSphere Performance Monitoring and Troubleshooting CPU ESXTOP Example:  Now with fewer vCPUs
vSphere Performance Monitoring and Troubleshooting CPU ESXTOP Example: SMP impacting multiple VMs
vSphere Performance Monitoring and Troubleshooting CPU PowerCLI Example Get-Stat -cpu Get-Stat -Entity <VM> -stat cpu.ready.summation -realtime Very cool script code at: http://www.peetersonline.nl/index.php/vmware/examine-vmware-cpu-ready-times-with-powershell/
vSphere Performance Monitoring and Troubleshooting CPU – Not much else to see…
vSphere Performance Monitoring and Troubleshooting CPU Possible resources for external monitoring: Vendor specific systems management tools, MS System Center, etc. http://www.peetersonline.nl/index.php/vmware/examine-vmware-cpu-ready-times-with-powershell/
vSphere Performance Monitoring and Troubleshooting Memory Overview
vSphere Performance Monitoring and Troubleshooting Memory Troubleshooting Guidance: 1.	Physical Issues - Rare and usually catastrophic 2.	Configuration Issues - Memory overcommit; incorrect configuration of shares, reservations or limits 3.	Capacity Issues - Physical memory exhaustion 4.	Thresholds – Active memory swapping
vSphere Performance Monitoring and Troubleshooting Memory – What can we see?
vSphere Performance Monitoring and Troubleshooting Memory vCenter Metrics Swap in rate Swap out rate Swap used
vSphere Performance Monitoring and Troubleshooting Memory ESXTOP Metrics:
vSphere Performance Monitoring and Troubleshooting Memory ESXTOP Commands: esxtop s 2 V m f
vSphere Performance Monitoring and Troubleshooting Memory ESXTOP Example: m – Heavy swapping and ballooning
vSphere Performance Monitoring and Troubleshooting Memory PowerCLI Commands: Get-Stat -mem Get-Stat -Entity <VM> -stat mem.swapoutRate.average -realtime Get-Stat -Entity <VM> -stat mem.swapinRate.average -realtime Get-Stat -Entity <VM> -stat mem.vmmemctl.average -realtime Get-Stat -Entity <Host> -stat mem.swapused.average -realtime
vSphere Performance Monitoring and Troubleshooting Memory – The occasional DIMM failure…
vSphere Performance Monitoring and Troubleshooting Memory Possible external monitoring options: Vendor specific systems management tools, MS System Center, etc. Don’t forget vCenter ‘Hardware Status’ reporting
vSphere Performance Monitoring and Troubleshooting Storage Overview
vSphere Performance Monitoring and Troubleshooting Storage Troubleshooting Guidance: 1.	Physical Issues - A bad cable, a failing switch port or HBA/NIC, or an incompatible/flawed firmware or device driver (use LSI Logic Parallel/SAS as appropriate) 2.	Configuration Issues - Inconsistent or incorrect configuration of LUN masking, zoning, or multi-pathing; inappropriate resource provisioning; aligning queue depth with storage type 3.	Capacity Issues - Too many VMs or VMDKs on a LUN; too much IO load for an array or RAID group 4.	Thresholds – Latency and queuing
vSphere Performance Monitoring and Troubleshooting Storage – What can we see?
vSphere Performance Monitoring and Troubleshooting Storage vCenter Metrics: Datastore Read latency Write latency
vSphere Performance Monitoring and Troubleshooting Storage ESXTOP Metrics:
vSphere Performance Monitoring and Troubleshooting Storage
vSphere Performance Monitoring and Troubleshooting Storage ESXTOP Commands (HBA/LUN): esxtop s 2 V d f e vmhba#
vSphere Performance Monitoring and Troubleshooting Storage ESXTOP Commands(LUN/Datastore): esxtop s 2 V u L 38 f e <devname>
vSphere Performance Monitoring and Troubleshooting Storage ESXTOP Commands (VM/VMDK): esxtop s 2 V v f e GID
vSphere Performance Monitoring and Troubleshooting Storage ESXTOP Examples:  d - Multipathing / Expand adapter to view targets
vSphere Performance Monitoring and Troubleshooting Storage ESXTOP Examples:  u - Queuing, Disk or Kernel?
vSphere Performance Monitoring and Troubleshooting Storage ESXTOP Examples: v - Identify the IO consumer
vSphere Performance Monitoring and Troubleshooting Storage vscsiStatsCommand: [root@host ~]# cd /usr/lib/vmware/bin ./vscsiStats -l ./vscsiStats -s -w <worldid> ./vscsiStats -w <worldid> -p all -c > /path/vscsistats.csv ./vscsiStats -x
vSphere Performance Monitoring and Troubleshooting Storage vscsiStatsExample:
vSphere Performance Monitoring and Troubleshooting Storage vscsiStatsExample:
vSphere Performance Monitoring and Troubleshooting Storage vscsiStatsExample: http://dunnsept.wordpress.com/2010/03/11/new-vscsistats-excel-macro/
vSphere Performance Monitoring and Troubleshooting Storage vscsiStatshistograms:
vSphere Performance Monitoring and Troubleshooting Storage PowerCLI Commands: Get-Stat -disk Get-Stat -stat disk.totalLatency.average -realtime Get-Stat -stat disk.deviceLatency.average -realtime Get-Stat -stat disk.kernelLatency.average -realtime
vSphere Performance Monitoring and Troubleshooting Storage – What can’t we see?
vSphere Performance Monitoring and Troubleshooting Storage – More of what we can’t see
vSphere Performance Monitoring and Troubleshooting Storage Possible external monitoring solutions: Vendor specific SAN and fabric/network tools, native Telnet/SSH/HTTP-based tools for most networks, third-party SNMP-based tools
vSphere Performance Monitoring and Troubleshooting Working with PowerCLI PowerCLI Tips: For a complete list of stat objects: Get-StatType -Entity <Host/VM> Pipe the outputs to a file: Get-Stat -stat <stat> -realtime | ft -autosize > c:emplt;filename>.csv Import the CSV file data to a spreadsheet with fixed width parameters Build pretty graphs
vSphere Performance Monitoring and Troubleshooting Working with PowerCLI
vSphere Performance Monitoring and Troubleshooting Way More Information ESXTOP / vscsiStats / PowerCLI: http://www.yellow-bricks.com/esxtop/     Special thanks to Duncan Epping! http://communities.vmware.com/docs/DOC-3930 http://communities.vmware.com/docs/DOC-9279 http://communities.vmware.com/docs/DOC-10095 http://www.vmware.com/support/developer/PowerCLI/PowerCLI41/html/Get-Stat.html http://www.lucd.info/2009/12/30/powercli-vsphere-statistics-part-1-the-basics/ http://simongreaves.co.uk/blog/esxtop-guide http://dunnsept.wordpress.com/2010/03/11/new-vscsistats-excel-macro/
vSphere Performance Monitoring and Troubleshooting Easy button? What is the problem with these tools? Limited alerting mechanisms, no collection automation or historical data for comparison, and no correlation of events! vCenter Operations Standard / Enterprise

Mais conteúdo relacionado

Mais procurados

VMware Performance Troubleshooting
VMware Performance TroubleshootingVMware Performance Troubleshooting
VMware Performance Troubleshooting
glbsolutions
 
What is Virtualization
What is VirtualizationWhat is Virtualization
What is Virtualization
Israel Marcus
 
VMware Performance for Gurus - A Tutorial
VMware Performance for Gurus - A TutorialVMware Performance for Gurus - A Tutorial
VMware Performance for Gurus - A Tutorial
Richard McDougall
 

Mais procurados (20)

VMware Performance Troubleshooting
VMware Performance TroubleshootingVMware Performance Troubleshooting
VMware Performance Troubleshooting
 
VMware Esx Short Presentation
VMware Esx Short PresentationVMware Esx Short Presentation
VMware Esx Short Presentation
 
VMware Tutorial For Beginners | VMware Workstation | VMware Virtualization | ...
VMware Tutorial For Beginners | VMware Workstation | VMware Virtualization | ...VMware Tutorial For Beginners | VMware Workstation | VMware Virtualization | ...
VMware Tutorial For Beginners | VMware Workstation | VMware Virtualization | ...
 
Virtualization Architecture & KVM
Virtualization Architecture & KVMVirtualization Architecture & KVM
Virtualization Architecture & KVM
 
VMware vSphere Storage Appliance (VSA) - Technical Presentation,Almacenamien...
VMware vSphere Storage Appliance (VSA) -  Technical Presentation,Almacenamien...VMware vSphere Storage Appliance (VSA) -  Technical Presentation,Almacenamien...
VMware vSphere Storage Appliance (VSA) - Technical Presentation,Almacenamien...
 
VMware vSphere 6.0 - Troubleshooting Training - Day 2
VMware vSphere 6.0 - Troubleshooting Training - Day 2VMware vSphere 6.0 - Troubleshooting Training - Day 2
VMware vSphere 6.0 - Troubleshooting Training - Day 2
 
Vmware overview
Vmware overviewVmware overview
Vmware overview
 
What’s New in VMware vSphere 7?
What’s New in VMware vSphere 7?What’s New in VMware vSphere 7?
What’s New in VMware vSphere 7?
 
VMware vSphere
VMware vSphereVMware vSphere
VMware vSphere
 
Managing ESXi - Tools and Techniques
Managing ESXi - Tools and TechniquesManaging ESXi - Tools and Techniques
Managing ESXi - Tools and Techniques
 
1.Introduction to virtualization
1.Introduction to virtualization1.Introduction to virtualization
1.Introduction to virtualization
 
VMware vSphere 6.0 - Troubleshooting Training - Day 5
VMware vSphere 6.0 - Troubleshooting Training - Day 5VMware vSphere 6.0 - Troubleshooting Training - Day 5
VMware vSphere 6.0 - Troubleshooting Training - Day 5
 
What is Virtualization
What is VirtualizationWhat is Virtualization
What is Virtualization
 
Introduction to Hyper-V
Introduction to Hyper-VIntroduction to Hyper-V
Introduction to Hyper-V
 
Kvm and libvirt
Kvm and libvirtKvm and libvirt
Kvm and libvirt
 
Upgrading to VMware vSphere 6.0
Upgrading to VMware vSphere 6.0Upgrading to VMware vSphere 6.0
Upgrading to VMware vSphere 6.0
 
VMware Performance for Gurus - A Tutorial
VMware Performance for Gurus - A TutorialVMware Performance for Gurus - A Tutorial
VMware Performance for Gurus - A Tutorial
 
Server virtualization by VMWare
Server virtualization by VMWareServer virtualization by VMWare
Server virtualization by VMWare
 
vSAN architecture components
vSAN architecture componentsvSAN architecture components
vSAN architecture components
 
Virtualization 101: Everything You Need To Know To Get Started With VMware
Virtualization 101: Everything You Need To Know To Get Started With VMwareVirtualization 101: Everything You Need To Know To Get Started With VMware
Virtualization 101: Everything You Need To Know To Get Started With VMware
 

Destaque

Inside the Hadoop Machine @ VMworld
Inside the Hadoop Machine @ VMworldInside the Hadoop Machine @ VMworld
Inside the Hadoop Machine @ VMworld
Richard McDougall
 
Is your cloud ready for Big Data? Strata NY 2013
Is your cloud ready for Big Data? Strata NY 2013Is your cloud ready for Big Data? Strata NY 2013
Is your cloud ready for Big Data? Strata NY 2013
Richard McDougall
 
VMware Vsan vtug 2014
VMware Vsan vtug 2014VMware Vsan vtug 2014
VMware Vsan vtug 2014
csharney
 

Destaque (20)

VMware Advance Troubleshooting Workshop - Day 6
VMware Advance Troubleshooting Workshop - Day 6VMware Advance Troubleshooting Workshop - Day 6
VMware Advance Troubleshooting Workshop - Day 6
 
Denver VMUG nov 2011
Denver VMUG nov 2011Denver VMUG nov 2011
Denver VMUG nov 2011
 
Citrix Remote Access Solution Soup
Citrix Remote Access Solution SoupCitrix Remote Access Solution Soup
Citrix Remote Access Solution Soup
 
IdP, SAML, OAuth
IdP, SAML, OAuthIdP, SAML, OAuth
IdP, SAML, OAuth
 
Inside the Hadoop Machine @ VMworld
Inside the Hadoop Machine @ VMworldInside the Hadoop Machine @ VMworld
Inside the Hadoop Machine @ VMworld
 
Is your cloud ready for Big Data? Strata NY 2013
Is your cloud ready for Big Data? Strata NY 2013Is your cloud ready for Big Data? Strata NY 2013
Is your cloud ready for Big Data? Strata NY 2013
 
Architecting Virtualized Infrastructure for Big Data
Architecting Virtualized Infrastructure for Big DataArchitecting Virtualized Infrastructure for Big Data
Architecting Virtualized Infrastructure for Big Data
 
Apachecon Euro 2012: Elastic, Multi-tenant Hadoop on Demand
Apachecon Euro 2012: Elastic, Multi-tenant Hadoop on DemandApachecon Euro 2012: Elastic, Multi-tenant Hadoop on Demand
Apachecon Euro 2012: Elastic, Multi-tenant Hadoop on Demand
 
Hadoop on VMware
Hadoop on VMwareHadoop on VMware
Hadoop on VMware
 
Making of the Burner Board
Making of the Burner BoardMaking of the Burner Board
Making of the Burner Board
 
Hadoop on Virtual Machines
Hadoop on Virtual MachinesHadoop on Virtual Machines
Hadoop on Virtual Machines
 
Big Data/Hadoop Infrastructure Considerations
Big Data/Hadoop Infrastructure ConsiderationsBig Data/Hadoop Infrastructure Considerations
Big Data/Hadoop Infrastructure Considerations
 
Virtualization Primer for Java Developers
Virtualization Primer for Java DevelopersVirtualization Primer for Java Developers
Virtualization Primer for Java Developers
 
Solaris Internals Preso circa 2009
Solaris Internals Preso circa 2009Solaris Internals Preso circa 2009
Solaris Internals Preso circa 2009
 
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
 
Building Big Data Applications
Building Big Data ApplicationsBuilding Big Data Applications
Building Big Data Applications
 
Virtualizing Oracle Databases with VMware
Virtualizing Oracle Databases with VMwareVirtualizing Oracle Databases with VMware
Virtualizing Oracle Databases with VMware
 
Vsphere esxi-vcenter-server-55-troubleshooting-guide
Vsphere esxi-vcenter-server-55-troubleshooting-guideVsphere esxi-vcenter-server-55-troubleshooting-guide
Vsphere esxi-vcenter-server-55-troubleshooting-guide
 
VMware Vsan vtug 2014
VMware Vsan vtug 2014VMware Vsan vtug 2014
VMware Vsan vtug 2014
 
VMware DRS: Why You Still Need Assured Application Delivery and Application D...
VMware DRS: Why You Still Need Assured Application Delivery and Application D...VMware DRS: Why You Still Need Assured Application Delivery and Application D...
VMware DRS: Why You Still Need Assured Application Delivery and Application D...
 

Semelhante a VMware vSphere Performance Troubleshooting

RHT Upgrading to vSphere 5
RHT Upgrading to vSphere 5RHT Upgrading to vSphere 5
RHT Upgrading to vSphere 5
virtualsouthwest
 
VMware Backups That Work—Lessons Learned From VADP Performance Benchmark Testing
VMware Backups That Work—Lessons Learned From VADP Performance Benchmark TestingVMware Backups That Work—Lessons Learned From VADP Performance Benchmark Testing
VMware Backups That Work—Lessons Learned From VADP Performance Benchmark Testing
Symantec
 

Semelhante a VMware vSphere Performance Troubleshooting (20)

VMworld 2011 Review: Preparing for vSphere 5 with Virtualization Manager
VMworld 2011 Review: Preparing for vSphere 5 with Virtualization ManagerVMworld 2011 Review: Preparing for vSphere 5 with Virtualization Manager
VMworld 2011 Review: Preparing for vSphere 5 with Virtualization Manager
 
VMworld 2013: Virtualizing and Tuning Large Scale Java Platforms
VMworld 2013: Virtualizing and Tuning Large Scale Java Platforms VMworld 2013: Virtualizing and Tuning Large Scale Java Platforms
VMworld 2013: Virtualizing and Tuning Large Scale Java Platforms
 
Troubleshooting Storage Devices Using vRealize Operations (formerly vC Ops)
Troubleshooting Storage Devices Using vRealize Operations (formerly vC Ops)Troubleshooting Storage Devices Using vRealize Operations (formerly vC Ops)
Troubleshooting Storage Devices Using vRealize Operations (formerly vC Ops)
 
VMworld 2013: Tech Preview: Accelerating Data Operations Using VMware VVols a...
VMworld 2013: Tech Preview: Accelerating Data Operations Using VMware VVols a...VMworld 2013: Tech Preview: Accelerating Data Operations Using VMware VVols a...
VMworld 2013: Tech Preview: Accelerating Data Operations Using VMware VVols a...
 
VMworld 2013: Successfully Virtualize Microsoft Exchange Server
VMworld 2013: Successfully Virtualize Microsoft Exchange Server VMworld 2013: Successfully Virtualize Microsoft Exchange Server
VMworld 2013: Successfully Virtualize Microsoft Exchange Server
 
RHT Upgrading to vSphere 5
RHT Upgrading to vSphere 5RHT Upgrading to vSphere 5
RHT Upgrading to vSphere 5
 
Caching and tuning fun for high scalability
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalability
 
VMworld 2013: vSphere Flash Read Cache Technical Overview
VMworld 2013: vSphere Flash Read Cache Technical Overview VMworld 2013: vSphere Flash Read Cache Technical Overview
VMworld 2013: vSphere Flash Read Cache Technical Overview
 
vBrownBag 2015-07-08 - VCP6-DCV Foundations Section 7: Monitoring
vBrownBag 2015-07-08 - VCP6-DCV Foundations Section 7: MonitoringvBrownBag 2015-07-08 - VCP6-DCV Foundations Section 7: Monitoring
vBrownBag 2015-07-08 - VCP6-DCV Foundations Section 7: Monitoring
 
Rht upgrade v5-v2
Rht upgrade v5-v2Rht upgrade v5-v2
Rht upgrade v5-v2
 
aravind_SAN_TCS
aravind_SAN_TCSaravind_SAN_TCS
aravind_SAN_TCS
 
VMworld 2013: How SRP Delivers More Than Power to Their Customers
VMworld 2013: How SRP Delivers More Than Power to Their Customers VMworld 2013: How SRP Delivers More Than Power to Their Customers
VMworld 2013: How SRP Delivers More Than Power to Their Customers
 
Caching and tuning fun for high scalability @ FOSDEM 2012
Caching and tuning fun for high scalability @ FOSDEM 2012Caching and tuning fun for high scalability @ FOSDEM 2012
Caching and tuning fun for high scalability @ FOSDEM 2012
 
VMworld - sto7650 -Software defined storage @VMmware primer
VMworld - sto7650 -Software defined storage  @VMmware primerVMworld - sto7650 -Software defined storage  @VMmware primer
VMworld - sto7650 -Software defined storage @VMmware primer
 
VMware Backups That Work—Lessons Learned From VADP Performance Benchmark Testing
VMware Backups That Work—Lessons Learned From VADP Performance Benchmark TestingVMware Backups That Work—Lessons Learned From VADP Performance Benchmark Testing
VMware Backups That Work—Lessons Learned From VADP Performance Benchmark Testing
 
Presentazione VMware @ VMUGIT UserCon 2015
Presentazione VMware @ VMUGIT UserCon 2015Presentazione VMware @ VMUGIT UserCon 2015
Presentazione VMware @ VMUGIT UserCon 2015
 
Network performance test plan_v0.3
Network performance test plan_v0.3Network performance test plan_v0.3
Network performance test plan_v0.3
 
Simplifying Hyper-V Management for VMware Administrators
Simplifying Hyper-V Management for VMware AdministratorsSimplifying Hyper-V Management for VMware Administrators
Simplifying Hyper-V Management for VMware Administrators
 
V sphere virtual volumes technical overview
V sphere virtual volumes technical overviewV sphere virtual volumes technical overview
V sphere virtual volumes technical overview
 
VMworld 2014: Extreme Performance Series
VMworld 2014: Extreme Performance Series VMworld 2014: Extreme Performance Series
VMworld 2014: Extreme Performance Series
 

Último

Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 

Último (20)

Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 

VMware vSphere Performance Troubleshooting

  • 1. vSphere Performance Monitoring and Troubleshooting Overview What? CPU, Memory, Disk, Network How? Use available tools and a systematic methodology Why? Need to build confidence in virtualizing critical and high demand applications
  • 2. vSphere Performance Monitoring and Troubleshooting Top Issues Top Issues: Storage "performance capacity" oversubscription Memory oversubscription SMP overuse Firmware & driver issues
  • 3. vSphere Performance Monitoring and Troubleshooting What tools do we have at our disposal? Top tools for information collection: vCenter - Performance charts and alarms Guest OS* - Task Manager/Resource Monitor and PerfMon ESX Host - esxtop and vscsiStats vSpherePowerCLI *Guest based monitoring is subject to inaccuracy
  • 4. vSphere Performance Monitoring and Troubleshooting Prepare vCenter Settings
  • 5. vSphere Performance Monitoring and Troubleshooting Prepare vCenter Settings
  • 6. vSphere Performance Monitoring and Troubleshooting Prepare vCenter Settings Prepare custom vCenter alerts: Host Console Swap In Rate  512KBps Warning, 1024 KBps Alert Host Console Swap Out Rate  512KBps Warning, 1024 KBps Alert VM CPU Ready  1000ms Warning, 2000ms Alert VM Disk Latency  20ms Warning, 50ms Alert
  • 7. vSphere Performance Monitoring and Troubleshooting Prepare vCenter Settings
  • 8. vSphere Performance Monitoring and Troubleshooting Prepare vCenter Settings
  • 9. vSphere Performance Monitoring and Troubleshooting Prepare esxtop ESXTOP realtime monitoring: esxtop(run command from SSH or tech-support mode) s 2 (refresh view every 2 seconds) V (View VMs only) h(for quick in-tool command reference) Batch Mode for a 5 minute capture of all stats: esxtop-b -a -d 2 -n 150 > esxtop_capture.csv
  • 10. vSphere Performance Monitoring and Troubleshooting Prepare PowerCLI Run PowerCLI: Tip: Run as Administrator Set-ExecutionPolicyremotesigned Connect-VIServer -Server <host> -Protocol https -User <user> -Password <pass> <host> can be IP address or name of ESX server or vCenter Get-VM Get-Stat -common -realtime
  • 11. vSphere Performance Monitoring and Troubleshooting Where do we get started?
  • 12. vSphere Performance Monitoring and Troubleshooting Network Overview
  • 13. vSphere Performance Monitoring and Troubleshooting Network Troubleshooting Guidance: 1. Physical Issues - A bad cable, a failing switch port or NIC, or an incompatible/flawed firmware or device driver (use VMXNET3 whenever possible) 2. Configuration Issues - Inconsistent configuration of vSwitches, Port Groups, or upstream VLAN trunks 3. Capacity Issues - Too many VMs on a single NIC; inadequate switch backplane or uplink capacity; sharing “unmanaged” network infrastructure for storage and data 4. Thresholds – Bandwidth saturation, dropped packets
  • 14. vSphere Performance Monitoring and Troubleshooting Network – What can we see?
  • 15. vSphere Performance Monitoring and Troubleshooting Network vCenter Metrics: Receive packets dropped Transmit packets dropped
  • 16. vSphere Performance Monitoring and Troubleshooting Network ESXTOP Metrics:
  • 17. vSphere Performance Monitoring and Troubleshooting Network ESXTOP Commands: esxtop s 2 n f
  • 18. vSphere Performance Monitoring and Troubleshooting Network ESXTOP Example:
  • 19. vSphere Performance Monitoring and Troubleshooting Network PowerCLI Commands: Get-Stat -net -realtime Get-Stat -Entity <Host> -stat net.droppedRx.summation Get-Stat -Entity <Host> -stat net.droppedTx.summation
  • 20. vSphere Performance Monitoring and Troubleshooting Network – What can’t we see?
  • 21. vSphere Performance Monitoring and Troubleshooting Network Possible resources for external monitoring: Native Telnet/SSH/HTTP-based interface counters and stats Third-party SNMP, NetFlow and ICMP tools
  • 22. vSphere Performance Monitoring and Troubleshooting CPU Overview
  • 23. vSphere Performance Monitoring and Troubleshooting CPU Troubleshooting Guidance: 1. Physical Issues - Rare and always catastrophic (e.g. obvious) 2. Configuration Issues - Too many / too few vCPUs per VM; SMP/HAL mismatch; incorrect CPU affinity settings 3. Capacity Issues - CPU saturation at the guest or host level; CPU starvation due to high IO or other system level ops 4. Thresholds – Waiting for CPU cycles (due to co-scheduling, swapping, high IO)
  • 24. vSphere Performance Monitoring and Troubleshooting CPU – What can we see?
  • 25. vSphere Performance Monitoring and Troubleshooting CPU vCenter Metrics: Host/Guest Saturation Stacked Graph (per VM) Usage
  • 26. vSphere Performance Monitoring and Troubleshooting CPU vCenter Metrics: Guest Ready (value/20=n%) Swap Wait
  • 27. vSphere Performance Monitoring and Troubleshooting CPU ESXTOP Metrics:
  • 28. vSphere Performance Monitoring and Troubleshooting CPU ESXTOP Commands: esxtop s 2 V c e GID (expand/contract a VM world)
  • 29. vSphere Performance Monitoring and Troubleshooting CPU ESXTOP Example: Excessive vCPUs
  • 30. vSphere Performance Monitoring and Troubleshooting CPU ESXTOP Example: Now with fewer vCPUs
  • 31. vSphere Performance Monitoring and Troubleshooting CPU ESXTOP Example: SMP impacting multiple VMs
  • 32. vSphere Performance Monitoring and Troubleshooting CPU PowerCLI Example Get-Stat -cpu Get-Stat -Entity <VM> -stat cpu.ready.summation -realtime Very cool script code at: http://www.peetersonline.nl/index.php/vmware/examine-vmware-cpu-ready-times-with-powershell/
  • 33. vSphere Performance Monitoring and Troubleshooting CPU – Not much else to see…
  • 34. vSphere Performance Monitoring and Troubleshooting CPU Possible resources for external monitoring: Vendor specific systems management tools, MS System Center, etc. http://www.peetersonline.nl/index.php/vmware/examine-vmware-cpu-ready-times-with-powershell/
  • 35. vSphere Performance Monitoring and Troubleshooting Memory Overview
  • 36. vSphere Performance Monitoring and Troubleshooting Memory Troubleshooting Guidance: 1. Physical Issues - Rare and usually catastrophic 2. Configuration Issues - Memory overcommit; incorrect configuration of shares, reservations or limits 3. Capacity Issues - Physical memory exhaustion 4. Thresholds – Active memory swapping
  • 37. vSphere Performance Monitoring and Troubleshooting Memory – What can we see?
  • 38. vSphere Performance Monitoring and Troubleshooting Memory vCenter Metrics Swap in rate Swap out rate Swap used
  • 39. vSphere Performance Monitoring and Troubleshooting Memory ESXTOP Metrics:
  • 40. vSphere Performance Monitoring and Troubleshooting Memory ESXTOP Commands: esxtop s 2 V m f
  • 41. vSphere Performance Monitoring and Troubleshooting Memory ESXTOP Example: m – Heavy swapping and ballooning
  • 42. vSphere Performance Monitoring and Troubleshooting Memory PowerCLI Commands: Get-Stat -mem Get-Stat -Entity <VM> -stat mem.swapoutRate.average -realtime Get-Stat -Entity <VM> -stat mem.swapinRate.average -realtime Get-Stat -Entity <VM> -stat mem.vmmemctl.average -realtime Get-Stat -Entity <Host> -stat mem.swapused.average -realtime
  • 43. vSphere Performance Monitoring and Troubleshooting Memory – The occasional DIMM failure…
  • 44. vSphere Performance Monitoring and Troubleshooting Memory Possible external monitoring options: Vendor specific systems management tools, MS System Center, etc. Don’t forget vCenter ‘Hardware Status’ reporting
  • 45. vSphere Performance Monitoring and Troubleshooting Storage Overview
  • 46. vSphere Performance Monitoring and Troubleshooting Storage Troubleshooting Guidance: 1. Physical Issues - A bad cable, a failing switch port or HBA/NIC, or an incompatible/flawed firmware or device driver (use LSI Logic Parallel/SAS as appropriate) 2. Configuration Issues - Inconsistent or incorrect configuration of LUN masking, zoning, or multi-pathing; inappropriate resource provisioning; aligning queue depth with storage type 3. Capacity Issues - Too many VMs or VMDKs on a LUN; too much IO load for an array or RAID group 4. Thresholds – Latency and queuing
  • 47. vSphere Performance Monitoring and Troubleshooting Storage – What can we see?
  • 48. vSphere Performance Monitoring and Troubleshooting Storage vCenter Metrics: Datastore Read latency Write latency
  • 49. vSphere Performance Monitoring and Troubleshooting Storage ESXTOP Metrics:
  • 50. vSphere Performance Monitoring and Troubleshooting Storage
  • 51. vSphere Performance Monitoring and Troubleshooting Storage ESXTOP Commands (HBA/LUN): esxtop s 2 V d f e vmhba#
  • 52. vSphere Performance Monitoring and Troubleshooting Storage ESXTOP Commands(LUN/Datastore): esxtop s 2 V u L 38 f e <devname>
  • 53. vSphere Performance Monitoring and Troubleshooting Storage ESXTOP Commands (VM/VMDK): esxtop s 2 V v f e GID
  • 54. vSphere Performance Monitoring and Troubleshooting Storage ESXTOP Examples: d - Multipathing / Expand adapter to view targets
  • 55. vSphere Performance Monitoring and Troubleshooting Storage ESXTOP Examples: u - Queuing, Disk or Kernel?
  • 56. vSphere Performance Monitoring and Troubleshooting Storage ESXTOP Examples: v - Identify the IO consumer
  • 57. vSphere Performance Monitoring and Troubleshooting Storage vscsiStatsCommand: [root@host ~]# cd /usr/lib/vmware/bin ./vscsiStats -l ./vscsiStats -s -w <worldid> ./vscsiStats -w <worldid> -p all -c > /path/vscsistats.csv ./vscsiStats -x
  • 58. vSphere Performance Monitoring and Troubleshooting Storage vscsiStatsExample:
  • 59. vSphere Performance Monitoring and Troubleshooting Storage vscsiStatsExample:
  • 60. vSphere Performance Monitoring and Troubleshooting Storage vscsiStatsExample: http://dunnsept.wordpress.com/2010/03/11/new-vscsistats-excel-macro/
  • 61. vSphere Performance Monitoring and Troubleshooting Storage vscsiStatshistograms:
  • 62. vSphere Performance Monitoring and Troubleshooting Storage PowerCLI Commands: Get-Stat -disk Get-Stat -stat disk.totalLatency.average -realtime Get-Stat -stat disk.deviceLatency.average -realtime Get-Stat -stat disk.kernelLatency.average -realtime
  • 63. vSphere Performance Monitoring and Troubleshooting Storage – What can’t we see?
  • 64. vSphere Performance Monitoring and Troubleshooting Storage – More of what we can’t see
  • 65. vSphere Performance Monitoring and Troubleshooting Storage Possible external monitoring solutions: Vendor specific SAN and fabric/network tools, native Telnet/SSH/HTTP-based tools for most networks, third-party SNMP-based tools
  • 66. vSphere Performance Monitoring and Troubleshooting Working with PowerCLI PowerCLI Tips: For a complete list of stat objects: Get-StatType -Entity <Host/VM> Pipe the outputs to a file: Get-Stat -stat <stat> -realtime | ft -autosize > c:emplt;filename>.csv Import the CSV file data to a spreadsheet with fixed width parameters Build pretty graphs
  • 67. vSphere Performance Monitoring and Troubleshooting Working with PowerCLI
  • 68. vSphere Performance Monitoring and Troubleshooting Way More Information ESXTOP / vscsiStats / PowerCLI: http://www.yellow-bricks.com/esxtop/ Special thanks to Duncan Epping! http://communities.vmware.com/docs/DOC-3930 http://communities.vmware.com/docs/DOC-9279 http://communities.vmware.com/docs/DOC-10095 http://www.vmware.com/support/developer/PowerCLI/PowerCLI41/html/Get-Stat.html http://www.lucd.info/2009/12/30/powercli-vsphere-statistics-part-1-the-basics/ http://simongreaves.co.uk/blog/esxtop-guide http://dunnsept.wordpress.com/2010/03/11/new-vscsistats-excel-macro/
  • 69. vSphere Performance Monitoring and Troubleshooting Easy button? What is the problem with these tools? Limited alerting mechanisms, no collection automation or historical data for comparison, and no correlation of events! vCenter Operations Standard / Enterprise

Notas do Editor

  1. Who uses Resource Pools? How many have reservations or limits?
  2. Use a Host CPU stacked (per VM) graph to quickly identify leading consumers
  3. Don’t necessary need CPU saturation for overcommit to have an effect on performance
  4. Don’t necessary need CPU saturation for overcommit to have an effect on performance
  5. Don’t necessary need CPU saturation for overcommit to have an effect on performance