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.
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
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 ]
SCJP, SCWCD, SCBCD, IBM CSD WebSphere v5, <br />A+, MCP 2000 and 2000 server, CST, and few incompleted certification tracks.<br /> <br />Ivory Coast<br /> <br />Analyze your web Request/Response @ <a href="http://webtools.servehttp.com" target="_blank" rel="nofollow">http://webtools.servehttp.com</a> down for a while...