alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

ActiveMQ example source code file (readme.txt)

This example ActiveMQ source code file (readme.txt) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - ActiveMQ tags/keywords

dmessagecount, dreportdirectory, dreportname, durl, goal, maven, memory, memory, parameters, test, test, valid, valid, vm

The ActiveMQ readme.txt source code

####################################################################################################
# Running Maven 2 Memory usage Test
####################################################################################################

Goal                      | Description
--------------------------|----------------------------------------------------------
 activemq-memtest:memtest | Starts the broker, producer, consumer and the memory monitoring thread all in the same VM and
                          | generate the heap and non-heap memory usage of the jvm.
                          | The plugin is included by default in the \activemq-perf module.
                          |
                          | Parameters :
                          |
                          |    1. -DmessageCount - specifies number of messages to send/receive
                          |                      - default value : 100000
                          |
                          |    2. -Dtopic  - specifies domain type. Valid value is true or false
                          |                - default value : true
                          |
                          |    3. -Ddurable - specifies delivery mode: Valid value is true or false
                          |                 - default value : false
                          |
                          |    4. -DconnectionCheckpointSize - specifies size of messages sent in KB before we close and
                          |                                    start the producer/consumer to see if there is a memory
                          |                                    leak using different connections.
                          |                                  - a  value of -1 indicates that no checkpoint is set and will
                          |                                    send/consume messages using one producer/consumer conneciton
                          |                                  - default value : -1
                          |
                          |    5. -DmessageSize - specifies the message size  in bytes
                          |                     - default value : 10240  (10KB)
                          |
                          |    6. -DcheckpointInterval - specifies the interval in seconds on which the monitoring tool
                          |                              will get the memory usage of test run.
                          |                            - default value :  2  (seconds)
                          |
                          |    7. -DprefetchSize - specifies the prefetch size to be used
                          |                      - a value of -1 will indicates that test will use the default prefetch
                          |                        size (32000)
                          |                      - default value : -1
                          |
                          |    8. -Durl - species the broker url to use if not going to be using the embedded broker
                          |             - default value : null
                          |
                          |    9. -DreportName - specifies the name of the output xml file.
                          |                    - default value : activemq-memory-usage-report
                          |
                          |   10. -DreportDirectory - specifies the directory of the output file
                          |                         - default value : ${project.build.directory}/test-memtest
                          |
                          |   11. -DproducerCount - specifies the number of producers
                          |                       - default value : 1
                          |
                          |   12. -DconsumerCount - specifies the number of consumers
                          |                       - default value : 1

-----------------------------------------------------------------------------------------------
|Memory Usage Test sample output
|-----------------------------------------------------------------------------------------------
|<test-report>
|  <test-information>
|    <os-name>Windows XP
|    <java-version>1.5.0_05
|    <jvm_memory_settings>
|      <heap_memory>
|        <committed>9502720
|        <max>66650112
|      </heap_memory>
|      <non_heap_memory>
|        <committed>30736384
|        <max>121634816
|      </non_heap_memory>
|    </jvm_memory_settings>
|    <test-settings>
|      <durable>non-durable
|      <message_size>10240
|      <destination_name>FOO.BAR
|      <connection_checkpoint_size>-1
|      <consumer_count>1
|      <report_name>activemq-memory-usage-report
|      <prefetchSize>-1
|      <domain>topic
|      <producer_count>1
|      <connection_checkpoint_size_kb>-1
|      <message_count>100000
|      <report_directory>C:\Projects\logicblaze\activemq\activemq-perftest\target/test-memtest
|    </test-settings>
|  </test-information>
|  <test-result checkpoint_interval_in_sec=5 >
|      <memory_usage index=0 non_heap_mb=21 non_heap_bytes=22963904 heap_mb=6 heap_bytes=7275808/>
|      <memory_usage index=1 non_heap_mb=23 non_heap_bytes=24598560 heap_mb=11 heap_bytes=12474400/>
|      ....
|      ....
|  </test-result>
|</test-report>
|
-------------------------------------------------------------------------------------------------



Other ActiveMQ examples (source code examples)

Here is a short list of links related to this ActiveMQ readme.txt source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.