activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: activemq fast on laptop but slow on desktop pc
Date Mon, 29 Jul 2013 11:30:01 GMT
fsync on a laptop is often ignored by the OS,  try with <kahaDB
enableJournalDiskSyncs="false" ..> to disable the fsync call to see if
the results are better on your server box which is most likely
respecting the fsync call on every send.
To avoid a fsync on every send, use a send transaction (transacted
session) to batch requests or use parallel producers so that kahaDB
can batch the concurrent writes into a single fsync.

On 27 July 2013 11:20, ariskk <kostas.kougios@googlemail.com> wrote:
> I am running a stress test of activemq. I am publishing a big string 10000
> times on a queue. It all works very fast on my laptop but on my desktop
> (which has faster disks) it is very slow. Also on the desktop I can hear the
> disk struggling to cope, like it tries to do a lot of seeks.
>
> Here is how I start up activemq:
>
> ./activemq console
> xbean:/home/ariskk/idea-workspace/backend/config/jms/activemq-stress.xml
> INFO: Using default configuration
> (you can configure options in one of these file: /etc/default/activemq
> /home/ariskk/.activemqrc)
>
> INFO: Invoke the following command to create a configuration file
> ./activemq setup [ /etc/default/activemq | /home/ariskk/.activemqrc ]
>
> INFO: Using java '/home/ariskk/programs/jdk/bin/java'
> INFO: Starting in foreground, this is just for debugging purposes (stop
> process by pressing CTRL+C)
> Java Runtime: Oracle Corporation 1.7.0_25 /home/ariskk/programs/jdk/jre
>   Heap sizes: current=1004928k  free=994439k  max=1004928k
>     JVM args: -Xms1G -Xmx1G
> -Djava.util.logging.config.file=logging.properties
> -Dcom.sun.management.jmxremote
> -Djava.io.tmpdir=/home/ariskk/programs/apache-activemq/tmp
> -Dactivemq.classpath=/home/ariskk/programs/apache-activemq/conf;
> -Dactivemq.home=/home/ariskk/programs/apache-activemq
> -Dactivemq.base=/home/ariskk/programs/apache-activemq
> -Dactivemq.conf=/home/ariskk/programs/apache-activemq/conf
> -Dactivemq.data=/home/ariskk/programs/apache-activemq/data
> Extensions classpath:
>
> [/home/ariskk/programs/apache-activemq/lib,/home/ariskk/programs/apache-activemq/lib/camel,/home/ariskk/programs/apache-activemq/lib/optional,/home/ariskk/programs/apache-activemq/lib/web,/home/ariskk/programs/apache-activemq/lib/extra]
> ACTIVEMQ_HOME: /home/ariskk/programs/apache-activemq
> ACTIVEMQ_BASE: /home/ariskk/programs/apache-activemq
> ACTIVEMQ_CONF: /home/ariskk/programs/apache-activemq/conf
> ACTIVEMQ_DATA: /home/ariskk/programs/apache-activemq/data
> Loading message broker from:
> xbean:/home/ariskk/idea-workspace/backend/config/jms/activemq-stress.xml
>  INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@11cdf8a:
> startup date [Sat Jul 27 11:08:07 BST 2013]; root of context hierarchy
>  INFO |
> PListStore:[/run/media/ariskk/raptor1/activemq-data/localhost/tmp_storage]
> started
>  INFO | Using Persistence Adapter:
> KahaDBPersistenceAdapter[/run/media/ariskk/raptor1/activemq-data/kahadb]
>  INFO | JMX consoles can connect to
> service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
>  INFO | KahaDB is version 4
>  INFO | Recovering from the journal ...
>  INFO | Recovery replayed 1 operations from the journal in 0.019 seconds.
>  INFO | Apache ActiveMQ 5.8.0 (localhost,
> ID:localhost.localdomain-41270-1374919689650-0:1) is starting
>  INFO | Listening for connections at:
> tcp://localhost.localdomain:60001?maximumConnections=1000&wireformat.maxFrameSize=104857600
>  INFO | Connector openwire Started
>  INFO | Apache ActiveMQ 5.8.0 (localhost,
> ID:localhost.localdomain-41270-1374919689650-0:1) started
>  INFO | For help or more information please see: http://activemq.apache.org
>  WARN | Store limit is 102400 mb, whilst the data directory:
> /run/media/ariskk/raptor1/activemq-data/kahadb only has 32789 mb of usable
> space
> ERROR | Temporary Store limit is 51200 mb, whilst the temporary data
> directory: /run/media/ariskk/raptor1/activemq-data/localhost/tmp_storage
> only has 32789 mb of usable space
>
>
> Here is my activemq config:
>
> <beans
>                 xmlns="http://www.springframework.org/schema/beans"
>                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>                 xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
>                 http://activemq.apache.org/schema/core
> http://activemq.apache.org/schema/core/activemq-core.xsd">
>
>         <broker xmlns="http://activemq.apache.org/schema/core"
> brokerName="localhost"
> dataDirectory="/run/media/ariskk/raptor1/activemq-data/">
>
>                 <managementContext>
>                         <managementContext createConnector="true"/>
>                 </managementContext>
>
>                 <persistenceAdapter>
>                         <kahaDB directory="/run/media/ariskk/raptor1/activemq-data/kahadb"/>
>                 </persistenceAdapter>
>
>
>                 <transportConnectors>
>                         <transportConnector name="openwire"
>
> uri="tcp://0.0.0.0:60001?maximumConnections=1000&amp;wireformat.maxFrameSize=104857600"/>
>                 </transportConnectors>
>         </broker>
> </beans>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/activemq-fast-on-laptop-but-slow-on-desktop-pc-tp4669815.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
http://redhat.com
http://blog.garytully.com

Mime
View raw message