You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "tom@hostwebase.com" <to...@hostwebase.com> on 2007/06/09 01:47:31 UTC

how do I know activeMQ is working

Greetings,


I just download activeMQ 4.1.1.  
Our OS is Redhat ES 3.0
I have read the following info to get it running.
http://activemq.apache.org/getting-started.html
http://activemq.apache.org/examples.html

It looks like the actieMQ is running fine.

-bash-2.05b# netstat -an| grep 61616
tcp        0      0 0.0.0.0:61616           0.0.0.0:*               LISTEN

Does anyone has a sample code that I can run via a command line to indicate
that
JMS piece is working properly.   


I am setting up this environment for our developer so they can test out the
JMS functionality.
However, I am not quite how to tell if activeMQ/JMS server is working
properly before 
I hand it over to the developer.


Thanks much,
Tom

-- 
View this message in context: http://www.nabble.com/how-do-I-know-activeMQ-is-working-tf3892685s2354.html#a11035695
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: how do I know activeMQ is working

Posted by ja...@gmail.com.
Yup that is GNU java... And from what I can tell it doesn't work very well with most apps. Yet unfortunatly many linux distros come with that on the path which hoses many users. 

Use suns JVM and life will be much easier ;-)

--jason


-----Original Message-----
From: "Bruce Snyder" <br...@gmail.com>

Date: Mon, 11 Jun 2007 16:18:50 
To:users@activemq.apache.org
Subject: Re: how do I know activeMQ is working


On 6/11/07, tom@hostwebase.com <to...@hostwebase.com> wrote:
>
>
> When I run producer and consumer I got the same error.   What am I missing?
>
>
> -bash-2.05b# ant producer
> Buildfile: build.xml
>
> init:
>
> compile:
>
> producer:
>      [echo] Running producer against server at $url = tcp://localhost:61616
> for
> subject $subject = TEST.FOO
>      [java] gij: unrecognized option -- `-server'
>      [java] Try `gij --help' for more information.
>      [java] Java Result: 1

What's gij? Are you running the GNU version of Java? Try the Sun
version of Java and see if that works.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Re: how do I know activeMQ is working

Posted by Bruce Snyder <br...@gmail.com>.
On 6/11/07, tom@hostwebase.com <to...@hostwebase.com> wrote:
>
>
> When I run producer and consumer I got the same error.   What am I missing?
>
>
> -bash-2.05b# ant producer
> Buildfile: build.xml
>
> init:
>
> compile:
>
> producer:
>      [echo] Running producer against server at $url = tcp://localhost:61616
> for
> subject $subject = TEST.FOO
>      [java] gij: unrecognized option -- `-server'
>      [java] Try `gij --help' for more information.
>      [java] Java Result: 1

What's gij? Are you running the GNU version of Java? Try the Sun
version of Java and see if that works.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Re: how do I know activeMQ is working

Posted by "tom@hostwebase.com" <to...@hostwebase.com>.

When I run producer and consumer I got the same error.   What am I missing?


-bash-2.05b# ant producer
Buildfile: build.xml

init:

compile:

producer:
     [echo] Running producer against server at $url = tcp://localhost:61616
for
subject $subject = TEST.FOO
     [java] gij: unrecognized option -- `-server'
     [java] Try `gij --help' for more information.
     [java] Java Result: 1

BUILD SUCCESSFUL
Total time: 0 seconds
-bash-2.05b#












bsnyder wrote:
> 
> On 6/8/07, tom@hostwebase.com <to...@hostwebase.com> wrote:
>>
>> Greetings,
>>
>>
>> I just download activeMQ 4.1.1.
>> Our OS is Redhat ES 3.0
>> I have read the following info to get it running.
>> http://activemq.apache.org/getting-started.html
>> http://activemq.apache.org/examples.html
>>
>> It looks like the actieMQ is running fine.
>>
>> -bash-2.05b# netstat -an| grep 61616
>> tcp        0      0 0.0.0.0:61616           0.0.0.0:*              
>> LISTEN
>>
>> Does anyone has a sample code that I can run via a command line to
>> indicate
>> that
>> JMS piece is working properly.
>>
>>
>> I am setting up this environment for our developer so they can test out
>> the
>> JMS functionality.
>> However, I am not quite how to tell if activeMQ/JMS server is working
>> properly before
>> I hand it over to the developer.
> 
> If you've run the examples, you did run Java code from the command
> line. See the ProducerTool.java and the ConsumerTool.java in the src
> directory for the source code.
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
> 
> 

-- 
View this message in context: http://www.nabble.com/how-do-I-know-activeMQ-is-working-tf3892685s2354.html#a11069726
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Performance tests?

Posted by Phil Goodwin <pg...@linkedin.com>.
On 6/11/07 11:21 AM, "James Strachan" <ja...@gmail.com> wrote:

> On 6/11/07, Phil Goodwin <pg...@linkedin.com> wrote:
>> I was unable to get a clean Maven build from the 4.1.1 sources for either
>> the base build or the performance testing without changing the POMs. Is that
>> a known issue, or something that other people don't run into?
> 
> Since its a maven plugin, you don't need to build it yourself but
> should be able to just use the mvn plugins in your own pom or from a
> local build from the sources. What was the issue you hit?

The first was from the local build. I was unable to build activemq-optional,
which is part of the default build, because of an undeclared dependency on
log4j. I added the dependency to that pom.xml file and the build completed
without further errors.

The second was from the activemq-perftest directory after I'd built the
maven-activemq-perf-plugin. It's pom.xml lists the plugin groupId as,
"org.apache.activemq" when it is actually, "org.apache.activemq.tooling".
Before I changed it the build complained that the plugin could not be found,
afterwards it built and ran without complaint.

>> Also, what are the units of measure used in the results? I'm getting a
>> throughput of 6000+ something, for instance, but I don't know what that is
>> or how to use it to estimate real-world performance.
> 
> Its usually messages/second.

Does it say what size the messages are? I didn't look very closely at the
default configuration. Maybe it's in there.

Thanks for your help,

Phil

Re: Performance tests?

Posted by James Strachan <ja...@gmail.com>.
On 6/11/07, Phil Goodwin <pg...@linkedin.com> wrote:
> On 6/11/07 5:15 AM, "James Strachan" <ja...@gmail.com> wrote:
>
> > On 6/9/07, Phil Goodwin <pg...@linkedin.com> wrote:
> >> Is activemq-perftest still valid as a performance test? Is Jmeter still
> >> supported?
> >> ...
> >
> > Its a little crufty now. A better approach is to use the maven plugin
> > for performance testing ActiveMQ...
>
> Ok, good, that's what I ended up using.
>
> I was unable to get a clean Maven build from the 4.1.1 sources for either
> the base build or the performance testing without changing the POMs. Is that
> a known issue, or something that other people don't run into?

Since its a maven plugin, you don't need to build it yourself but
should be able to just use the mvn plugins in your own pom or from a
local build from the sources. What was the issue you hit?


> Also, what are the units of measure used in the results? I'm getting a
> throughput of 6000+ something, for instance, but I don't know what that is
> or how to use it to estimate real-world performance.

Its usually messages/second.
-- 
James
-------
http://macstrac.blogspot.com/

Re: Performance tests?

Posted by Phil Goodwin <pg...@linkedin.com>.
On 6/11/07 5:15 AM, "James Strachan" <ja...@gmail.com> wrote:

> On 6/9/07, Phil Goodwin <pg...@linkedin.com> wrote:
>> Is activemq-perftest still valid as a performance test? Is Jmeter still
>> supported?
>> ...
> 
> Its a little crufty now. A better approach is to use the maven plugin
> for performance testing ActiveMQ...

Ok, good, that's what I ended up using.

I was unable to get a clean Maven build from the 4.1.1 sources for either
the base build or the performance testing without changing the POMs. Is that
a known issue, or something that other people don't run into?

Also, what are the units of measure used in the results? I'm getting a
throughput of 6000+ something, for instance, but I don't know what that is
or how to use it to estimate real-world performance.

Thanks,

Phil

Re: Performance tests?

Posted by James Strachan <ja...@gmail.com>.
On 6/9/07, Phil Goodwin <pg...@linkedin.com> wrote:
> Is activemq-perftest still valid as a performance test? Is Jmeter still
> supported?
>
> I ask because activemq-perftest doesn't compile as shipped in
> apache-activemq-4.1.1-src.tar.gz, and there isn't a build for Jmeter at all.
> I'm running maven 2.0.6 on a Mac and I wasn't able to get even activemq to
> build until I added log4j as a dependency in the activemq-optional pom.xml.
> After that I couldn't build activemq-perftest until I changed the groupIds
> for the plugins from " org.apache.activemq" to
> "org.apache.activemq.tooling". We're interested in collecting some
> performance benchmarks across some different hardware so that we can decide
> exactly how we want to deploy ActiveMQ. Is activemq-perftest the right tool
> for the job?

Its a little crufty now. A better approach is to use the maven plugin
for performance testing ActiveMQ...

http://activemq.apache.org/activemq-performance-module-users-manual.html
-- 
James
-------
http://macstrac.blogspot.com/

Performance tests?

Posted by Phil Goodwin <pg...@linkedin.com>.
Is activemq-perftest still valid as a performance test? Is Jmeter still
supported?

I ask because activemq-perftest doesn't compile as shipped in
apache-activemq-4.1.1-src.tar.gz, and there isn't a build for Jmeter at all.
I'm running maven 2.0.6 on a Mac and I wasn't able to get even activemq to
build until I added log4j as a dependency in the activemq-optional pom.xml.
After that I couldn't build activemq-perftest until I changed the groupIds
for the plugins from " org.apache.activemq" to
"org.apache.activemq.tooling". We're interested in collecting some
performance benchmarks across some different hardware so that we can decide
exactly how we want to deploy ActiveMQ. Is activemq-perftest the right tool
for the job?

Thanks,

Phil

Re: how do I know activeMQ is working

Posted by Bruce Snyder <br...@gmail.com>.
On 6/8/07, tom@hostwebase.com <to...@hostwebase.com> wrote:
>
> Greetings,
>
>
> I just download activeMQ 4.1.1.
> Our OS is Redhat ES 3.0
> I have read the following info to get it running.
> http://activemq.apache.org/getting-started.html
> http://activemq.apache.org/examples.html
>
> It looks like the actieMQ is running fine.
>
> -bash-2.05b# netstat -an| grep 61616
> tcp        0      0 0.0.0.0:61616           0.0.0.0:*               LISTEN
>
> Does anyone has a sample code that I can run via a command line to indicate
> that
> JMS piece is working properly.
>
>
> I am setting up this environment for our developer so they can test out the
> JMS functionality.
> However, I am not quite how to tell if activeMQ/JMS server is working
> properly before
> I hand it over to the developer.

If you've run the examples, you did run Java code from the command
line. See the ProducerTool.java and the ConsumerTool.java in the src
directory for the source code.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/