[Logo]
Forums Register Login
How to determine correct buffer size?
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?
I've never done anything but leave the buffer size at its default setting.
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss


This thread has been viewed 684 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jul 20, 2018 05:01:28.