如何分析用户界面性能问题How to analyze user interface performance issues

问题Problem

Azure Databricks 用户界面似乎运行缓慢。The Azure 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.

在大多数情况下,你将需要 Databricks 支持的帮助来识别和解决 Databricks 用户界面性能问题,但也可以使用G Suite 工具箱 HAR 分析器等工具自行分析日志。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. 此工具可帮助你分析日志,并确定确切的 API 和每个请求所用的时间。This tool helps you analyze the logs and identify the exact API and the time taken for each request.

故障排除过程Troubleshooting procedure

这是 Google Chrome 的过程。This is the procedure for Google Chrome. 对于其他浏览器,请参阅G Suite 工具箱 HAR 分析器For other browsers, see G Suite Toolbox HAR Analyzer.

  1. 打开 Google Chrome 并中转到出现此问题的页面。Open Google Chrome and go to the page where the issue occurs.
  2. 在 Chrome 菜单栏中,选择 "查看 > 开发人员 > 开发人员工具"。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. 再现并记录问题后,右键单击网络请求网格上的任意位置,以打开上下文菜单,选择 "全部保存为 HAR (含内容)",并将文件保存到计算机。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. 使用 HAR 分析器工具分析文件。Analyze the file using the HAR Analyzer tool. 如果此分析未解决此问题,请打开支持票证并上传 HAR 文件或将其附加到电子邮件,以便 Databricks 可以对其进行分析。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.

HAR 分析器输出示例Example output from HAR Analyzer

no-alternative-textno-alternative-text