Google Chrome浏览器在网络面板中的时间轴上的时间意味着什么? [英] What does the times mean in Google Chrome's timeline in the network panel?

查看:175
本文介绍了Google Chrome浏览器在网络面板中的时间轴上的时间意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常在使用Google Chrome的网络面板进行问题排查时,我会看到不同的时间,并经常想知道它们的含义。



有人可以验证我是否正确理解这些内容:


  1. 屏蔽:时间被屏蔽(???)

  2. 等待:等待与服务器的连接(???)

  3. 发送:将文件从服务器传输到浏览器的时间(???)

  4. 接收:浏览器分析和解码文件所花费的时间(???)
  5. >
  6. DNS查找:花在解析主机名上的时间。

  7. 连接:建立套接字连接的时间

现在有人会如何解决长时间阻塞的问题?

现在如何解决长时间的等待时间?

$ b

解决方案

发送是上传数据/请求到服务器的时间。它发生在阻塞和等待之间。例如,如果我回发一个ASPX页面,这将表明上传请求(包括表单和会话状态的值)返回到ASP服务器所花费的时间。



等待是发送请求之后,但收到服务器响应之前的时间。基本上这是等待服务器响应的时间。



接收是从服务器下载响应的时间。



屏蔽是时间之间的UI线程启动请求和HTTP GET请求上线。



这些发生的顺序是:




  • 阻止*

  • DNS查找

  • 连接

  • 等待

  • 接收



  • DNS查找可能会被交换。



    网络标签并不表示处理时间。



    阻塞时间,那么运行浏览器的机器运行缓慢。你可以通过升级机器(更多的内存,更快的处理器等)或减少它的工作量(关掉你不需要的服务,关闭程序等等)来解决这个问题。

    长时间的等待时间表明您的服务器需要很长时间才能响应请求。这或者意味着:


    • 请求需要很长时间才能处理(如果您要从数据库中提取大量数据,需要对数据量进行排序,或者在需要启动的硬盘上找到文件)。
    • 您的服务器收到太多请求来处理合理请求(可能需要0.02秒来处理请求,但是如果您有1000个请求,则会有明显的延迟)。



    <这两个问题(长期等待+长时间阻塞)是相关的。如果您可以通过缓存来减少服务器上的工作负载,添加新的服务器以及减少活动页面所需的工作,那么您应该在两个方面都看到改进。


    Often when troubleshooting performance using the Google Chrome's network panel I see different times and often wonder what they mean.

    Can someone validate that I understand these properly:

    1. Blocking: Time blocked by browser's multiple request for the same domain limit(???)
    2. Waiting: Waiting for a connection from the server (???)
    3. Sending: Time spent to transfer the file from the server to the browser (???)
    4. Receiving: Time spent by the browser analyzing and decoding the file (???)
    5. DNS Lookup: Time spent resolving the hostname.
    6. Connecting: Time spent establishing a socket connection.

    Now how would someone fix long blocking times?

    Now how would someone fix long waiting times?

    解决方案

    Sending is time spent uploading the data/request to the server. It occurs between blocking and waiting. For example, if I post back an ASPX page this would indicate the amount of time it took to upload the request (including the values of the forms and the session state) back to the ASP server.

    Waiting is the time after the request has been sent, but before a response from the server has been received. Basically this is the time spent waiting for a response from the server.

    Receiving is the time spent downloading the response from the server.

    Blocking is the amount of time between the UI thread starting the request and the HTTP GET request getting onto the wire.

    The order these occur in is:

    1. Blocking*
    2. DNS Lookup
    3. Connecting
    4. Sending
    5. Waiting
    6. Receiving

    *Blocking and DNS Lookup might be swapped.

    The network tab does not indicate time spent processing.

    If you have long blocking times then the machine running the browser is running slowly. You can fix this by upgrading the machine (more RAM, faster processor, etc.) or by reducing its workload (turn off services you do not need, closing programs, etc.).

    Long wait times indicate that your server is taking a long time to respond to requests. This either means:

    • The request takes a long time to process (like if you are pulling a large amount of data from the database, large amounts of data need to be sorted, or a file has to be found on an HDD which needs to spin up).
    • Your server is receiving too many requests to handle all requests in a reasonable amount of time (it might take .02 seconds to process a request, but when you have 1000 requests there will be a noticeable delay).

    The two issues (long waiting + long blocking) are related. If you can reduce the workload on the server by caching, adding new server, and reducing the work required for active pages then you should see improvements in both areas.

    这篇关于Google Chrome浏览器在网络面板中的时间轴上的时间意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆