You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by fredrick255 <fu...@hotmail.com> on 2008/08/21 15:34:20 UTC

Performance module: cannot load custom broker config

Using the default broker config I get an error message that there are too
many open files when I try to produce to 1000 topics.

I am not able to load any other configuration files.
If I give the url argument with the configType argument it seems to get
ignored:
mvn activemq-perf:broker -Durl=broker:tcp://localhost:61616
-DconfigType=memory

I still get this message when it loads up:
INFO: Using Persistence Adapter:
AMQPersistenceAdapter(activemq-data/localhost)
Aug 21, 2008 9:30:39 AM org.apache.activemq.broker.BrokerService getBroker


If I do it with out the URL argument I get:
[root@Zaurac activemq-perftest]# mvn activemq-perf:broker
-DconfigType=memory
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'activemq-perf'.
[INFO]
------------------------------------------------------------------------
[INFO] Building ActiveMQ :: Performance Test
[INFO]    task-segment: [activemq-perf:broker]
[INFO]
------------------------------------------------------------------------
[INFO] [activemq-perf:broker]
ACTIVEMQ_HOME: /root/.m2/repository/org/apache/activemq/activemq-console
ACTIVEMQ_BASE: /root/.m2/repository/org/apache/activemq/activemq-console
Loading message broker from:
xbean:file:/root/j/svn3/activemq-5.1.0/activemq-perftest/target/activemq.xml
ERROR: java.lang.RuntimeException: Failed to execute start task. Reason:
java.io.IOException: Could not load xbean
factory:java.lang.NoClassDefFoundError:
org/springframework/core/io/FileSystemResource
java.lang.RuntimeException: Failed to execute start task. Reason:
java.io.IOException: Could not load xbean
factory:java.lang.NoClassDefFoundError:
org/springframework/core/io/FileSystemResource
        at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:98)
        at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
        at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129)
        at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
        at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.activemq.console.Main.runTaskClass(Main.java:222)
        at org.apache.activemq.console.Main.main(Main.java:106)
        at org.apache.activemq.maven.ServerMojo.execute(ServerMojo.java:107)
.......


I get the same behavior with the -DconfigFile argument.

Would JMeter because easier to configure for load testing 5.1?

Any ideas?







-- 
View this message in context: http://www.nabble.com/Performance-module%3A-cannot-load-custom-broker-config-tp19088894p19088894.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Performance module: cannot load custom broker config

Posted by Ren0 <re...@thalesgroup.com>.
OK I've found myself

When you use the command, DON'T FORGET TO SET THE -Durl FLAG !!!!!

mvn activemq-perf:broker -Durl=broker:tcp://localhost:61616
-DconfigFile=./activemq-.xml




fredrick255 wrote:
> 
> Using the default broker config I get an error message that there are too
> many open files when I try to produce to 1000 topics.
> 
> I am not able to load any other configuration files.
> If I give the url argument with the configType argument it seems to get
> ignored:
> mvn activemq-perf:broker -Durl=broker:tcp://localhost:61616
> -DconfigType=memory
> 
> I still get this message when it loads up:
> INFO: Using Persistence Adapter:
> AMQPersistenceAdapter(activemq-data/localhost)
> Aug 21, 2008 9:30:39 AM org.apache.activemq.broker.BrokerService getBroker
> 
> 
> If I do it with out the URL argument I get:
> [root@Zaurac activemq-perftest]# mvn activemq-perf:broker
> -DconfigType=memory
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'activemq-perf'.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ActiveMQ :: Performance Test
> [INFO]    task-segment: [activemq-perf:broker]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [activemq-perf:broker]
> ACTIVEMQ_HOME: /root/.m2/repository/org/apache/activemq/activemq-console
> ACTIVEMQ_BASE: /root/.m2/repository/org/apache/activemq/activemq-console
> Loading message broker from:
> xbean:file:/root/j/svn3/activemq-5.1.0/activemq-perftest/target/activemq.xml
> ERROR: java.lang.RuntimeException: Failed to execute start task. Reason:
> java.io.IOException: Could not load xbean
> factory:java.lang.NoClassDefFoundError:
> org/springframework/core/io/FileSystemResource
> java.lang.RuntimeException: Failed to execute start task. Reason:
> java.io.IOException: Could not load xbean
> factory:java.lang.NoClassDefFoundError:
> org/springframework/core/io/FileSystemResource
>         at
> org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:98)
>         at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>         at
> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129)
>         at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>         at
> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.activemq.console.Main.runTaskClass(Main.java:222)
>         at org.apache.activemq.console.Main.main(Main.java:106)
>         at
> org.apache.activemq.maven.ServerMojo.execute(ServerMojo.java:107)
> .......
> 
> 
> I get the same behavior with the -DconfigFile argument.
> 
> Would JMeter because easier to configure for load testing 5.1?
> 
> Any ideas?
> 
> 
> 
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Performance-module%3A-cannot-load-custom-broker-config-tp19088894p23159480.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Performance module: cannot load custom broker config

Posted by Ren0 <re...@thalesgroup.com>.
Hi frederic,

I have the same problem.
How did you manage to fix this problem

Regards

Renaud




fredrick255 wrote:
> 
> Using the default broker config I get an error message that there are too
> many open files when I try to produce to 1000 topics.
> 
> I am not able to load any other configuration files.
> If I give the url argument with the configType argument it seems to get
> ignored:
> mvn activemq-perf:broker -Durl=broker:tcp://localhost:61616
> -DconfigType=memory
> 
> I still get this message when it loads up:
> INFO: Using Persistence Adapter:
> AMQPersistenceAdapter(activemq-data/localhost)
> Aug 21, 2008 9:30:39 AM org.apache.activemq.broker.BrokerService getBroker
> 
> 
> If I do it with out the URL argument I get:
> [root@Zaurac activemq-perftest]# mvn activemq-perf:broker
> -DconfigType=memory
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'activemq-perf'.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ActiveMQ :: Performance Test
> [INFO]    task-segment: [activemq-perf:broker]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [activemq-perf:broker]
> ACTIVEMQ_HOME: /root/.m2/repository/org/apache/activemq/activemq-console
> ACTIVEMQ_BASE: /root/.m2/repository/org/apache/activemq/activemq-console
> Loading message broker from:
> xbean:file:/root/j/svn3/activemq-5.1.0/activemq-perftest/target/activemq.xml
> ERROR: java.lang.RuntimeException: Failed to execute start task. Reason:
> java.io.IOException: Could not load xbean
> factory:java.lang.NoClassDefFoundError:
> org/springframework/core/io/FileSystemResource
> java.lang.RuntimeException: Failed to execute start task. Reason:
> java.io.IOException: Could not load xbean
> factory:java.lang.NoClassDefFoundError:
> org/springframework/core/io/FileSystemResource
>         at
> org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:98)
>         at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>         at
> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129)
>         at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>         at
> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.activemq.console.Main.runTaskClass(Main.java:222)
>         at org.apache.activemq.console.Main.main(Main.java:106)
>         at
> org.apache.activemq.maven.ServerMojo.execute(ServerMojo.java:107)
> .......
> 
> 
> I get the same behavior with the -DconfigFile argument.
> 
> Would JMeter because easier to configure for load testing 5.1?
> 
> Any ideas?
> 
> 
> 
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Performance-module%3A-cannot-load-custom-broker-config-tp19088894p23156945.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.