tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Braun <>
Subject Any way to deal with too many request per second?
Date Fri, 29 Jun 2012 23:57:52 GMT

First of all, I'm using Ubuntu 11.1 + Tomcat 7.0.22.

I created a RESTfull service. My clients are sending me HTTP requests, and
I return them responses. Usually, a client makes at the most 1-2 requests
per second which is totally fine, but some clients sometimes make about 30
requests per second and that makes my server suffer, even though I'm using
a load balancer with two servers behind it. I would like to find a way to
deal with this. The best thing would be to delay them when they do that,
not to totally stop or ban them, but to slow them somehow. Maybe creating a
queue for them, or maybe putting them in a lower priority, until they slow
their requests.
I could program this myself, but I guess there is already a
solution somewhere. Maybe a Tomcat valve could do it? Does anybody know
one? Or maybe some kind of filter? Any suggestions?

Thanks in advance.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message