雷霆战机核弹系列:httpwatch

来源:百度文库 编辑:九乡新闻网 时间:2024/04/29 04:57:26

httpwatch使用方法 May 31st, 2010

今天没什么case做,可以自己做点有兴趣的事情,中午仔细研究了一下httpwatch,这东西虽然用了很久,但是还是有些东西一直很迷糊,特别是对于httpwatch里面的项还是蛮模糊的,所以花了一点时间看了说明文档,总算有个清晰的认识。
httpwatch最新版本的是7.0.21,是收费的,所以只能用6.1.41好了,(*^__^*)

1、httpwatch由“-”号或者“+”组合在一起的分组
上图可以看到httpwatch分为几组,每一组代表加载一个页面相关的组件,一些不属于任何组的则表示该组建是独立的,不属于任何页面,比如像这里的favicon.icon,error.html

2、httpwatch各列的意义
httpwatch的说明文档对个列中都有明确的定义
Started:
表示请求一个文件的时间开始的时间距离第一个捕捉到日志的时间,比如说上图中的第二组记录,Started为00:00:12.127,也就是说距离记录第一组开始时间为00:00:12.127
Time Chart:
这里是个时间图,表示该http请求各个状态所花费的时间
Time :
表示请求一个链接所花费的总时间
Sent:
表示发送一个http请求所发送http 头的大小
Received:
表示接送http请求返回数据的大小
Result:
result表示Request返回的状态码,比如请求成功则为200,404未找到页面,302重定向,403不允许访问,304文件未被修改(该状态的请求不会下载组建,但是仍然会向服务器发一个请求,确认Last-Modify的时间没修改),Cache则从浏览器缓存中读取(不会向服务器发请求)
Method:
httpRequest请求的方式,一般是Get或者Post
Type:
请求文件类型
URL:
请求文件的链接

3、TimeChart的各块表示的意义,在HttpWatch文档中有详细的描述,下面引用文档中的内容备忘一下.

Blocked
The Blocked time includes any pre-processing time (such as cache lookup) and the time spent waiting for a network connection to become available. IE 7 and Firefox 2 will only create a maximum of two concurrent network connections per host name (i.e. www.microsoft.com) and will queue up requests until a network connection is available. Often the Blocked time is the most significant factor in the download time of images embedded in a web page.

DNS Lookup
DNS Lookup is the time required to resolve a host name (e.g. www.google.com) into a numeric IP address (e.g. 216.239.59.99).

Connect
Connect is the time required to create a TCP connection to the web server (or proxy). If a secure HTTPS connection is being used this time includes the SSL handshake process. Keep-Alive connections are often used to avoid the overhead of repeatedly connecting to the web server.

Send(发送一个请求所花时间)
Send is the time required to send the HTTP request message to the server and will depend on the amount of data that is sent to the server. For example, long Send times will result from uploading files using an HTTP POST.

Wait(服务器处理请求所花的时间)
Wait is the idle time spent waiting for a response message from the server. This value includes delays introduced due to network latency and the time required to process the request on the web server.

Receive(开始从服务器接受Respose到接收完成所花的时间)
Receive is the time taken to read the response message from the server. This value will be depend on the size of the content returned, network bandwidth and whether HTTP compression was used.

Cache Read
Cache Read is the time taken to read the content from the browser cache during (Cache) or 304 responses.

所以在检查页面为何慢的时候,主要关注的是Wait,Receive的时间,如果Wait的时间过长说明后台处理花费了大量的时间。否则,则检查该页面的下载组建花费的时间。

其它还有很多有用的地方,比如查看ajax请求的内容,查看http请求的post data 活着QueryString