Download presentation
Presentation is loading. Please wait.
1
Copyright 2003 by SPAN Technologies. Performance Assessments of Internet Systems By Kishore G. Kamath SPAN Technologies Testing solutions for the enterprise www.spantechnologies.comKishore@spantechnologies.com973-575-7235
2
Copyright 2003 by SPAN Technologies. Agenda Why do Internet systems under perform? Why do Internet systems under perform? Performance analysis in the corporate world Performance analysis in the corporate world How do automated tools work? How do automated tools work? Simulating user load Simulating user load Assessing computer systems Assessing computer systems
3
Copyright 2003 by SPAN Technologies. Performance Considerations for Internet Applications Why do Internet applications under-perform? Why do Internet applications under-perform? –Application Design/Implementation »In-efficient database queries »Poorly written code Identification Identification –Simulate light user-load –Measure system metrics on Database / App Server »CPU Utilization, Disk I/O and Processor Queue Length Database Server App Server Web Server Web Users
4
Copyright 2003 by SPAN Technologies. Performance Considerations for Internet Applications Courtesy Mercury Interactive Corp
5
Copyright 2003 by SPAN Technologies. Performance Considerations for Internet Applications Why do Internet applications under- perform? Why do Internet applications under- perform? –Unbalanced System Topology »Physical design and topology may be in-efficient »App Server components may not be co-located on same box. Identification Identification –Simulate moderate user-load –Measure system metrics on Database / App Server »CPU Utilization, Disk I/O and Processor Queue Length Measure network metrics Measure network metrics –Characteristics »High network load »Moderate CPU Utilization App server Database server Load balancer Web Server 2
6
Copyright 2003 by SPAN Technologies. Performance Considerations for Internet Applications Why do Internet applications under-perform? Why do Internet applications under-perform? –In-adequate Server/Network Capacity »Server hardware under equipped to handle software demands. »Network pipe to the Internet is too small. Identification Identification –Simulate anticipated user-load –Measure system metrics on Database / App Server »CPU Utilization, Disk I/O and Processor Queue Length –Measure network metrics –Characteristics »High network load / High CPU Utilization, Disk I/O or Processor Queue Length.
7
Copyright 2003 by SPAN Technologies. Performance Considerations for Internet Applications Courtesy Mercury Interactive Corp
8
Copyright 2003 by SPAN Technologies. Performance analysis in the corporate world Create a Test Region a scale of production Create a Test Region a scale of production Simulate user activity using an automated performance tool (Mercury Interactive LoadRunner, Compuware QALoad, Empirix E-Load or Segue Silk Performer) Simulate user activity using an automated performance tool (Mercury Interactive LoadRunner, Compuware QALoad, Empirix E-Load or Segue Silk Performer) Use automated tools to Use automated tools to –Record user activity –Replay user activity x number of users to simulate. Examine system behavior under simulated load Examine system behavior under simulated load –Review system metrics –Do root-cause analysis.
9
Copyright 2003 by SPAN Technologies. How do automated tools work? How recording works How recording works –Capture user activity at a protocol level –Create a proxy server to capture HTTP requests from a browser –Capture HTTP request components including server target requested and name value pairs. –Store these HTTP requests into a script. Record HTTP Request 1 App server Web server Script Database server Private Proxy name = “jane” password = “courant”
10
Copyright 2003 by SPAN Technologies. How do automated tools work? How replay and analysis work How replay and analysis work –Make HTTP requests stored in script. –Replace pivotal values in name-value pairs with other values. »Prevent caching from making results optimistic. Replay HTTP Request App server Web server Script Database server Script name = “jane” password = “courant” name = “harry” password = “edu” name = “john” password =NYU”
11
Copyright 2003 by SPAN Technologies. How do automated tools work? How replay and analysis work How replay and analysis work –Server cannot tell apart a script replay from a real-user request. –Multiple instances of script execution can simulate multiple users. »Instances can simulate increasing, decreasing, steady-state or random user load. –HTTP requests and server response and behavior metrics can be monitored and collated. –Correlations between requests and behavior can be analyzed.
12
Copyright 2003 by SPAN Technologies.
13
Performance analysis Light load Light load –Load is less than 10% of expected load. –Review of transaction response times and server/network metrics »High response time coupled with high Disk I/O or CPU Utilization is indicative of bad code/queries.
14
Copyright 2003 by SPAN Technologies. Performance analysis Courtesy Mercury Interactive Corp
15
Copyright 2003 by SPAN Technologies. Performance analysis Steady state 100% load Steady state 100% load –Review of server/network metrics »Increasing trend indicates an issue »Memory leaks can be determined Courtesy Mercury Interactive Corp
16
Copyright 2003 by SPAN Technologies. Performance analysis Capacity Planning Capacity Planning –Increasing load past expected load levels »Review of response times and server/network metrics Response time under expected and future load. Response time under expected and future load. Server/network utilization under expected and future load Server/network utilization under expected and future load Courtesy Mercury Interactive Corp
17
Copyright 2003 by SPAN Technologies. Performance analysis Courtesy Mercury Interactive Corp
18
Copyright 2003 by SPAN Technologies. Comparative studies Run load under 2 different conditions Run load under 2 different conditions –Example »With and without SSL. »Two different server hardware configurations. »Two different configuration settings Compare response times and metrics to study impact of change Compare response times and metrics to study impact of change –Used for tuning, benchmarking.
19
Copyright 2003 by SPAN Technologies. Courtesy Mercury Interactive Corp
20
Copyright 2003 by SPAN Technologies. IP based load-balancing Load re-directors will send load from one IP address to the same web server. Load re-directors will send load from one IP address to the same web server. Load simulation would need to use different IP addresses to simulate multiple users Load simulation would need to use different IP addresses to simulate multiple users Load simulator will spoof IP Addresses not in use when making requests to the server. Load simulator will spoof IP Addresses not in use when making requests to the server. –Max of 25-8192 IP addresses per Network card depending upon OS. Load balancer uses IP address to direct load to appropriate web-server based on hashing algorithm Load balancer uses IP address to direct load to appropriate web-server based on hashing algorithm Server host alias file re-points IP addresses back to the true load simulator IP address. Server host alias file re-points IP addresses back to the true load simulator IP address.
21
Copyright 2003 by SPAN Technologies. Summary Performance assessments of Internet systems are achieved via simulation. Performance assessments of Internet systems are achieved via simulation. Automated tools can create realistic load by simulating HTTP requests while changing data. Automated tools can create realistic load by simulating HTTP requests while changing data. Correlation of system metrics with level of load can identify performance issues and their root cause. Correlation of system metrics with level of load can identify performance issues and their root cause.
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.