Hello Oleksiy,
I am up to the challenge but I have no idea where to start. What is an
interceptor, is it something like filter.
The reason where I came up with this throttle thing is some people are
attacking my glassfish, like sending 2000 requests per second, and i
get an OOM and my glassfish crashes.
Best.
On Tue, Oct 27, 2009 at 11:47 AM, Oleksiy Stashok
<Oleksiy.Stashok_at_sun.com> wrote:
> Hi,
>
>> How can I throttle requests per ip, say, max 10 requests per ip, or
>> rather ip/useragent when I am using glassfish v3? I though grizzly had
>> some built in mechanisms for that, but I could not figure out how to
>> do it.
>
> AFAIK we don't have such a mechanism. You can add it by implementing custom
> HTTP com.sun.grizzly.util.Interceptor.
>
> WBR,
> Alexey.
>
>>
>> Best.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>