Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Slow servlet output - performance needed

Status
Not open for further replies.

nybz

Programmer
Mar 18, 2004
19
0
0
US
My servlet loads a StringBuffer sb and outputs the results via <out.println(sb.toString())> where out is the return from response.getWriter(). The performance on that single output line is terrible. Any help on how to optimize the throughput would be greatly appreciated.
 
You could try using the direct IO stream via getOutputStream() and then writing pure byte data (sb.toString().getBytes()) - but I doubt it will increase performance much ...

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top