Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8021981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:08:24+00:00 2026-06-04T22:08:24+00:00

Does anyone have recommendation for setting optimal buffer size for JSP’s? You can use

  • 0

Does anyone have recommendation for setting optimal buffer size for JSP’s? You can use the following page directive to set the buffer size in JSP’s

    <%@page buffer="xxxkb" autoFlush="true" %>

My questions are the following

  1. My understanding is that the less buffer size that you use, the performance is better for client side browsers. Does my assumption correct? If you think otherwise, please explain

  2. What should be the optimal buffer size

  3. Is there a way to know what is the default buffer size?

  4. Setting autoflush to true should flush the buffer once the max size reached. If you set it to false, its upto you to decide when to flush

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T22:08:25+00:00Added an answer on June 4, 2026 at 10:08 pm

    1.My understanding is that the less buffer size that you use, the performance is better for client side browsers. Does my assumption correct? If you think otherwise, please explain

    Answer: Yes, not actually in terms of performance. But in terms of rendering the content. Because the client will get data at faster rate. Buffer size should be greater than or equal to the underlying socket buffer size. Otherwise, though the jsp’s flushes when the buffer size is reached it will not be actually written to the client.

    2.What should be the optimal buffer size

    Answer: As I have said above it should be greater than or equal the underlying socket buffer size. The optimal size also depends on your application. It should be such a value that once the buffer size is reached, the response will be committed and you can no more do operation which result in adding response header.

    3.Is there a way to know what is the default buffer size?

    Answer : Yes , by using JspWriter class. JspWriter has a getter getBufferSize() which gives you the buffer size. The JspWriter can be obtained using pageContext.getOut().

    4.Setting autoflush to true should flush the buffer once the max size reached. If you set it to false, its upto you to decide when to flush

    Answer: If set to true, it will flush when the max buffer size is reached. If set to false, it will throw an exception

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone have a recommendation for an excellent reference on Microsoft's ReportViewer (VS 2008
Does anyone have any recommendations for tools that you can add to Eclipse, Netbeans
Does anyone have a recommendation for an open-source or paid (either packaged or SaaS)
Does anyone have a recommendation for an ORM for qt4 (c++)? (Like a Django
Does anyone have a recommendation for a work flow for georeferencing high resolution aerial
Does anyone have a recommendation on how to visually show progress of uploading a
Does anyone have a recommendation for a web cam to be used on a
Does anyone have a recommendation about web service security architecture in Java (preferably under
Does anyone have a recommendation for sharing workspaces and data frames in R? I'm
Does anyone have any recommendations for CAPTCHA components for use in ASP.NET projects?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.