How to Analyze User Interface Performance Issues

Problem

The Databricks user interface seems to be running slowly.

Cause

User interface performance issues typically occur due to network latency or a database query taking more time than expected.

In order to troubleshoot this type of problem, you need to collect network logs and analyze them to see which network traffic is affected.

In most cases, you will need the assistance of Databricks Support to identify and resolve issues with Databricks user interface performance, but you can also analyze the logs yourself with a tool such as G Suite Toolbox HAR Analyzer. This tool helps you analyze the logs and identify the exact API and the time taken for each request.

Troubleshooting procedure

This is the procedure for Google Chrome. For other browsers, see G Suite Toolbox HAR Analyzer.

  1. Open Google Chrome and go to the page where the issue occurs.
  2. In the Chrome menu bar, select View > Developer > Developer Tools.
  3. In the panel at the bottom of your screen, select the Network tab.
  4. Look for a round Record button in the upper left corner of the Network tab, and make sure it is red. If it is grey, click it once to start recording.
  5. Check the box next to Preserve log.
  6. Click Clear to clear out any existing logs from the Network tab.
  7. Reproduce the issue while the network requests are being recorded.
  8. After you reproduce and record the issue, right-click anywhere on the grid of network requests to open a context menu, select Save all as HAR with Content, and save the file to your computer.
  9. Analyze the file using the HAR Analyzer tool. If this analysis does not resolve the problem, open a support ticket and upload the HAR file or attach it to your email so that Databricks can analyze it.

Example output from HAR Analyzer

../_images/har-analyzer-screen.png