• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

The Response size

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, All.
I need to test the size of the response that a servlet send to the client.
(How many kb of dati run per response?).
What is the simplest way to know that? (If there exist a such way).
Thanks in advance.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The most basic way is to load the page in a browser, then save it to a file and check the file size. Depending on the browser, you may also be able to save associated bits like style-sheets and images.
There are tools that will profile the response for you, but only one I've used (or am aware of) is produced by IBM and is not free. I'd be interested if anyone knew of any other tools that were available.
Dave
 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try http://webtools.servehttp.com by me
Also, you can always buffer the data in a CharArrayWriter or a ByteArrayOutputStream, then get the size before sending...
[ February 05, 2004: Message edited by: Brahim Bakayoko ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic