Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > strange information from trace / getting performance information using WebRequest and StreamReader

Thread Tools

strange information from trace / getting performance information using WebRequest and StreamReader

z. f.
Posts: n/a

i have wep application.
i try to investigate performance issue.
so first i built a 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) Begin Init End Init 0.000297 0.000297 Begin PreRender 0.000911 0.000615 End PreRender 0.153830 0.152919 Begin SaveViewState 0.171056 0.017225 End SaveViewState 0.171581 0.000526 Begin Render 0.171640 0.000059 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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
trace.axd and trace feature IIS only? Jiho Han ASP .Net 0 08-22-2006 12:44 PM
Reading and Writing files using Streamreader/StreamWriter Stephen ASP .Net 1 03-16-2006 11:57 AM
Grabbing the first characters of a textfile using StreamReader or ReadFile in .Net Sports ASP .Net 0 01-11-2006 03:20 PM
How to check for EOF (End of file) when using StreamReader to parse text file Sacha Korell ASP .Net 2 09-06-2003 02:59 PM