SAP HANA Troubleshooting and Performance Analysis Guide Company
Total Page:16
File Type:pdf, Size:1020Kb
PUBLIC SAP HANA Platform 2.0 SPS 04 Document Version: 1.1 – 2019-10-31 SAP HANA Troubleshooting and Performance Analysis Guide company. All rights reserved. All rights company. affiliate THE BEST RUN 2019 SAP SE or an SAP SE or an SAP SAP 2019 © Content 1 SAP HANA Troubleshooting and Performance Analysis Guide.......................... 6 2 Analyzing Generic Symptoms...................................................9 2.1 Performance and High Resource Utilization...........................................9 2.2 Common Symptoms and Troubleshooting...........................................11 Slow System-wide Performance............................................... 12 Slow Individual SQL Statements............................................... 15 Frequent Out of Memory (OOM)............................................... 18 3 Root Causes and Solutions....................................................22 3.1 Memory Problems........................................................... 22 Memory Information in SAP HANA Cockpit....................................... 23 Memory Information from Logs and Traces....................................... 23 Memory Information from SQL Commands.......................................25 Memory Information from Other Tools...........................................29 Root Causes of Memory Problems............................................. 30 Transparent Huge Pages on Linux..............................................38 3.2 CPU Related Root Causes and Solutions............................................39 Indicators of CPU Related Issues...............................................39 Analysis of CPU Related Issues................................................39 Resolving CPU Related Issues.................................................41 Retrospective Analysis of CPU Related Issues......................................41 Controlling Parallel Execution of SQL Statements ...................................42 Controlling CPU Consumption................................................ 44 3.3 Disk Related Root Causes and Solutions............................................48 Reclaiming Disk Space......................................................52 Analyze and Resolve Internal Disk-Full Event (Alert 30)...............................53 3.4 I/O Related Root Causes and Solutions.............................................55 Analyzing I/O Throughput and Latency..........................................58 Savepoint Performance.....................................................59 3.5 Configuration Parameter Issues..................................................61 Issues with Configuration Parameter log_mode (Alert 32 and 33)........................63 3.6 Backup And Recovery.........................................................64 3.7 Delta Merge................................................................68 Inactive Delta Merge....................................................... 68 Indicator for Large Delta Storage of Column Store Tables..............................70 Failed Delta Merge.........................................................73 SAP HANA Troubleshooting and Performance Analysis Guide 2 PUBLIC Content Delta Storage Optimization...................................................74 3.8 SAP Web IDE............................................................... 75 Post-Installation Problems with Web IDE......................................... 75 Web IDE Common Issues with Modeling..........................................77 3.9 Troubleshooting BW on HANA...................................................79 3.10 Troubleshooting Multi-Dimensional Services Queries...................................90 3.11 Troubleshooting Tips for the Calculation Engine.......................................94 Native HANA Models.......................................................97 3.12 License Issues..............................................................97 System Locked Due to Missing, Expired, or Invalid License.............................98 License Problem Identification and Analysis.......................................98 Resolution of License Issues..................................................99 3.13 Security-Related Issues.......................................................100 Troubleshooting Authorization Problems........................................ 101 Troubleshooting Problems with User Name/Password Authentication....................106 Troubleshooting Problems with User Authentication and SSO......................... 108 3.14 Transactional Problems........................................................111 Blocked Transactions ......................................................111 Troubleshooting Blocked Transaction Issues that Occurred in the Past....................116 Multiversion Concurrency Control (MVCC) Issues..................................116 Version Garbage Collection Issues.............................................119 3.15 Statement Performance Analysis................................................ 121 SQL Statement Optimization.................................................122 Analysis of Critical SQL Statements............................................125 Optimization of Critical SQL Statements.........................................131 3.16 Application Performance Analysis................................................139 SQL Trace Analysis........................................................139 Statement Measurement................................................... 140 Data Analysis............................................................141 Source Analysis..........................................................142 Technical Analysis........................................................ 143 3.17 System Hanging Situations.................................................... 144 Transparent Huge Pages....................................................145 CPU Power Saving........................................................146 3.18 Troubleshoot System Replication................................................ 147 Replication Performance Problems............................................ 148 Setup and Initial Configuration Problems........................................152 Intermittent Connectivity Problems............................................157 LogReplay: Managing the Size of the Log File......................................158 3.19 Network Performance and Connectivity Problems.................................... 161 Network Performance Analysis on Transactional Level...............................161 SAP HANA Troubleshooting and Performance Analysis Guide Content PUBLIC 3 Stress Test with NIPING.................................................... 163 Application and Database Connectivity Analysis...................................164 SAP HANA System Replication Communication Problems............................166 SAP HANA Inter-Node Communication Problems..................................168 3.20 SAP HANA Dynamic Tiering....................................................170 Tools and Tracing.........................................................170 Query Plan Analysis.......................................................170 Data Loading Performance.................................................. 172 4 Tools and Tracing.......................................................... 174 4.1 System Performance Analysis...................................................174 Thread Monitoring........................................................ 174 Blocked Transaction Monitoring...............................................177 Session Monitoring........................................................178 Job Progress Monitoring....................................................179 Load Monitoring..........................................................180 4.2 SQL Statement Analysis...................................................... 180 Analyzing SQL Traces......................................................181 Analyzing Expensive Statements Traces.........................................185 Analyzing SQL Execution with the SQL Plan Cache................................. 189 4.3 Query Plan Analysis..........................................................190 Analyzing SQL Execution with the Plan Explanation.................................191 Analyzing SQL Execution with the Plan Visualizer.................................. 195 4.4 Result Cache.............................................................. 210 Static Result Cache........................................................211 Dynamic Result Cache.....................................................216 4.5 Tracing for Calculation View Queries..............................................223 4.6 Advanced Analysis..........................................................224 Analyzing Column Searches (qo trace)..........................................224 Analyzing Table Joins......................................................226 SQL Plan Stability........................................................ 227 4.7 Additional Analysis Tools for Support............................................. 231 Performance Trace........................................................231 Kernel Profiler...........................................................233 Diagnosis Information..................................................... 234 Analysis Tools in SAP HANA Web-based Developer Workbench........................ 235 5 SAP HANA Database