Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Concrete use cases of SQL Performance Analysis

703 views

Published on

How to troubleshoot slow SQL performance with 0 agent?
How to detect all errors / issues in SQL activities without any performance impact?

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Concrete use cases of SQL Performance Analysis

  1. 1. Performance Vision 3.0 © SecurActive 2014 DATABASETRANSACTIONSPERFORMANCEANALYSIS
  2. 2. © SecurActive 2014 2 DATABASEPERFORMANCEANALYSIS 1. Make it Just Work, Now! 2. This %*$@/#& Application is IntolerablySlow! 3. Do you really Think I have EnoughTimefor This? 2. Use Cases 1. Product Features 3. Q&A
  3. 3. © SecurActive 2014 3 DATABASEPERFORMANCEANALYSIS 1. Make it Just Work, Now! 2. This %*$@/#& Application is Intolerably Slow! 3. Do you really Think I have Enough Time for This? 2. Use Cases 1. Product Features 3. Q&A
  4. 4. © SecurActive 2014 4 DATABASES: BUSINESSCRITICALELEMENTS Today Databases areAre Essentials for almost all Critical ApplicationsAre Essentials Elementsof Complex Application ChainsHave Extremely Variable Performances due to Heterogeneity of Use Cases
  5. 5. © SecurActive 2014 5 OURBENEFITSFind Root Cause of SQL Issues in Minutes Easy Deployment, No Configuration, SQL Auto-DetectionEasily Monitor and Diagnostic SQL Transactions Display of All SQL Queries 24x7Quickly Solve Mission Critical Database Problems Agentless Solution, No Overhead on Databases
  6. 6. © SecurActive 2014 IN-DEPTHDATABASEPERFORMANCEANALYSIS Databases in APS Supported Databases in APS Oracle Microsoft SQL MySQL (and derivatives) PostgreSQL 6
  7. 7. © SecurActive 2014 PERFORMANCEOFSQL QUERIESOVERTIME 7
  8. 8. © SecurActive 2014 PERFORMANCEOFSQL QUERIESOVERTIME Display SQL performance metrics over time for: Performance Number of queries Payload Number of Packets (PDUs) One-click drill down to details 8
  9. 9. © SecurActive 2014 SQL MOSTACTIVESERVERS,CLIENT&QUERIES 9
  10. 10. © SecurActive 2014 SQL MOSTACTIVESERVERS Display SQL metrics formost requested servers Server IP Number of queriesand errors Queries and responses payload Server responsetime& data transfertime One-click drill down to queries and errors 10
  11. 11. © SecurActive 2014 SQL MOSTACTIVECLIENTS Display SQL metrics formost active clients by IP Client IP Number of queriesand errors Queries and responses payload Server responsetime& data transfertime One-click drill down to queries and errors 11
  12. 12. © SecurActive 2014 SQL MOSTFREQUENTQUERIES 12 Display the most frequent SQL queries SQL query Number of occurrences and errors Server responsetime& data transfertime Queries and responses payload One-click drill down to queries and errors
  13. 13. © SecurActive 2014 INSPECTQUERYDETAILS 13
  14. 14. © SecurActive 2014 LISTOFSQL QUERIES Display the list of SQL queries Client and Server System, database, username SQL query Server responsetime& data transfertime One-click drill down to more details 14
  15. 15. © SecurActive 2014 SQL RAWDATA: ADVANCEDTROUBLESHOOTING Display all queries detailsfor troubleshooting System, database, username SQL Query Status ErrorCode Error Message 15
  16. 16. © SecurActive 2014 TRUEROOTCAUSEANALYSIS Directaccess to transactionlevel Display query details Improved readability Query formatting Color highlighting Resizable text area 16
  17. 17. © SecurActive 2014 SQL DEDICATEDFILTERS DedicatedSQL filters: refine your search Search resultsby: Database system Commandtype Databasename Username SQL query Error/ status code ORA-1403 is notconsidered as an error 17
  18. 18. © SecurActive 2014 18 DATABASEPERFORMANCEANALYSIS 1. Make it Just Work, Now! 2. This %*$@/#& Application is IntolerablySlow! 3. Do you really Think I have EnoughTimefor This? 2. Use Cases 1. Product Features 3. Q&A
  19. 19. © SecurActive 2014 Pinpoint the Slow SQL Query… MAKEITJUSTWORK, NOW! 19 Make it Just Work, Now!
  20. 20. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Check HTTP response Times Identify Slow URLs Check the Network Check SQL Clients Look at Top SQL Queries Pinpoint the Slow SQL Query 20
  21. 21. Filter on Client IP: 172.16.42.3 © SecurActive 2014 CHECKHTTPRESPONSETIME 21 Response Times are Bad: 5s to 20s
  22. 22. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Check HTTP response Times Identify Slow URLs Check the Network Check SQL Clients Look at Top SQL Queries Pinpoint the Slow SQL Query 22
  23. 23. © SecurActive 2014 IDENTIFYSLOWURLS Server Response Time: 59.6 s URL: http://xxx.yyy.zzz/eu/host.app?uid=6276&appid=451&nmap=10202&par1=1e1d-6d78-b792... 23 Client IP 172.16.42.3(Madrid) Server IP192.168.160.4(ServerFarm)
  24. 24. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Check HTTP response Times Identify Slow URLs Check the Network Check SQL Clients Look at Top SQL Queries Pinpoint the Slow SQL Query 24
  25. 25. © SecurActive 2014 CHECKTHENETWORK: ITWORKSFINE 25 Network Performance Source: 172.16.42.3, Destination: 192.168.160.4 Latency Ok Retransmission RateOk Packets numberOk
  26. 26. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Check HTTP response Times Identify Slow URLs Check the Network Check SQL Clients Look at Top SQL Queries Pinpoint the Slow SQL Query 26
  27. 27. © SecurActive 2014 CHECKSQLCLIENTS SQL Server Response Time is Fine 27 ServerQueries 4117 435 2 84 361 3 77 485 145 ServerSRT 434 ms 2 40 ms 3 39 ms 10.5 ms SQL Load Balancing Looks Bad SQL Top Clients, Filter on Client Zone ServerFarm
  28. 28. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Check HTTP response Times Identify Slow URLs Check the Network Check SQL Clients Look at Top SQL Queries Pinpoint the Slow SQL Query 28
  29. 29. © SecurActive 2014 LOOKATTOPSQLQUERIES 29 Average SQL Server Response Time is Fine Top SQL Queries, Filter on Client IP 192.168.160.4
  30. 30. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Check HTTP response Times Identify Slow URLs Check the Network Check SQL Clients Look at Top SQL Queries Pinpoint the Slow SQL Query 30
  31. 31. URL: http://xxx.yyy.zzz/eu/host.app?uid=6276&appid=451&nmap=10202&par1=1e1d-6d78-b792... © SecurActive 2014 PINPOINTTHESLOWSQLQUERY 31 SQL Query Response Time: 59.1s Filter on query parameters
  32. 32. © SecurActive 2014 Checking Query over Time… THIS%*$@/#& APPLICATIONISINTOLERABLYSLOW! 32 This %*$@/#& Application is IntolerablySlow!
  33. 33. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Business Critical Application Issue Drilldown to Conversations Find Slow SQL Query Check Query SRT over Time Identify all Impacted Users 33
  34. 34. © SecurActive 2014 BUSINESSCRITICALAPPLICATIONISSUE 34 Issue on Application: “Calendar Management” End User Response Time exceeds SLA Threshold: > 1s
  35. 35. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Business Critical Application Issue Drilldown to Conversations Find Slow SQL Query Check Query SRT over Time Identify all Impacted Users 35
  36. 36. © SecurActive 2014 DRILLDOWNTOCONVERSATIONS 36 Filter Conversations for Application: “Calendar Management” Client IP10.121.10.96(Local users) Server IP10.10.1.5(Web farm) Date2014-07-04 10:36:41 End User Response Time 11.6 s Front Web SQL
  37. 37. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Business Critical Application Issue Drilldown to Conversations Find the Slow SQL Query Check Query SRT over Time Identify all Impacted Users 37
  38. 38. © SecurActive 2014 FINDTHESLOWSQL QUERY 38 Filter SQL Queries around the date: 2014-07-04 10:36:41 Front Web SQL Date 2014-07-04 10:36:42 Client IP10.10.1.5 Query Server Response Time 30.2 s
  39. 39. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Business Critical Application Issue Drilldown to Conversations Find Slow SQL Query Check Query SRT over Time Identify all Impacted Users 39
  40. 40. © SecurActive 2014 CHECKTHESQL QUERYSRTOVERTIME 40 Slowdown occurs several times! Filter on SQL Query
  41. 41. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Business Critical Application Issue Drilldown to Conversations Find Slow SQL Query Check Query SRT over Time See Occurrences of the Query 41
  42. 42. See all Occurrences of the Query © SecurActive 2014 SEEOCCURRENCESOFTHESQL QUERY 42 Filter on SQL Query Go back in the application chain to see all impacted users Find Impacted Users Look into query details to understand the issue’s root cause (scenario 3) Inspect Query Details What’s Next?
  43. 43. © SecurActive 2014 Inspect Slow SQL Query … DOYOUREALLYTHINKI HAVEENOUGHTIMEFORTHIS? 43 Do you Really Think I have EnoughTimefor This?
  44. 44. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Check Application Performance Check Network Performance Drilldown to Conversations Check SQL Performance Look at SQL Queries Inspect Slow SQL Query 44
  45. 45. © SecurActive 2014 CHECKAPPLICATIONPERFORMANCE 45 Filter on Application “Doctor-BackOffice-HQ” for Client IP 10.100.10.49 We see the slowdowns over time
  46. 46. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Check Application Performance Check The Network Drilldown to Conversations Check SQL Performance Look at SQL Queries Inspect Slow SQL Query 46
  47. 47. © SecurActive 2014 CHECKTHENETWORK: ITWORKSFINE 47 Latency Ok Retransmission RateOk Packets numberOk Check Network Performance for Application “Doctor-BackOffice-HQ” and Client IP 10.100.10.49
  48. 48. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Check Application Performance Check Network Performance Drilldown to Conversations Check SQL Performance Look at SQL Queries Inspect Slow SQL Query 48
  49. 49. © SecurActive 2014 DRILLDOWNTOCONVERSATIONS 49 Display Conversations for Application “Doctor-BackOffice-HQ” and Client IP 10.100.10.49 Direct Connection from Client IP 10.100.10.49 To Database pool, with Server IP 10.150.1.2
  50. 50. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Check Application Performance Check Network Performance Drilldown to Conversations Check SQL Performance Look at SQL Queries Inspect Slow SQL Query 50
  51. 51. © SecurActive 2014 CHECKSQLPERFORMANCE 51 Application “Doctor-BackOffice-HQ” Performance for Client IP 10.100.10.49 SQL Performance between Client IP 10.100.10.49 &Database Server IP 10.150.1.2
  52. 52. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Check Application Performance Check Network Performance Drilldown to Conversations Check SQL Performance Look at SQL Queries Inspect Slow SQL Query 52
  53. 53. © SecurActive 2014 LOOKATSQLQUERIES 53 Display SQL Queries between Client IP 10.100.10.49 &Database Server IP 10.150.1.2 Response Time Variationsfor SimilarQueries
  54. 54. © SecurActive 2014 PERFORMANCEANALYSISWORKFLOW Check Application Performance Check Network Performance Drilldown to Conversations Check SQL Performance Look at SQL Queries Inspect Query Details 54
  55. 55. © SecurActive 2014 INSPECTQUERYDETAILS 55 Query Response Time Variations are Related to Larger Time Ranges in the Query 6 months: 31.7 s 1 year: 1.0 min 1 month: 16.9 s
  56. 56. © SecurActive 2014 56 DATABASEPERFORMANCEANALYSIS 1. Make it Just Work, Now! 2. This %*$@/#& Application is Intolerably Slow! 3. Do you really Think I have Enough Time for This? 2. Use Cases 1. Product Features 3. Q&A
  57. 57. Performance Vision helps keeping your customers happy! Click to read moreabout it. © SecurActive 2014 DATABASETRANSACTIONSPERFORMANCEANALYSIS 57 Satisfied Customers
  58. 58. © SecurActive 2014 ONLINERESOURCES 58 Test Downloada trial Virtual Appliance www.securactive.net > Demo Information Contactus for a live demo www.securactive.net> Company Buy Locatea distribution partner www.securactive.net> Partners
  59. 59. Database Transactions Performance Analysis © SecurActive 2014 THANKYOU! For any Question sales@securactive.net support@securactive.net Follow Us on @SecurActivePV www.securactive.net blog.securactive.net

×