This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to determine correct buffer size?  RSS feed

 
Trevor Price
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been adjusting the response buffer with setBufferSize(), but I'm wondering if someone can let me know what a good size is? Is it an art form or is there a science to it, or somewhere in between?

My scenario is as follows:

Due to certain legacy code and other issues in this servlet, I must output thousands of lines JavaScript. That means lots of . In fact, the final output approaches 1 meg in some cases. This is mostly an intranet application, so download/upload speeds should be fairly decent. However, some people will be accessing it from an external broadband connection.

Is setBufferSize(100000) too high? What kinds of things do I need to consider here?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never done anything but leave the buffer size at its default setting.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!