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 8306031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:14:55+00:00 2026-06-08T18:14:55+00:00

Is there a way to configure Tomcat to reject a request after a specific

  • 0

Is there a way to configure Tomcat to reject a request after a specific threshold number? E.g. after 506 requests start rejecting.
Is there such an option or am I supposed to write code for this?

  • 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-08T18:14:56+00:00Added an answer on June 8, 2026 at 6:14 pm

    Tomcat’s connectors can be configured to only service a certain number of requests simultaneously — that’s configured as the maxConnections attribute of a <Connector> in server.xml. (You can also configure the acceptCount but that’s actually a queue of connections that the OS maintains that pile-up after maxConnections has been reached). This limits simultaneous connections to Tomcat across all URLs — that is, it’s just total connections that are being limited.

    If you want to limit the number of simultaneous connections to a specific URL (or specific set of URLs for that matter), you may have to write your own code. I’ve heard that Spring Security has a lot of QOS (quality-of-service) features like this that you might be able to use without writing your own code.

    Otherwise, you’ll be forced to write your own code — probably a Filter that simply keeps track of how many requests are in-progress and then rejecting those that come in after some limit has been reached. Beware of synchronization issues with counters being used across threads.

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

Sidebar

Related Questions

is there a way to configure WebSphere Portal to accept AJP connections? E.g. Tomcat/JBoss
Is there any way to configure the titanium android such that it won't show
Is there a way to configure a ListView in such a way that it
Is there a way to configure Tomcat to die automatically if there's an error
Is there a way to configure specific settings for my web application that will
Is there any way to configure an SVN server such that it does not
Is there a way to configure ASP.NET SqlMembershipProvider such that Email is optional but
Is there any way to configure second level retries without taking an additional dependency
Is there a way to configure nautilus to open a file into an existing
Is there any way to configure Doxygen to include the log from SVN for

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.