strange information from asp.net trace / getting performance information using WebRequest and Stream

Discussion in 'ASP .Net' started by z. f., Feb 3, 2005.

  1. z. f.

    z. f. Guest

    Hi,

    i have asp.net vb.net wep application.
    i try to investigate performance issue.
    so first i built a vb.net windows application that makes http requests to my pages and show me the time taken to receive the page and it's size.
    the windows app uses a WebRequest and StreamReader to receive the http request.
    the strange information is for a page that took to receive about 218 ms
    i enabled the trace in the web.config of my pages, and trace logged and watched through trace.axd.
    when i examine the trace information i have this table of information:


    Trace Information
    Category Message From First(s) From Last(s)
    aspx.page Begin Init
    aspx.page End Init 0.000297 0.000297
    aspx.page Begin PreRender 0.000911 0.000615
    aspx.page End PreRender 0.153830 0.152919
    aspx.page Begin SaveViewState 0.171056 0.017225
    aspx.page End SaveViewState 0.171581 0.000526
    aspx.page Begin Render 0.171640 0.000059
    aspx.page End Render 2.629846 2.458206


    how can it be that the end render took 2.4 seconds while the client got the page in 218ms?

    what is the problem here.
    i will recheck my information with a third party tool.
    the 218ms if for a webRequest.GetResponse to return.
    i guess is that the function returns after the asynchronous request returns.
    so what might be the cause to the time differencets?

    i will point that extra time is occur for the reader.ReadToEnd() function.
    if the response is chunked (http transfer-encoding:chunked) or if the response if flushed several time, should this cause the reader.ReadToEnd to perform extra time, isn't the data already there? might the webRequest.GetResponse returned before all the request was received?

    TIA, z.
     
    z. f., Feb 3, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rukmal Fernando
    Replies:
    4
    Views:
    1,088
    Richard Grimes [MVP]
    Oct 27, 2003
  2. Thomas Koch

    Using Trace and Switches in ASP.NET

    Thomas Koch, Jan 27, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    674
    Thomas Koch
    Jan 28, 2004
  3. Matthias S.
    Replies:
    1
    Views:
    855
    Daniel Fisher\(lennybacon\)
    Nov 30, 2005
  4. Jiho Han
    Replies:
    0
    Views:
    732
    Jiho Han
    Aug 22, 2006
  5. =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?=

    Adding my messages to the trace.axd trace?

    =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?=, Apr 6, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    796
    =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?=
    Apr 6, 2007
  6. pelegk1
    Replies:
    2
    Views:
    642
    pelegk1
    Mar 27, 2008
  7. Alexander Wolff

    save generic asp.net trace information to file

    Alexander Wolff, Apr 18, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    463
    Teemu Keiski
    Apr 19, 2008
  8. Chris Newby
    Replies:
    0
    Views:
    1,021
    Chris Newby
    Jul 28, 2008
Loading...