You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Christopher Mihaly <cm...@hotmail.com> on 2006/07/22 06:59:15 UTC

Publishing message to a durable subscription is limited

  I have a Topic that I have a durable subscription on.   The agent isn't
active.   Publishers are sending message.  But after a 1000 or so messges,
all publishers will be hung until the durable subscriber comes on and reads
the mssages off the queue.  

    Does activemq put a limit to the number of messages that can be queued
on a subscription?    I thought the reason for a database behind activemq
was to allow for queuing significant number of events for subscribers.  
This just sounds wrong.

    Or does one have to change activemq configuration so that it can support
this?

-- 
View this message in context: http://www.nabble.com/Publishing-message-to-a-durable-subscription-is-limited-tf1983320.html#a5443461
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Publishing message to a durable subscription is limited

Posted by Sandeep Chayapathi <sa...@wssource.com>.
Increase the memory limit of the broker, in activemq.xml,  via the
usageManager. For eg, this sets the memory limit to 512MB


    <memoryManager>  
        <usageManager id="memory-manager" limit="536870912"/>
    </memoryManager>

Also make sure the jvm's max heap space (via -Xmx) is more than the usage
manager's limit

- Sandeep


Christopher Mihaly wrote:
> 
> Okay, I reconfigured it to use microsoft sqlserver.  So at least I can see
> what is going on in the database.  It is storing messages, but after 1663
> message, no new messages are entered into the database and the message
> server is hung.   So, I do not think the problem is in the persistence
> layer or the database layer, it appears to be a problem with the mssage
> server?  Is this a bug?  If not, how do I make this server queue messages
> properly?
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Publishing-message-to-a-durable-subscription-is-limited-tf1983320.html#a8454075
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Publishing message to a durable subscription is limited

Posted by Christopher Mihaly <cm...@hotmail.com>.
Okay, I reconfigured it to use microsoft sqlserver.  So at least I can see
what is going on in the database.  It is storing messages, but after 1663
message, no new messages are entered into the database and the message
server is hung.   So, I do not think the problem is in the persistence layer
or the database layer, it appears to be a problem with the mssage server? 
Is this a bug?  If not, how do I make this server queue messages properly?


-- 
View this message in context: http://www.nabble.com/Publishing-message-to-a-durable-subscription-is-limited-tf1983320.html#a5448819
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Publishing message to a durable subscription is limited

Posted by Christopher Mihaly <cm...@hotmail.com>.
  Ok, I think the problem is that I do not understand how to setup
persistence and the persistence that comes with the config file out of the
box is not operational.   I tried to switch it to call out derby-ds by
adding the datasource to the persistence line and then uncomment out the
derby-ds lines in the config file.  Now, it creates a new database every
time I start up activemq, thus destorying all persisted messages. That
doesn't sound right.  I have the following quetions that I hope someone can
answer?

1). Is there some documentation on how to setup persistence to a activemq
novice?  I can't tell wht the options are or how to configure datasouces or
persistence managers.
2). Even with derby-db, a pubslisher will hang after about 2000 messages are
waiting for a subscriber to call it.  Is this right?  I believe this is
wrong?  Any ideas why this happens with journal and/or derby?
3). With derby-db, every time I start the broker, it re-creates the
database? This doesn't seem right?  How are messages persisted?

   Thanks
      Chris



Christopher Mihaly wrote:
> 
>   I have a Topic that I have a durable subscription on.   The agent isn't
> active.   Publishers are sending message.  But after a 1000 or so messges,
> all publishers will be hung until the durable subscriber comes on and
> reads the mssages off the queue.  
> 
>     Does activemq put a limit to the number of messages that can be queued
> on a subscription?    I thought the reason for a database behind activemq
> was to allow for queuing significant number of events for subscribers.  
> This just sounds wrong.
> 
>     Or does one have to change activemq configuration so that it can
> support this?
> 
> 
-- 
View this message in context: http://www.nabble.com/Publishing-message-to-a-durable-subscription-is-limited-tf1983320.html#a5448379
Sent from the ActiveMQ - User forum at Nabble.com.