You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Olee <ch...@gmail.com> on 2008/10/07 08:41:58 UTC

Pure Master/Slave Problem

Dear All:
 
         I have tried the pure master/slave mode following the instructions
of the official website. However, I have the following problem

         1. When I tried the example  of producer and consumer(which is
provided by activemq under the folder named "example"), Fist, the producer
produce 1000 messages, this works well; however, when I run the consummer,
Asynchronization problem occured. In the management website, it shows that
slave can only send 100 messages.  What is the problem?

         2. if the salve is down, the master can not work? how can I handle
this problem?

        My activemq version is 5.1. Hope for your help, Thanks. My Email is
chinahxu@graduate.hku.hk
-- 
View this message in context: http://www.nabble.com/Pure-Master-Slave-Problem-tp19851956p19851956.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Pure Master/Slave Problem

Posted by Hans Bausewein <ha...@comerwell.xs4all.nl>.

Olee wrote:
> 
> Thanks for your suggestion. I have other questions.
> 
> So the problem is due to multithread and deadlock on the slave? 
> Do you think pure master/slave is applicable? Or is asyncronization
> problem very often in version 5.1?
> 

My guess is that it is not as much used as the other master/slave setups. 

I'm not sure your problem is the same as (or even similar to) mine, but I
think it's worth to investigate.
I could not use 5.1.0 at all in pure master/slave setup.


Olee wrote:
> 
> BTW, in the management web->Home, there are 3 quota usage parameter: 
> Store percent used  	0
> Memory percent used 	0
> Temp percent used 	0
> 
> What is the meaning of the first and third one? It seems only memory
> percent used increased in my test...
> 
> 

I guess "Store" is the persistent store that's used when you specify
Message.JMSDeliveryMode as DeliveryMode.PERSISTENT

"Temp percent" I don't know.


-- 
View this message in context: http://www.nabble.com/Pure-Master-Slave-Problem-tp19851956p19856168.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Pure Master/Slave Problem

Posted by Olee <ch...@gmail.com>.
Thanks for your suggestion. I have other questions.

So the problem is due to multithread and deadlock on the slave? 
Do you think pure master/slave is applicable? Or is asyncronization problem
very often in version 5.1?

BTW, in the management web->Home, there are 3 quota usage parameter: 
Store percent used  	0
Memory percent used 	0
Temp percent used 	0

What is the meaning of the first and third one? It seems only memory percent
used increased in my test...



-- 
View this message in context: http://www.nabble.com/Pure-Master-Slave-Problem-tp19851956p19854268.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Pure Master/Slave Problem

Posted by Hans Bausewein <ha...@comerwell.xs4all.nl>.


Hans Bausewein wrote:
> 
> 
> See AMQ-1849 and AMQ-1950.
> 
> 

that is:

https://issues.apache.org/activemq/browse/AMQ-1849

https://issues.apache.org/activemq/browse/AMQ-1950


Hans
-- 
View this message in context: http://www.nabble.com/Pure-Master-Slave-Problem-tp19851956p19852556.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Pure Master/Slave Problem

Posted by Hans Bausewein <ha...@comerwell.xs4all.nl>.

Olee wrote:
> 
> Dear All:
>  
>          I have tried the pure master/slave mode following the
> instructions of the official website. However, I have the following
> problem
> 
>          1. When I tried the example  of producer and consumer(which is
> provided by activemq under the folder named "example"), Fist, the producer
> produce 1000 messages, this works well; however, when I run the consummer,
> Asynchronization problem occured. In the management website, it shows that
> slave can only send 100 messages.  What is the problem?
> 
>          2. if the salve is down, the master can not work? how can I
> handle this problem?
> 
>         My activemq version is 5.1. Hope for your help, Thanks. My Email
> is chinahxu@graduate.hku.hk
> 

I've also tried it and found some issues with 5.1.0 and the current 5.2.0
versions.

See AMQ-1849 and AMQ-1950.

If you can, please check the latest 5.3.0-SNAPSHOT. For me it solved most
problems. If I have time, I'll do some more tests this week.

BTW: The Java management console (jconsole) is a great tool to investigate
issues.

-- 
View this message in context: http://www.nabble.com/Pure-Master-Slave-Problem-tp19851956p19852530.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.