• Post Reply Bookmark Topic Watch Topic
  • New Topic

The Response size  RSS feed

 
Veri Strora
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • 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.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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
 
Brahim Bakayoko
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!