Apache Spark Big Data (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
How do you debug Spark performance bottlenecks using the Spark Web UI?
senior LevelFormsPerformance
In Simple Words:
- Stages Tab: Look for stages with high duration. Check the ratio between Max Task Time and Median Task Time; a large difference indicates Data Skew.
- Executors Tab: Inspect GC time (should be < 10% of task time) and shuffle read/write volumes.
- Storage Tab: Check what percentage of cached DataFrames are resident in memory vs spilled to disk.
- SQL Tab: Inspect physical execution plans and DAG visualizations.