You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by JS75 <je...@aboveE.com> on 2007/12/21 07:47:34 UTC
Performance & Backup problems
Dear Sir:
Thanked to your help, I build a simple project profile.
However, I have some issues and problems!!
1. As posted before, I get certain exception from AMQ4.1 to AMQ5.0
java.lang.NoSuchMethodError:
org.apache.activemq.ActiveMQMessageProducerSupport.getDestination()Ljavax/jms/Destination;
And now I've included two jars - activemq-all-5.0.0.jar and
commons-logging-1.1.jar
I should have missed certain jar, right?
2. I'd want to monitor the broker embedded in my project, (better with web
console), could I?
3. Test senario : 10 producers who send 1000 messages separately and 10
consumers receive.
Comparing performance of VM and its of TCP, I found the TCP is quicker than
VM (how could that happend?) about 32:25. However according to FAQ
documents, VM is more efficient because of lack of socket, but I got
different results?!
PS, there are during about 10 second that no producers nor consumers did
something!
4. I have an issue that backup queue or topic data every morning or on a
certain time, could that be implemented?...I read other people's
suggestions, db trigger is one of the method, however, I wish it can be
implemented by AMQ setting.
After surfing this forum and countless try and error tests, I finally
realize AMQ a little~
Thank you for your help!!
Sincerely,
Jean
--
View this message in context: http://www.nabble.com/Performance---Backup-problems-tp14451122s2354p14451122.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Performance & Backup problems
Posted by JS75 <je...@aboveE.com>.
Appreciate for your help, I double checked jar sequence, it is really my
fault.
For the issue 2, could you please describe more detail in wiki??
Actually I did steps as adding
<commandAgent xmlns="http://activemq.org/config/1.0"/>
into activemq.xml (It already exits, doesn't it?)
But I can't monitor queues with web console as standard!
Another main point, I found some problems in performance >D
In documents, activeMQ can receive about 2000 messages/per second,
however, even I use the example, it can only achieve 10-20 messages/ per
second.
Here are my hardware...
Intel Pentium 1.3G
1G RAM
1 producer+1 consumer+1000messages(1k)
all in the same VM
This is a huge problem for me, please help me to figure it out!!
ttmdev wrote:
>
> For issue 1: it sure does look like you're not picking up the jar files.
> My JMS applications' reference
> activemq-all-5.0.0.jar and commons-logging-1.1.jar, and have no problem.
>
> For issue 2: You can leverage the CommandAgent.
>
> http://activemq.apache.org/command-agent.html
>
> And/or use mirrored queues to monitor the traffic.
>
> http://activemq.apache.org/mirrored-queues.html
>
> Joe
>
>
>
> JS75 wrote:
>>
>> About issue 1:
>> I found it resulted from QueueProducer.send(Message)
>> java.lang.NoSuchMethodError:
>> org.apache.activemq.ActiveMQMessageProducerSupport.getDestination()Ljavax/jms/Destination
>>
>> public void send(javax.jms.Message message) throws
>> javax.jms.JMSException;
>> 0 aload_0 [this]
>> 1 aload_0 [this]
>>
>> 2 invokevirtual
>> org.apache.activemq.ActiveMQMessageProducerSupport.getDestination() :
>> javax.jms.Destination [21]
>> <Problem should be here!!! But I have no idea why and what I can do!!>
>>
>> However, it can run in AMQ4.x, but not in AMQ5.0
>>
>> About issue2:
>> Could I change settings in activemq.xml so that I could monitor queues in
>> my project??
>>
>> Sincerely,
>> Jean
>>
>>
>>
>>
>> rajdavies wrote:
>>>
>>> Your sure you're picking up the jar correctly?
>>> On Dec 21, 2007, at 6:47 AM, JS75 wrote:
>>>
>>>>
>>>> Dear Sir:
>>>>
>>>> Thanked to your help, I build a simple project profile.
>>>> However, I have some issues and problems!!
>>>>
>>>> 1. As posted before, I get certain exception from AMQ4.1 to AMQ5.0
>>>> java.lang.NoSuchMethodError:
>>>> org
>>>> .apache
>>>> .activemq.ActiveMQMessageProducerSupport.getDestination()Ljavax/jms/
>>>> Destination;
>>>> And now I've included two jars - activemq-all-5.0.0.jar and
>>>> commons-logging-1.1.jar
>>>> I should have missed certain jar, right?
>>>>
>>>> 2. I'd want to monitor the broker embedded in my project, (better
>>>> with web
>>>> console), could I?
>>>>
>>>> 3. Test senario : 10 producers who send 1000 messages separately and
>>>> 10
>>>> consumers receive.
>>>> Comparing performance of VM and its of TCP, I found the TCP is
>>>> quicker than
>>>> VM (how could that happend?) about 32:25. However according to FAQ
>>>> documents, VM is more efficient because of lack of socket, but I got
>>>> different results?!
>>>> PS, there are during about 10 second that no producers nor consumers
>>>> did
>>>> something!
>>>>
>>>> 4. I have an issue that backup queue or topic data every morning or
>>>> on a
>>>> certain time, could that be implemented?...I read other people's
>>>> suggestions, db trigger is one of the method, however, I wish it can
>>>> be
>>>> implemented by AMQ setting.
>>>>
>>>> After surfing this forum and countless try and error tests, I finally
>>>> realize AMQ a little~
>>>> Thank you for your help!!
>>>>
>>>> Sincerely,
>>>> Jean
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Performance---Backup-problems-tp14451122s2354p14451122.html
>>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Performance---Backup-problems-tp14451122s2354p14498853.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Performance & Backup problems
Posted by ttmdev <jo...@ttmsolutions.com>.
For issue 1: it sure does look like you're not picking up the jar files. My
JMS applications' reference
activemq-all-5.0.0.jar and commons-logging-1.1.jar, and have no problem.
For issue 2: You can leverage the CommandAgent.
http://activemq.apache.org/command-agent.html
And/or use mirrored queues to monitor the traffic.
http://activemq.apache.org/mirrored-queues.html
Joe
JS75 wrote:
>
> About issue 1:
> I found it resulted from QueueProducer.send(Message)
> java.lang.NoSuchMethodError:
> org.apache.activemq.ActiveMQMessageProducerSupport.getDestination()Ljavax/jms/Destination
>
> public void send(javax.jms.Message message) throws javax.jms.JMSException;
> 0 aload_0 [this]
> 1 aload_0 [this]
>
> 2 invokevirtual
> org.apache.activemq.ActiveMQMessageProducerSupport.getDestination() :
> javax.jms.Destination [21]
> <Problem should be here!!! But I have no idea why and what I can do!!>
>
> However, it can run in AMQ4.x, but not in AMQ5.0
>
> About issue2:
> Could I change settings in activemq.xml so that I could monitor queues in
> my project??
>
> Sincerely,
> Jean
>
>
>
>
> rajdavies wrote:
>>
>> Your sure you're picking up the jar correctly?
>> On Dec 21, 2007, at 6:47 AM, JS75 wrote:
>>
>>>
>>> Dear Sir:
>>>
>>> Thanked to your help, I build a simple project profile.
>>> However, I have some issues and problems!!
>>>
>>> 1. As posted before, I get certain exception from AMQ4.1 to AMQ5.0
>>> java.lang.NoSuchMethodError:
>>> org
>>> .apache
>>> .activemq.ActiveMQMessageProducerSupport.getDestination()Ljavax/jms/
>>> Destination;
>>> And now I've included two jars - activemq-all-5.0.0.jar and
>>> commons-logging-1.1.jar
>>> I should have missed certain jar, right?
>>>
>>> 2. I'd want to monitor the broker embedded in my project, (better
>>> with web
>>> console), could I?
>>>
>>> 3. Test senario : 10 producers who send 1000 messages separately and
>>> 10
>>> consumers receive.
>>> Comparing performance of VM and its of TCP, I found the TCP is
>>> quicker than
>>> VM (how could that happend?) about 32:25. However according to FAQ
>>> documents, VM is more efficient because of lack of socket, but I got
>>> different results?!
>>> PS, there are during about 10 second that no producers nor consumers
>>> did
>>> something!
>>>
>>> 4. I have an issue that backup queue or topic data every morning or
>>> on a
>>> certain time, could that be implemented?...I read other people's
>>> suggestions, db trigger is one of the method, however, I wish it can
>>> be
>>> implemented by AMQ setting.
>>>
>>> After surfing this forum and countless try and error tests, I finally
>>> realize AMQ a little~
>>> Thank you for your help!!
>>>
>>> Sincerely,
>>> Jean
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Performance---Backup-problems-tp14451122s2354p14451122.html
>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Performance---Backup-problems-tp14451122s2354p14488953.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Performance & Backup problems
Posted by JS75 <je...@aboveE.com>.
About issue 1:
I found it resulted from QueueProducer.send(Message)
java.lang.NoSuchMethodError:
org.apache.activemq.ActiveMQMessageProducerSupport.getDestination()Ljavax/jms/Destination
However, it can run in AMQ4.x, but not in AMQ5.0
Does anyone get idea why??
About issue2:
Could I change settings in activemq.xml so that I could monitor queues in my
project??
Sincerely,
Jean
JS75 wrote:
>
> Yeah...
> In AMQ4.1.1, what Jar I need is only apache-activemq-4.1.1.jar
> In AMQ 5.0, I added activemq-all-5.0.0.jar first
> But I got this exception
> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
> So, I added commons-logging-1.1.jar
>
> That's why I guess I might miss certain jar so that I got this exception
> java.lang.NoSuchMethodError:
> org.apache.activemq.ActiveMQMessageProducerSupport.getDestination()Ljavax/jms/Destination;
>
>
> rajdavies wrote:
>>
>> Your sure you're picking up the jar correctly?
>> On Dec 21, 2007, at 6:47 AM, JS75 wrote:
>>
>>>
>>> Dear Sir:
>>>
>>> Thanked to your help, I build a simple project profile.
>>> However, I have some issues and problems!!
>>>
>>> 1. As posted before, I get certain exception from AMQ4.1 to AMQ5.0
>>> java.lang.NoSuchMethodError:
>>> org
>>> .apache
>>> .activemq.ActiveMQMessageProducerSupport.getDestination()Ljavax/jms/
>>> Destination;
>>> And now I've included two jars - activemq-all-5.0.0.jar and
>>> commons-logging-1.1.jar
>>> I should have missed certain jar, right?
>>>
>>> 2. I'd want to monitor the broker embedded in my project, (better
>>> with web
>>> console), could I?
>>>
>>> 3. Test senario : 10 producers who send 1000 messages separately and
>>> 10
>>> consumers receive.
>>> Comparing performance of VM and its of TCP, I found the TCP is
>>> quicker than
>>> VM (how could that happend?) about 32:25. However according to FAQ
>>> documents, VM is more efficient because of lack of socket, but I got
>>> different results?!
>>> PS, there are during about 10 second that no producers nor consumers
>>> did
>>> something!
>>>
>>> 4. I have an issue that backup queue or topic data every morning or
>>> on a
>>> certain time, could that be implemented?...I read other people's
>>> suggestions, db trigger is one of the method, however, I wish it can
>>> be
>>> implemented by AMQ setting.
>>>
>>> After surfing this forum and countless try and error tests, I finally
>>> realize AMQ a little~
>>> Thank you for your help!!
>>>
>>> Sincerely,
>>> Jean
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Performance---Backup-problems-tp14451122s2354p14451122.html
>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Performance---Backup-problems-tp14451122s2354p14483694.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Performance & Backup problems
Posted by JS75 <je...@aboveE.com>.
Yeah...
In AMQ4.1.1, what Jar I need is only apache-activemq-4.1.1.jar
In AMQ 5.0, I added activemq-all-5.0.0.jar first
But I got this exception
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
So, I added commons-logging-1.1.jar
That's why I guess I might miss certain jar so that I got this exception
java.lang.NoSuchMethodError:
org.apache.activemq.ActiveMQMessageProducerSupport.getDestination()Ljavax/jms/Destination;
rajdavies wrote:
>
> Your sure you're picking up the jar correctly?
> On Dec 21, 2007, at 6:47 AM, JS75 wrote:
>
>>
>> Dear Sir:
>>
>> Thanked to your help, I build a simple project profile.
>> However, I have some issues and problems!!
>>
>> 1. As posted before, I get certain exception from AMQ4.1 to AMQ5.0
>> java.lang.NoSuchMethodError:
>> org
>> .apache
>> .activemq.ActiveMQMessageProducerSupport.getDestination()Ljavax/jms/
>> Destination;
>> And now I've included two jars - activemq-all-5.0.0.jar and
>> commons-logging-1.1.jar
>> I should have missed certain jar, right?
>>
>> 2. I'd want to monitor the broker embedded in my project, (better
>> with web
>> console), could I?
>>
>> 3. Test senario : 10 producers who send 1000 messages separately and
>> 10
>> consumers receive.
>> Comparing performance of VM and its of TCP, I found the TCP is
>> quicker than
>> VM (how could that happend?) about 32:25. However according to FAQ
>> documents, VM is more efficient because of lack of socket, but I got
>> different results?!
>> PS, there are during about 10 second that no producers nor consumers
>> did
>> something!
>>
>> 4. I have an issue that backup queue or topic data every morning or
>> on a
>> certain time, could that be implemented?...I read other people's
>> suggestions, db trigger is one of the method, however, I wish it can
>> be
>> implemented by AMQ setting.
>>
>> After surfing this forum and countless try and error tests, I finally
>> realize AMQ a little~
>> Thank you for your help!!
>>
>> Sincerely,
>> Jean
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Performance---Backup-problems-tp14451122s2354p14451122.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>
>
>
--
View this message in context: http://www.nabble.com/Performance---Backup-problems-tp14451122s2354p14451673.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Performance & Backup problems
Posted by Rob Davies <ra...@gmail.com>.
Your sure you're picking up the jar correctly?
On Dec 21, 2007, at 6:47 AM, JS75 wrote:
>
> Dear Sir:
>
> Thanked to your help, I build a simple project profile.
> However, I have some issues and problems!!
>
> 1. As posted before, I get certain exception from AMQ4.1 to AMQ5.0
> java.lang.NoSuchMethodError:
> org
> .apache
> .activemq.ActiveMQMessageProducerSupport.getDestination()Ljavax/jms/
> Destination;
> And now I've included two jars - activemq-all-5.0.0.jar and
> commons-logging-1.1.jar
> I should have missed certain jar, right?
>
> 2. I'd want to monitor the broker embedded in my project, (better
> with web
> console), could I?
>
> 3. Test senario : 10 producers who send 1000 messages separately and
> 10
> consumers receive.
> Comparing performance of VM and its of TCP, I found the TCP is
> quicker than
> VM (how could that happend?) about 32:25. However according to FAQ
> documents, VM is more efficient because of lack of socket, but I got
> different results?!
> PS, there are during about 10 second that no producers nor consumers
> did
> something!
>
> 4. I have an issue that backup queue or topic data every morning or
> on a
> certain time, could that be implemented?...I read other people's
> suggestions, db trigger is one of the method, however, I wish it can
> be
> implemented by AMQ setting.
>
> After surfing this forum and countless try and error tests, I finally
> realize AMQ a little~
> Thank you for your help!!
>
> Sincerely,
> Jean
>
>
> --
> View this message in context: http://www.nabble.com/Performance---Backup-problems-tp14451122s2354p14451122.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>