• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Web page size & response time calculation

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to calculate the page size of a web page. I feel if this is done in some kind of a plugin
Is there any better way to proceed and calculate the exact web page components sizes and then sumup all to get the total size.
also response time and individual items processing time if available...etc

Any assistance is greatly appreciated.
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can do this on the server with a servlet filter. It can intercept all page requests, and -after they're done processing- access the output stream to count the number of bytes they contain.

It could also measure response generation times by remembering the current time when the request comes in, and subtracting that from the current time when the response goes out.
 
Eswar Varanasi
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks for your response. This seems to be a good idea but what I wanted to do is to develop some kind of a tool external to server, with internet explorer. Any idea how to develop this as a plugin
in IE.
 
Ulf Dittmer
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Using Java? That doesn't sound doable, unless you're prepared to write native code that starts a JVM using JNI. But on a Java site you're probably not going to get much help writing IE plugins in C/C++ :-)

You might also look into the Firefox extension TamperData. It shows (amongst other things) the size and response times of all pages/URLs you access.
[ August 14, 2008: Message edited by: Ulf Dittmer ]
 
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic