[ 
https://issues.apache.org/activemq/browse/AMQ-850?page=comments#action_36741 ] 
            
Vadim Pesochinskiy commented on AMQ-850:
----------------------------------------

Even with prefetchSize=1 you will already loose 1 message. Somehow people tend 
to assume that loosing 1 message is not a big deal :-). In many cases it is a 
big deal, because there is a client can be waiting for response.

Thinking about this problem as a performance issue seems wrong to me. I think 
of it more like a graceful recovery from crash/bug/hang.

> add the ability to timeout a consumer to prevent a bad, hung or unused 
> consumer consumer from grabbing messages
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-850
>                 URL: https://issues.apache.org/activemq/browse/AMQ-850
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: Broker
>            Reporter: james strachan
>             Fix For: 4.2
>
>
> If a MessageConsumer is created but not used, it still tends to get its 
> prefetch-buffer worth of messages. If it does not process them within a 
> specific time the consumer should either be closed, or the messages unacked 
> and flushed from the buffer so that the consumer does not hog the messages.
> Similarly if a consumer gets a message but then locks up without processing 
> the message we should lazily kill the consumer releasing and redelivering all 
> its messages

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to