Setting svn:eol-style

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@474985 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2006-11-14 21:16:11 +00:00
parent 9e6eb830b3
commit 06a365f12c
33 changed files with 3857 additions and 3853 deletions

View File

@ -1,28 +1,28 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# #
# The logging properties used during tests.. # The logging properties used during tests..
# #
log4j.rootLogger=DEBUG, stdout log4j.rootLogger=DEBUG, stdout
log4j.logger.org.apache.activemq.spring=WARN log4j.logger.org.apache.activemq.spring=WARN
# CONSOLE appender not used by default # CONSOLE appender not used by default
log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n

View File

@ -15,257 +15,257 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.activemq.kaha.impl.index; package org.apache.activemq.kaha.impl.index;
import java.io.IOException; import java.io.IOException;
import org.apache.activemq.kaha.StoreEntry; import org.apache.activemq.kaha.StoreEntry;
/** /**
* A linked list used by IndexItems * A linked list used by IndexItems
* *
* @version $Revision$ * @version $Revision$
*/ */
public class DiskIndexLinkedList implements IndexLinkedList{ public class DiskIndexLinkedList implements IndexLinkedList{
protected IndexManager indexManager; protected IndexManager indexManager;
protected transient IndexItem root; protected transient IndexItem root;
protected transient IndexItem last; protected transient IndexItem last;
protected transient int size=0; protected transient int size=0;
/** /**
* Constructs an empty list. * Constructs an empty list.
*/ */
public DiskIndexLinkedList(IndexManager im,IndexItem header){ public DiskIndexLinkedList(IndexManager im,IndexItem header){
this.indexManager=im; this.indexManager=im;
this.root=header; this.root=header;
} }
public IndexItem getRoot(){ public IndexItem getRoot(){
return root; return root;
} }
void setRoot(IndexItem e){ void setRoot(IndexItem e){
this.root=e; this.root=e;
} }
/** /**
* Returns the first element in this list. * Returns the first element in this list.
* *
* @return the first element in this list. * @return the first element in this list.
*/ */
public IndexItem getFirst(){ public IndexItem getFirst(){
if(size==0) if(size==0)
return null; return null;
return getNextEntry(root); return getNextEntry(root);
} }
/** /**
* Returns the last element in this list. * Returns the last element in this list.
* *
* @return the last element in this list. * @return the last element in this list.
*/ */
public IndexItem getLast(){ public IndexItem getLast(){
if(size==0) if(size==0)
return null; return null;
return last; return last;
} }
/** /**
* Removes and returns the first element from this list. * Removes and returns the first element from this list.
* *
* @return the first element from this list. * @return the first element from this list.
*/ */
public StoreEntry removeFirst(){ public StoreEntry removeFirst(){
if(size==0){ if(size==0){
return null; return null;
} }
IndexItem result=getNextEntry(root); IndexItem result=getNextEntry(root);
remove(result); remove(result);
return result; return result;
} }
/** /**
* Removes and returns the last element from this list. * Removes and returns the last element from this list.
* *
* @return the last element from this list. * @return the last element from this list.
*/ */
public Object removeLast(){ public Object removeLast(){
if(size==0) if(size==0)
return null; return null;
StoreEntry result=last; StoreEntry result=last;
remove(last); remove(last);
return result; return result;
} }
/** /**
* Inserts the given element at the beginning of this list. * Inserts the given element at the beginning of this list.
* *
* @param o the element to be inserted at the beginning of this list. * @param o the element to be inserted at the beginning of this list.
*/ */
public void addFirst(IndexItem item){ public void addFirst(IndexItem item){
if(size==0){ if(size==0){
last=item; last=item;
} }
size++; size++;
} }
/** /**
* Appends the given element to the end of this list. (Identical in function to the <tt>add</tt> method; included * Appends the given element to the end of this list. (Identical in function to the <tt>add</tt> method; included
* only for consistency.) * only for consistency.)
* *
* @param o the element to be inserted at the end of this list. * @param o the element to be inserted at the end of this list.
*/ */
public void addLast(IndexItem item){ public void addLast(IndexItem item){
size++; size++;
last=item; last=item;
} }
/** /**
* Returns the number of elements in this list. * Returns the number of elements in this list.
* *
* @return the number of elements in this list. * @return the number of elements in this list.
*/ */
public int size(){ public int size(){
return size; return size;
} }
/** /**
* is the list empty? * is the list empty?
* *
* @return true if there are no elements in the list * @return true if there are no elements in the list
*/ */
public boolean isEmpty(){ public boolean isEmpty(){
return size==0; return size==0;
} }
/** /**
* Appends the specified element to the end of this list. * Appends the specified element to the end of this list.
* *
* @param o element to be appended to this list. * @param o element to be appended to this list.
* @return <tt>true</tt> (as per the general contract of <tt>Collection.add</tt>). * @return <tt>true</tt> (as per the general contract of <tt>Collection.add</tt>).
*/ */
public boolean add(IndexItem item){ public boolean add(IndexItem item){
addLast(item); addLast(item);
return true; return true;
} }
/** /**
* Removes all of the elements from this list. * Removes all of the elements from this list.
*/ */
public void clear(){ public void clear(){
last=null; last=null;
size=0; size=0;
} }
// Positional Access Operations // Positional Access Operations
/** /**
* Returns the element at the specified position in this list. * Returns the element at the specified position in this list.
* *
* @param index index of element to return. * @param index index of element to return.
* @return the element at the specified position in this list. * @return the element at the specified position in this list.
* *
* @throws IndexOutOfBoundsException if the specified index is is out of range (<tt>index &lt; 0 || index &gt;= size()</tt>). * @throws IndexOutOfBoundsException if the specified index is is out of range (<tt>index &lt; 0 || index &gt;= size()</tt>).
*/ */
public IndexItem get(int index){ public IndexItem get(int index){
return entry(index); return entry(index);
} }
/** /**
* Inserts the specified element at the specified position in this list. Shifts the element currently at that * Inserts the specified element at the specified position in this list. Shifts the element currently at that
* position (if any) and any subsequent elements to the right (adds one to their indices). * position (if any) and any subsequent elements to the right (adds one to their indices).
* *
* @param index index at which the specified element is to be inserted. * @param index index at which the specified element is to be inserted.
* @param element element to be inserted. * @param element element to be inserted.
* *
* @throws IndexOutOfBoundsException if the specified index is out of range (<tt>index &lt; 0 || index &gt; size()</tt>). * @throws IndexOutOfBoundsException if the specified index is out of range (<tt>index &lt; 0 || index &gt; size()</tt>).
*/ */
public void add(int index,IndexItem element){ public void add(int index,IndexItem element){
if(index==size-1){ if(index==size-1){
last=element; last=element;
} }
size++; size++;
} }
/** /**
* Removes the element at the specified position in this list. Shifts any subsequent elements to the left (subtracts * Removes the element at the specified position in this list. Shifts any subsequent elements to the left (subtracts
* one from their indices). Returns the element that was removed from the list. * one from their indices). Returns the element that was removed from the list.
* *
* @param index the index of the element to removed. * @param index the index of the element to removed.
* @return the element previously at the specified position. * @return the element previously at the specified position.
* *
* @throws IndexOutOfBoundsException if the specified index is out of range (<tt>index &lt; 0 || index &gt;= size()</tt>). * @throws IndexOutOfBoundsException if the specified index is out of range (<tt>index &lt; 0 || index &gt;= size()</tt>).
*/ */
public Object remove(int index){ public Object remove(int index){
IndexItem e=entry(index); IndexItem e=entry(index);
remove(e); remove(e);
return e; return e;
} }
/** /**
* Return the indexed entry. * Return the indexed entry.
*/ */
private IndexItem entry(int index){ private IndexItem entry(int index){
if(index<0||index>=size) if(index<0||index>=size)
throw new IndexOutOfBoundsException("Index: "+index+", Size: "+size); throw new IndexOutOfBoundsException("Index: "+index+", Size: "+size);
IndexItem e=root; IndexItem e=root;
for(int i=0;i<=index;i++) for(int i=0;i<=index;i++)
e=getNextEntry(e); e=getNextEntry(e);
if(e != null &&last!=null && last.equals(e)){ if(e != null &&last!=null && last.equals(e)){
last = e; last = e;
} }
return e; return e;
} }
// Search Operations // Search Operations
/** /**
* Returns the index in this list of the first occurrence of the specified element, or -1 if the List does not * Returns the index in this list of the first occurrence of the specified element, or -1 if the List does not
* contain this element. More formally, returns the lowest index i such that * contain this element. More formally, returns the lowest index i such that
* <tt>(o==null ? get(i)==null : o.equals(get(i)))</tt>, or -1 if there is no such index. * <tt>(o==null ? get(i)==null : o.equals(get(i)))</tt>, or -1 if there is no such index.
* *
* @param o element to search for. * @param o element to search for.
* @return the index in this list of the first occurrence of the specified element, or -1 if the list does not * @return the index in this list of the first occurrence of the specified element, or -1 if the list does not
* contain this element. * contain this element.
*/ */
public int indexOf(StoreEntry o){ public int indexOf(StoreEntry o){
int index=0; int index=0;
if(size>0){ if(size>0){
for(IndexItem e=getNextEntry(root);e!=null;e=getNextEntry(e)){ for(IndexItem e=getNextEntry(root);e!=null;e=getNextEntry(e)){
if(o.equals(e)){ if(o.equals(e)){
return index; return index;
} }
index++; index++;
} }
} }
return -1; return -1;
} }
/** /**
* Retrieve the next entry after this entry * Retrieve the next entry after this entry
* *
* @param entry * @param entry
* @return next entry * @return next entry
*/ */
public IndexItem getNextEntry(IndexItem current){ public IndexItem getNextEntry(IndexItem current){
IndexItem result=null; IndexItem result=null;
if(current!=null&&current.getNextItem()>=0){ if(current!=null&&current.getNextItem()>=0){
try{ try{
result=indexManager.getIndex(current.getNextItem()); result=indexManager.getIndex(current.getNextItem());
}catch(IOException e){ }catch(IOException e){
throw new RuntimeException("Failed to get next index from " + indexManager + " for " + current,e); throw new RuntimeException("Failed to get next index from " + indexManager + " for " + current,e);
} }
} }
// essential last get's updated consistently // essential last get's updated consistently
if(result != null &&last!=null && last.equals(result)){ if(result != null &&last!=null && last.equals(result)){
result = last; result = last;
} }
return result; return result;
} }
/** /**
* Retrive the prev entry after this entry * Retrive the prev entry after this entry
* *
* @param entry * @param entry
* @return prev entry * @return prev entry
*/ */
public IndexItem getPrevEntry(IndexItem current){ public IndexItem getPrevEntry(IndexItem current){
IndexItem result=null; IndexItem result=null;
if(current!=null&&current.getPreviousItem()>=0){ if(current!=null&&current.getPreviousItem()>=0){
@ -280,22 +280,22 @@ public class DiskIndexLinkedList implements IndexLinkedList{
return root; return root;
} }
return result; return result;
} }
public StoreEntry getEntry(StoreEntry current){ public StoreEntry getEntry(StoreEntry current){
StoreEntry result=null; StoreEntry result=null;
if(current != null && current.getOffset() >= 0){ if(current != null && current.getOffset() >= 0){
try{ try{
result=indexManager.getIndex(current.getOffset()); result=indexManager.getIndex(current.getOffset());
}catch(IOException e){ }catch(IOException e){
throw new RuntimeException("Failed to index",e); throw new RuntimeException("Failed to index",e);
} }
} }
//essential root get's updated consistently //essential root get's updated consistently
if(result != null &&root!=null && root.equals(result)){ if(result != null &&root!=null && root.equals(result)){
return root; return root;
} }
return result; return result;
} }
/** /**
@ -316,18 +316,18 @@ public class DiskIndexLinkedList implements IndexLinkedList{
return root; return root;
} }
return result; return result;
} }
public void remove(IndexItem e){ public void remove(IndexItem e){
if(e==root||e.equals(root)) if(e==root||e.equals(root))
return; return;
if(e==last||e.equals(last)){ if(e==last||e.equals(last)){
if(size>1){ if(size>1){
last=getPrevEntry(last); last=getPrevEntry(last);
}else{ }else{
last=null; last=null;
} }
} }
size--; size--;
} }
} }

View File

@ -1,249 +1,249 @@
/** /**
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this * contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF * work for additional information regarding copyright ownership. The ASF
* licenses this file to You under the Apache License, Version 2.0 (the * licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. * "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under * License for the specific language governing permissions and limitations under
* the License. * the License.
*/ */
package org.apache.activemq.store.kahadaptor; package org.apache.activemq.store.kahadaptor;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.util.HashSet; import java.util.HashSet;
import java.util.Iterator; import java.util.Iterator;
import java.util.Set; import java.util.Set;
import org.apache.activemq.broker.ConnectionContext; import org.apache.activemq.broker.ConnectionContext;
import org.apache.activemq.command.ActiveMQDestination; import org.apache.activemq.command.ActiveMQDestination;
import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.command.ActiveMQTopic; import org.apache.activemq.command.ActiveMQTopic;
import org.apache.activemq.kaha.IndexTypes; import org.apache.activemq.kaha.IndexTypes;
import org.apache.activemq.kaha.ListContainer; import org.apache.activemq.kaha.ListContainer;
import org.apache.activemq.kaha.MapContainer; import org.apache.activemq.kaha.MapContainer;
import org.apache.activemq.kaha.Store; import org.apache.activemq.kaha.Store;
import org.apache.activemq.kaha.StoreFactory; import org.apache.activemq.kaha.StoreFactory;
import org.apache.activemq.kaha.StringMarshaller; import org.apache.activemq.kaha.StringMarshaller;
import org.apache.activemq.memory.UsageManager; import org.apache.activemq.memory.UsageManager;
import org.apache.activemq.openwire.OpenWireFormat; import org.apache.activemq.openwire.OpenWireFormat;
import org.apache.activemq.store.MessageStore; import org.apache.activemq.store.MessageStore;
import org.apache.activemq.store.PersistenceAdapter; import org.apache.activemq.store.PersistenceAdapter;
import org.apache.activemq.store.TopicMessageStore; import org.apache.activemq.store.TopicMessageStore;
import org.apache.activemq.store.TransactionStore; import org.apache.activemq.store.TransactionStore;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap; import edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap;
/** /**
* @org.apache.xbean.XBean * @org.apache.xbean.XBean
* *
* @version $Revision: 1.4 $ * @version $Revision: 1.4 $
*/ */
public class KahaPersistenceAdapter implements PersistenceAdapter{ public class KahaPersistenceAdapter implements PersistenceAdapter{
private static final Log log=LogFactory.getLog(KahaPersistenceAdapter.class); private static final Log log=LogFactory.getLog(KahaPersistenceAdapter.class);
static final String PREPARED_TRANSACTIONS_NAME="PreparedTransactions"; static final String PREPARED_TRANSACTIONS_NAME="PreparedTransactions";
KahaTransactionStore transactionStore; KahaTransactionStore transactionStore;
ConcurrentHashMap topics=new ConcurrentHashMap(); ConcurrentHashMap topics=new ConcurrentHashMap();
ConcurrentHashMap queues=new ConcurrentHashMap(); ConcurrentHashMap queues=new ConcurrentHashMap();
ConcurrentHashMap messageStores=new ConcurrentHashMap(); ConcurrentHashMap messageStores=new ConcurrentHashMap();
private boolean useExternalMessageReferences; private boolean useExternalMessageReferences;
private OpenWireFormat wireFormat=new OpenWireFormat(); private OpenWireFormat wireFormat=new OpenWireFormat();
private long maxDataFileLength=32*1024*1024; private long maxDataFileLength=32*1024*1024;
private String indexType=IndexTypes.DISK_INDEX; private String indexType=IndexTypes.DISK_INDEX;
private File dir; private File dir;
private Store theStore; private Store theStore;
public KahaPersistenceAdapter(File dir) throws IOException{ public KahaPersistenceAdapter(File dir) throws IOException{
if(!dir.exists()){ if(!dir.exists()){
dir.mkdirs(); dir.mkdirs();
} }
this.dir=dir; this.dir=dir;
} }
public Set getDestinations(){ public Set getDestinations(){
Set rc=new HashSet(); Set rc=new HashSet();
try{ try{
Store store=getStore(); Store store=getStore();
for(Iterator i=store.getMapContainerIds().iterator();i.hasNext();){ for(Iterator i=store.getMapContainerIds().iterator();i.hasNext();){
Object obj=i.next(); Object obj=i.next();
if(obj instanceof ActiveMQDestination){ if(obj instanceof ActiveMQDestination){
rc.add(obj); rc.add(obj);
} }
} }
}catch(IOException e){ }catch(IOException e){
log.error("Failed to get destinations ",e); log.error("Failed to get destinations ",e);
} }
return rc; return rc;
} }
public synchronized MessageStore createQueueMessageStore(ActiveMQQueue destination) throws IOException{ public synchronized MessageStore createQueueMessageStore(ActiveMQQueue destination) throws IOException{
MessageStore rc=(MessageStore)queues.get(destination); MessageStore rc=(MessageStore)queues.get(destination);
if(rc==null){ if(rc==null){
rc=new KahaMessageStore(getMapContainer(destination,"queue-data"),destination); rc=new KahaMessageStore(getMapContainer(destination,"queue-data"),destination);
messageStores.put(destination,rc); messageStores.put(destination,rc);
if(transactionStore!=null){ if(transactionStore!=null){
rc=transactionStore.proxy(rc); rc=transactionStore.proxy(rc);
} }
queues.put(destination,rc); queues.put(destination,rc);
} }
return rc; return rc;
} }
public synchronized TopicMessageStore createTopicMessageStore(ActiveMQTopic destination) throws IOException{ public synchronized TopicMessageStore createTopicMessageStore(ActiveMQTopic destination) throws IOException{
TopicMessageStore rc=(TopicMessageStore)topics.get(destination); TopicMessageStore rc=(TopicMessageStore)topics.get(destination);
if(rc==null){ if(rc==null){
Store store=getStore(); Store store=getStore();
ListContainer messageContainer=getListContainer(destination,"topic-data"); ListContainer messageContainer=getListContainer(destination,"topic-data");
MapContainer subsContainer=getMapContainer(destination.toString()+"-Subscriptions","topic-subs"); MapContainer subsContainer=getMapContainer(destination.toString()+"-Subscriptions","topic-subs");
ListContainer ackContainer=store.getListContainer(destination.toString(),"topic-acks"); ListContainer ackContainer=store.getListContainer(destination.toString(),"topic-acks");
ackContainer.setMarshaller(new TopicSubAckMarshaller()); ackContainer.setMarshaller(new TopicSubAckMarshaller());
rc=new KahaTopicMessageStore(store,messageContainer,ackContainer,subsContainer,destination); rc=new KahaTopicMessageStore(store,messageContainer,ackContainer,subsContainer,destination);
messageStores.put(destination,rc); messageStores.put(destination,rc);
if(transactionStore!=null){ if(transactionStore!=null){
rc=transactionStore.proxy(rc); rc=transactionStore.proxy(rc);
} }
topics.put(destination,rc); topics.put(destination,rc);
} }
return rc; return rc;
} }
protected MessageStore retrieveMessageStore(Object id){ protected MessageStore retrieveMessageStore(Object id){
MessageStore result=(MessageStore)messageStores.get(id); MessageStore result=(MessageStore)messageStores.get(id);
return result; return result;
} }
public TransactionStore createTransactionStore() throws IOException{ public TransactionStore createTransactionStore() throws IOException{
if(transactionStore==null){ if(transactionStore==null){
Store store=getStore(); Store store=getStore();
MapContainer container=store.getMapContainer(PREPARED_TRANSACTIONS_NAME,"transactions"); MapContainer container=store.getMapContainer(PREPARED_TRANSACTIONS_NAME,"transactions");
container.setKeyMarshaller(new CommandMarshaller(wireFormat)); container.setKeyMarshaller(new CommandMarshaller(wireFormat));
container.setValueMarshaller(new TransactionMarshaller(wireFormat)); container.setValueMarshaller(new TransactionMarshaller(wireFormat));
container.load(); container.load();
transactionStore=new KahaTransactionStore(this,container); transactionStore=new KahaTransactionStore(this,container);
} }
return transactionStore; return transactionStore;
} }
public void beginTransaction(ConnectionContext context){ public void beginTransaction(ConnectionContext context){
} }
public void commitTransaction(ConnectionContext context) throws IOException{ public void commitTransaction(ConnectionContext context) throws IOException{
if(theStore!=null){ if(theStore!=null){
theStore.force(); theStore.force();
} }
} }
public void rollbackTransaction(ConnectionContext context){ public void rollbackTransaction(ConnectionContext context){
} }
public void start() throws Exception{ public void start() throws Exception{
} }
public void stop() throws Exception{ public void stop() throws Exception{
if(theStore!=null){ if(theStore!=null){
theStore.close(); theStore.close();
} }
} }
public long getLastMessageBrokerSequenceId() throws IOException{ public long getLastMessageBrokerSequenceId() throws IOException{
return 0; return 0;
} }
public void deleteAllMessages() throws IOException{ public void deleteAllMessages() throws IOException{
if(theStore!=null){ if(theStore!=null){
theStore.delete(); theStore.delete();
} }
} }
public boolean isUseExternalMessageReferences(){ public boolean isUseExternalMessageReferences(){
return useExternalMessageReferences; return useExternalMessageReferences;
} }
public void setUseExternalMessageReferences(boolean useExternalMessageReferences){ public void setUseExternalMessageReferences(boolean useExternalMessageReferences){
this.useExternalMessageReferences=useExternalMessageReferences; this.useExternalMessageReferences=useExternalMessageReferences;
} }
protected MapContainer getMapContainer(Object id,String containerName) throws IOException{ protected MapContainer getMapContainer(Object id,String containerName) throws IOException{
Store store=getStore(); Store store=getStore();
MapContainer container=store.getMapContainer(id,containerName); MapContainer container=store.getMapContainer(id,containerName);
container.setKeyMarshaller(new StringMarshaller()); container.setKeyMarshaller(new StringMarshaller());
if(useExternalMessageReferences){ if(useExternalMessageReferences){
container.setValueMarshaller(new StringMarshaller()); container.setValueMarshaller(new StringMarshaller());
}else{ }else{
container.setValueMarshaller(new CommandMarshaller(wireFormat)); container.setValueMarshaller(new CommandMarshaller(wireFormat));
} }
container.load(); container.load();
return container; return container;
} }
protected ListContainer getListContainer(Object id,String containerName) throws IOException{ protected ListContainer getListContainer(Object id,String containerName) throws IOException{
Store store=getStore(); Store store=getStore();
ListContainer container=store.getListContainer(id,containerName); ListContainer container=store.getListContainer(id,containerName);
if(useExternalMessageReferences){ if(useExternalMessageReferences){
container.setMarshaller(new StringMarshaller()); container.setMarshaller(new StringMarshaller());
}else{ }else{
container.setMarshaller(new CommandMarshaller(wireFormat)); container.setMarshaller(new CommandMarshaller(wireFormat));
} }
container.load(); container.load();
return container; return container;
} }
/** /**
* @param usageManager * @param usageManager
* The UsageManager that is controlling the broker's memory * The UsageManager that is controlling the broker's memory
* usage. * usage.
*/ */
public void setUsageManager(UsageManager usageManager){ public void setUsageManager(UsageManager usageManager){
} }
/** /**
* @return the maxDataFileLength * @return the maxDataFileLength
*/ */
public long getMaxDataFileLength(){ public long getMaxDataFileLength(){
return maxDataFileLength; return maxDataFileLength;
} }
/** /**
* @param maxDataFileLength * @param maxDataFileLength
* the maxDataFileLength to set * the maxDataFileLength to set
* *
* @org.apache.xbean.Property propertyEditor="org.apache.activemq.util.MemoryPropertyEditor" * @org.apache.xbean.Property propertyEditor="org.apache.activemq.util.MemoryPropertyEditor"
*/ */
public void setMaxDataFileLength(long maxDataFileLength){ public void setMaxDataFileLength(long maxDataFileLength){
this.maxDataFileLength=maxDataFileLength; this.maxDataFileLength=maxDataFileLength;
} }
/** /**
* @return the indexType * @return the indexType
*/ */
public String getIndexType(){ public String getIndexType(){
return this.indexType; return this.indexType;
} }
/** /**
* @param indexType the indexTypes to set * @param indexType the indexTypes to set
*/ */
public void setIndexType(String indexType){ public void setIndexType(String indexType){
this.indexType=indexType; this.indexType=indexType;
} }
protected synchronized Store getStore() throws IOException{ protected synchronized Store getStore() throws IOException{
if(theStore==null){ if(theStore==null){
String name=dir.getAbsolutePath()+File.separator+"kaha.db"; String name=dir.getAbsolutePath()+File.separator+"kaha.db";
theStore=StoreFactory.open(name,"rw"); theStore=StoreFactory.open(name,"rw");
theStore.setMaxDataFileLength(maxDataFileLength); theStore.setMaxDataFileLength(maxDataFileLength);
theStore.setIndexType(indexType); theStore.setIndexType(indexType);
} }
return theStore; return theStore;
} }
} }

View File

@ -1,238 +1,238 @@
/** /**
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with * contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. * this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0 * The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with * (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at * the License. You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.activemq; package org.apache.activemq;
import java.util.Date; import java.util.Date;
import javax.jms.Connection; import javax.jms.Connection;
import javax.jms.DeliveryMode; import javax.jms.DeliveryMode;
import javax.jms.Destination; import javax.jms.Destination;
import javax.jms.JMSException; import javax.jms.JMSException;
import javax.jms.Message; import javax.jms.Message;
import javax.jms.MessageConsumer; import javax.jms.MessageConsumer;
import javax.jms.MessageProducer; import javax.jms.MessageProducer;
import javax.jms.Session; import javax.jms.Session;
import javax.jms.Topic; import javax.jms.Topic;
/** /**
* *
*/ */
public class JmsSendReceiveWithMessageExpirationTest extends TestSupport { public class JmsSendReceiveWithMessageExpirationTest extends TestSupport {
private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory
.getLog(JmsSendReceiveWithMessageExpirationTest.class); .getLog(JmsSendReceiveWithMessageExpirationTest.class);
protected int messageCount = 100; protected int messageCount = 100;
protected String[] data; protected String[] data;
protected Session session; protected Session session;
protected Destination consumerDestination; protected Destination consumerDestination;
protected Destination producerDestination; protected Destination producerDestination;
protected boolean durable = false; protected boolean durable = false;
protected int deliveryMode = DeliveryMode.PERSISTENT; protected int deliveryMode = DeliveryMode.PERSISTENT;
protected long timeToLive = 5000; protected long timeToLive = 5000;
protected boolean verbose = false; protected boolean verbose = false;
protected Connection connection; protected Connection connection;
protected void setUp() throws Exception { protected void setUp() throws Exception {
super.setUp(); super.setUp();
data = new String[messageCount]; data = new String[messageCount];
for (int i = 0; i < messageCount; i++) { for (int i = 0; i < messageCount; i++) {
data[i] = "Text for message: " + i + " at " + new Date(); data[i] = "Text for message: " + i + " at " + new Date();
} }
connectionFactory = createConnectionFactory(); connectionFactory = createConnectionFactory();
connection = createConnection(); connection = createConnection();
if (durable) { if (durable) {
connection.setClientID(getClass().getName()); connection.setClientID(getClass().getName());
} }
session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
} }
/** /**
* Test consuming an expired queue. * Test consuming an expired queue.
* *
* @throws Exception * @throws Exception
*/ */
public void testConsumeExpiredQueue() throws Exception { public void testConsumeExpiredQueue() throws Exception {
MessageProducer producer = createProducer(timeToLive); MessageProducer producer = createProducer(timeToLive);
consumerDestination = session.createQueue(getConsumerSubject()); consumerDestination = session.createQueue(getConsumerSubject());
producerDestination = session.createQueue(getProducerSubject()); producerDestination = session.createQueue(getProducerSubject());
MessageConsumer consumer = createConsumer(); MessageConsumer consumer = createConsumer();
connection.start(); connection.start();
for (int i = 0; i < data.length; i++) { for (int i = 0; i < data.length; i++) {
Message message = session.createTextMessage(data[i]); Message message = session.createTextMessage(data[i]);
message.setStringProperty("stringProperty",data[i]); message.setStringProperty("stringProperty",data[i]);
message.setIntProperty("intProperty",i); message.setIntProperty("intProperty",i);
if (verbose) { if (verbose) {
if (log.isDebugEnabled()) { if (log.isDebugEnabled()) {
log.debug("About to send a queue message: " + message + " with text: " + data[i]); log.debug("About to send a queue message: " + message + " with text: " + data[i]);
} }
} }
producer.send(producerDestination, message); producer.send(producerDestination, message);
} }
// sleeps a second longer than the expiration time. // sleeps a second longer than the expiration time.
// Basically waits till queue expires. // Basically waits till queue expires.
Thread.sleep(timeToLive + 1000); Thread.sleep(timeToLive + 1000);
// message should have expired. // message should have expired.
assertNull(consumer.receive(1000)); assertNull(consumer.receive(1000));
} }
/** /**
* Sends and consumes the messages to a queue destination. * Sends and consumes the messages to a queue destination.
* *
* @throws Exception * @throws Exception
*/ */
public void testConsumeQueue() throws Exception { public void testConsumeQueue() throws Exception {
MessageProducer producer = createProducer(0); MessageProducer producer = createProducer(0);
consumerDestination = session.createQueue(getConsumerSubject()); consumerDestination = session.createQueue(getConsumerSubject());
producerDestination = session.createQueue(getProducerSubject()); producerDestination = session.createQueue(getProducerSubject());
MessageConsumer consumer = createConsumer(); MessageConsumer consumer = createConsumer();
connection.start(); connection.start();
for (int i = 0; i < data.length; i++) { for (int i = 0; i < data.length; i++) {
Message message = session.createTextMessage(data[i]); Message message = session.createTextMessage(data[i]);
message.setStringProperty("stringProperty",data[i]); message.setStringProperty("stringProperty",data[i]);
message.setIntProperty("intProperty",i); message.setIntProperty("intProperty",i);
if (verbose) { if (verbose) {
if (log.isDebugEnabled()) { if (log.isDebugEnabled()) {
log.debug("About to send a queue message: " + message + " with text: " + data[i]); log.debug("About to send a queue message: " + message + " with text: " + data[i]);
} }
} }
producer.send(producerDestination, message); producer.send(producerDestination, message);
} }
// should receive a queue since there is no expiration. // should receive a queue since there is no expiration.
assertNotNull(consumer.receive(1000)); assertNotNull(consumer.receive(1000));
} }
/** /**
* Test consuming an expired topic. * Test consuming an expired topic.
* *
* @throws Exception * @throws Exception
*/ */
public void testConsumeExpiredTopic() throws Exception { public void testConsumeExpiredTopic() throws Exception {
MessageProducer producer = createProducer(timeToLive); MessageProducer producer = createProducer(timeToLive);
consumerDestination = session.createTopic(getConsumerSubject()); consumerDestination = session.createTopic(getConsumerSubject());
producerDestination = session.createTopic(getProducerSubject()); producerDestination = session.createTopic(getProducerSubject());
MessageConsumer consumer = createConsumer(); MessageConsumer consumer = createConsumer();
connection.start(); connection.start();
for (int i = 0; i < data.length; i++) { for (int i = 0; i < data.length; i++) {
Message message = session.createTextMessage(data[i]); Message message = session.createTextMessage(data[i]);
message.setStringProperty("stringProperty",data[i]); message.setStringProperty("stringProperty",data[i]);
message.setIntProperty("intProperty",i); message.setIntProperty("intProperty",i);
if (verbose) { if (verbose) {
if (log.isDebugEnabled()) { if (log.isDebugEnabled()) {
log.debug("About to send a topic message: " + message + " with text: " + data[i]); log.debug("About to send a topic message: " + message + " with text: " + data[i]);
} }
} }
producer.send(producerDestination, message); producer.send(producerDestination, message);
} }
// sleeps a second longer than the expiration time. // sleeps a second longer than the expiration time.
// Basically waits till topic expires. // Basically waits till topic expires.
Thread.sleep(timeToLive + 1000); Thread.sleep(timeToLive + 1000);
// message should have expired. // message should have expired.
assertNull(consumer.receive(1000)); assertNull(consumer.receive(1000));
} }
/** /**
* Sends and consumes the messages to a topic destination. * Sends and consumes the messages to a topic destination.
* *
* @throws Exception * @throws Exception
*/ */
public void testConsumeTopic() throws Exception { public void testConsumeTopic() throws Exception {
MessageProducer producer = createProducer(0); MessageProducer producer = createProducer(0);
consumerDestination = session.createTopic(getConsumerSubject()); consumerDestination = session.createTopic(getConsumerSubject());
producerDestination = session.createTopic(getProducerSubject()); producerDestination = session.createTopic(getProducerSubject());
MessageConsumer consumer = createConsumer(); MessageConsumer consumer = createConsumer();
connection.start(); connection.start();
for (int i = 0; i < data.length; i++) { for (int i = 0; i < data.length; i++) {
Message message = session.createTextMessage(data[i]); Message message = session.createTextMessage(data[i]);
message.setStringProperty("stringProperty",data[i]); message.setStringProperty("stringProperty",data[i]);
message.setIntProperty("intProperty",i); message.setIntProperty("intProperty",i);
if (verbose) { if (verbose) {
if (log.isDebugEnabled()) { if (log.isDebugEnabled()) {
log.debug("About to send a topic message: " + message + " with text: " + data[i]); log.debug("About to send a topic message: " + message + " with text: " + data[i]);
} }
} }
producer.send(producerDestination, message); producer.send(producerDestination, message);
} }
// should receive a topic since there is no expiration. // should receive a topic since there is no expiration.
assertNotNull(consumer.receive(1000)); assertNotNull(consumer.receive(1000));
} }
protected MessageProducer createProducer(long timeToLive) throws JMSException { protected MessageProducer createProducer(long timeToLive) throws JMSException {
MessageProducer producer = session.createProducer(null); MessageProducer producer = session.createProducer(null);
producer.setDeliveryMode(deliveryMode); producer.setDeliveryMode(deliveryMode);
producer.setTimeToLive(timeToLive); producer.setTimeToLive(timeToLive);
return producer; return producer;
} }
protected MessageConsumer createConsumer() throws JMSException { protected MessageConsumer createConsumer() throws JMSException {
if (durable) { if (durable) {
log.info("Creating durable consumer"); log.info("Creating durable consumer");
return session.createDurableSubscriber((Topic) consumerDestination, getName()); return session.createDurableSubscriber((Topic) consumerDestination, getName());
} }
return session.createConsumer(consumerDestination); return session.createConsumer(consumerDestination);
} }
protected void tearDown() throws Exception { protected void tearDown() throws Exception {
log.info("Dumping stats..."); log.info("Dumping stats...");
log.info("Closing down connection"); log.info("Closing down connection");
session.close(); session.close();
connection.close(); connection.close();
} }
} }

View File

@ -15,310 +15,310 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.activemq.network; package org.apache.activemq.network;
import java.net.URI; import java.net.URI;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import javax.jms.Connection; import javax.jms.Connection;
import javax.jms.Destination; import javax.jms.Destination;
import javax.jms.JMSException; import javax.jms.JMSException;
import javax.jms.Message; import javax.jms.Message;
import javax.jms.MessageConsumer; import javax.jms.MessageConsumer;
import javax.jms.MessageProducer; import javax.jms.MessageProducer;
import javax.jms.Session; import javax.jms.Session;
import junit.framework.TestCase; import junit.framework.TestCase;
import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.advisory.ConsumerEvent; import org.apache.activemq.advisory.ConsumerEvent;
import org.apache.activemq.advisory.ConsumerEventSource; import org.apache.activemq.advisory.ConsumerEventSource;
import org.apache.activemq.advisory.ConsumerListener; import org.apache.activemq.advisory.ConsumerListener;
import org.apache.activemq.broker.BrokerFactory; import org.apache.activemq.broker.BrokerFactory;
import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.BrokerService;
import org.apache.activemq.command.ActiveMQQueue; import org.apache.activemq.command.ActiveMQQueue;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicInteger; import edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicInteger;
/** /**
* These test cases are used to verifiy that network connections get re established in all broker * These test cases are used to verifiy that network connections get re established in all broker
* restart scenarios. * restart scenarios.
* *
* @author chirino * @author chirino
*/ */
public class NetworkReconnectTest extends TestCase { public class NetworkReconnectTest extends TestCase {
protected static final Log log = LogFactory.getLog(NetworkReconnectTest.class); protected static final Log log = LogFactory.getLog(NetworkReconnectTest.class);
private BrokerService producerBroker; private BrokerService producerBroker;
private BrokerService consumerBroker; private BrokerService consumerBroker;
private ActiveMQConnectionFactory producerConnectionFactory; private ActiveMQConnectionFactory producerConnectionFactory;
private ActiveMQConnectionFactory consumerConnectionFactory; private ActiveMQConnectionFactory consumerConnectionFactory;
private Destination destination; private Destination destination;
private ArrayList connections = new ArrayList(); private ArrayList connections = new ArrayList();
public void testMultipleProducerBrokerRestarts() throws Exception { public void testMultipleProducerBrokerRestarts() throws Exception {
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
testWithProducerBrokerRestart(); testWithProducerBrokerRestart();
disposeConsumerConnections(); disposeConsumerConnections();
} }
} }
public void testWithoutRestarts() throws Exception { public void testWithoutRestarts() throws Exception {
startProducerBroker(); startProducerBroker();
startConsumerBroker(); startConsumerBroker();
MessageConsumer consumer = createConsumer(); MessageConsumer consumer = createConsumer();
AtomicInteger counter = createConsumerCounter(producerConnectionFactory); AtomicInteger counter = createConsumerCounter(producerConnectionFactory);
waitForConsumerToArrive(counter); waitForConsumerToArrive(counter);
String messageId = sendMessage(); String messageId = sendMessage();
Message message = consumer.receive(1000); Message message = consumer.receive(1000);
assertEquals(messageId, message.getJMSMessageID()); assertEquals(messageId, message.getJMSMessageID());
assertNull( consumer.receiveNoWait() ); assertNull( consumer.receiveNoWait() );
} }
public void testWithProducerBrokerRestart() throws Exception { public void testWithProducerBrokerRestart() throws Exception {
startProducerBroker(); startProducerBroker();
startConsumerBroker(); startConsumerBroker();
MessageConsumer consumer = createConsumer(); MessageConsumer consumer = createConsumer();
AtomicInteger counter = createConsumerCounter(producerConnectionFactory); AtomicInteger counter = createConsumerCounter(producerConnectionFactory);
waitForConsumerToArrive(counter); waitForConsumerToArrive(counter);
String messageId = sendMessage(); String messageId = sendMessage();
Message message = consumer.receive(1000); Message message = consumer.receive(1000);
assertEquals(messageId, message.getJMSMessageID()); assertEquals(messageId, message.getJMSMessageID());
assertNull( consumer.receiveNoWait() ); assertNull( consumer.receiveNoWait() );
// Restart the first broker... // Restart the first broker...
stopProducerBroker(); stopProducerBroker();
startProducerBroker(); startProducerBroker();
counter = createConsumerCounter(producerConnectionFactory); counter = createConsumerCounter(producerConnectionFactory);
waitForConsumerToArrive(counter); waitForConsumerToArrive(counter);
messageId = sendMessage(); messageId = sendMessage();
message = consumer.receive(1000); message = consumer.receive(1000);
assertEquals(messageId, message.getJMSMessageID()); assertEquals(messageId, message.getJMSMessageID());
assertNull( consumer.receiveNoWait() ); assertNull( consumer.receiveNoWait() );
} }
public void testWithConsumerBrokerRestart() throws Exception { public void testWithConsumerBrokerRestart() throws Exception {
startProducerBroker(); startProducerBroker();
startConsumerBroker(); startConsumerBroker();
MessageConsumer consumer = createConsumer(); MessageConsumer consumer = createConsumer();
AtomicInteger counter = createConsumerCounter(producerConnectionFactory); AtomicInteger counter = createConsumerCounter(producerConnectionFactory);
waitForConsumerToArrive(counter); waitForConsumerToArrive(counter);
String messageId = sendMessage(); String messageId = sendMessage();
Message message = consumer.receive(1000); Message message = consumer.receive(1000);
assertEquals(messageId, message.getJMSMessageID()); assertEquals(messageId, message.getJMSMessageID());
assertNull( consumer.receiveNoWait() ); assertNull( consumer.receiveNoWait() );
// Restart the first broker... // Restart the first broker...
stopConsumerBroker(); stopConsumerBroker();
waitForConsumerToLeave(counter); waitForConsumerToLeave(counter);
startConsumerBroker(); startConsumerBroker();
consumer = createConsumer(); consumer = createConsumer();
waitForConsumerToArrive(counter); waitForConsumerToArrive(counter);
messageId = sendMessage(); messageId = sendMessage();
message = consumer.receive(1000); message = consumer.receive(1000);
assertEquals(messageId, message.getJMSMessageID()); assertEquals(messageId, message.getJMSMessageID());
assertNull( consumer.receiveNoWait() ); assertNull( consumer.receiveNoWait() );
} }
public void testWithConsumerBrokerStartDelay() throws Exception { public void testWithConsumerBrokerStartDelay() throws Exception {
startConsumerBroker(); startConsumerBroker();
MessageConsumer consumer = createConsumer(); MessageConsumer consumer = createConsumer();
Thread.sleep(1000*5); Thread.sleep(1000*5);
startProducerBroker(); startProducerBroker();
AtomicInteger counter = createConsumerCounter(producerConnectionFactory); AtomicInteger counter = createConsumerCounter(producerConnectionFactory);
waitForConsumerToArrive(counter); waitForConsumerToArrive(counter);
String messageId = sendMessage(); String messageId = sendMessage();
Message message = consumer.receive(1000); Message message = consumer.receive(1000);
assertEquals(messageId, message.getJMSMessageID()); assertEquals(messageId, message.getJMSMessageID());
assertNull( consumer.receiveNoWait() ); assertNull( consumer.receiveNoWait() );
} }
public void testWithProducerBrokerStartDelay() throws Exception { public void testWithProducerBrokerStartDelay() throws Exception {
startProducerBroker(); startProducerBroker();
AtomicInteger counter = createConsumerCounter(producerConnectionFactory); AtomicInteger counter = createConsumerCounter(producerConnectionFactory);
Thread.sleep(1000*5); Thread.sleep(1000*5);
startConsumerBroker(); startConsumerBroker();
MessageConsumer consumer = createConsumer(); MessageConsumer consumer = createConsumer();
waitForConsumerToArrive(counter); waitForConsumerToArrive(counter);
String messageId = sendMessage(); String messageId = sendMessage();
Message message = consumer.receive(1000); Message message = consumer.receive(1000);
assertEquals(messageId, message.getJMSMessageID()); assertEquals(messageId, message.getJMSMessageID());
assertNull( consumer.receiveNoWait() ); assertNull( consumer.receiveNoWait() );
} }
protected void setUp() throws Exception { protected void setUp() throws Exception {
log.info("==============================================================================="); log.info("===============================================================================");
log.info("Running Test Case: "+getName()); log.info("Running Test Case: "+getName());
log.info("==============================================================================="); log.info("===============================================================================");
producerConnectionFactory = createProducerConnectionFactory(); producerConnectionFactory = createProducerConnectionFactory();
consumerConnectionFactory = createConsumerConnectionFactory(); consumerConnectionFactory = createConsumerConnectionFactory();
destination = new ActiveMQQueue("RECONNECT.TEST.QUEUE"); destination = new ActiveMQQueue("RECONNECT.TEST.QUEUE");
} }
protected void tearDown() throws Exception { protected void tearDown() throws Exception {
disposeConsumerConnections(); disposeConsumerConnections();
try { try {
stopProducerBroker(); stopProducerBroker();
} catch (Throwable e) { } catch (Throwable e) {
} }
try { try {
stopConsumerBroker(); stopConsumerBroker();
} catch (Throwable e) { } catch (Throwable e) {
} }
} }
protected void disposeConsumerConnections() { protected void disposeConsumerConnections() {
for (Iterator iter = connections.iterator(); iter.hasNext();) { for (Iterator iter = connections.iterator(); iter.hasNext();) {
Connection connection = (Connection) iter.next(); Connection connection = (Connection) iter.next();
try { connection.close(); } catch (Throwable ignore) {} try { connection.close(); } catch (Throwable ignore) {}
} }
} }
protected void startProducerBroker() throws Exception { protected void startProducerBroker() throws Exception {
if( producerBroker==null ) { if( producerBroker==null ) {
producerBroker = createFirstBroker(); producerBroker = createFirstBroker();
producerBroker.start(); producerBroker.start();
} }
} }
protected void stopProducerBroker() throws Exception { protected void stopProducerBroker() throws Exception {
if( producerBroker!=null ) { if( producerBroker!=null ) {
producerBroker.stop(); producerBroker.stop();
producerBroker=null; producerBroker=null;
} }
} }
protected void startConsumerBroker() throws Exception { protected void startConsumerBroker() throws Exception {
if( consumerBroker==null ) { if( consumerBroker==null ) {
consumerBroker = createSecondBroker(); consumerBroker = createSecondBroker();
consumerBroker.start(); consumerBroker.start();
} }
} }
protected void stopConsumerBroker() throws Exception { protected void stopConsumerBroker() throws Exception {
if( consumerBroker!=null ) { if( consumerBroker!=null ) {
consumerBroker.stop(); consumerBroker.stop();
consumerBroker=null; consumerBroker=null;
} }
} }
protected BrokerService createFirstBroker() throws Exception { protected BrokerService createFirstBroker() throws Exception {
return BrokerFactory.createBroker(new URI("xbean:org/apache/activemq/network/reconnect-broker1.xml")); return BrokerFactory.createBroker(new URI("xbean:org/apache/activemq/network/reconnect-broker1.xml"));
} }
protected BrokerService createSecondBroker() throws Exception { protected BrokerService createSecondBroker() throws Exception {
return BrokerFactory.createBroker(new URI("xbean:org/apache/activemq/network/reconnect-broker2.xml")); return BrokerFactory.createBroker(new URI("xbean:org/apache/activemq/network/reconnect-broker2.xml"));
} }
protected ActiveMQConnectionFactory createProducerConnectionFactory() { protected ActiveMQConnectionFactory createProducerConnectionFactory() {
return new ActiveMQConnectionFactory("vm://broker1"); return new ActiveMQConnectionFactory("vm://broker1");
} }
protected ActiveMQConnectionFactory createConsumerConnectionFactory() { protected ActiveMQConnectionFactory createConsumerConnectionFactory() {
return new ActiveMQConnectionFactory("vm://broker2"); return new ActiveMQConnectionFactory("vm://broker2");
} }
protected String sendMessage() throws JMSException { protected String sendMessage() throws JMSException {
Connection connection = null; Connection connection = null;
try { try {
connection = producerConnectionFactory.createConnection(); connection = producerConnectionFactory.createConnection();
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer producer = session.createProducer(destination); MessageProducer producer = session.createProducer(destination);
Message message = session.createMessage(); Message message = session.createMessage();
producer.send(message); producer.send(message);
return message.getJMSMessageID(); return message.getJMSMessageID();
} finally { } finally {
try { connection.close(); } catch (Throwable ignore) {} try { connection.close(); } catch (Throwable ignore) {}
} }
} }
protected MessageConsumer createConsumer() throws JMSException { protected MessageConsumer createConsumer() throws JMSException {
Connection connection = consumerConnectionFactory.createConnection(); Connection connection = consumerConnectionFactory.createConnection();
connections.add(connection); connections.add(connection);
connection.start(); connection.start();
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
return session.createConsumer(destination); return session.createConsumer(destination);
} }
protected AtomicInteger createConsumerCounter(ActiveMQConnectionFactory cf) throws Exception { protected AtomicInteger createConsumerCounter(ActiveMQConnectionFactory cf) throws Exception {
final AtomicInteger rc = new AtomicInteger(0); final AtomicInteger rc = new AtomicInteger(0);
Connection connection = cf.createConnection(); Connection connection = cf.createConnection();
connections.add(connection); connections.add(connection);
connection.start(); connection.start();
ConsumerEventSource source = new ConsumerEventSource(connection, destination); ConsumerEventSource source = new ConsumerEventSource(connection, destination);
source.setConsumerListener(new ConsumerListener(){ source.setConsumerListener(new ConsumerListener(){
public void onConsumerEvent(ConsumerEvent event) { public void onConsumerEvent(ConsumerEvent event) {
rc.set(event.getConsumerCount()); rc.set(event.getConsumerCount());
} }
}); });
source.start(); source.start();
return rc; return rc;
} }
protected void waitForConsumerToArrive(AtomicInteger consumerCounter) throws InterruptedException { protected void waitForConsumerToArrive(AtomicInteger consumerCounter) throws InterruptedException {
for( int i=0; i < 100; i++ ) { for( int i=0; i < 100; i++ ) {
if( consumerCounter.get() > 0 ) { if( consumerCounter.get() > 0 ) {
return; return;
} }
Thread.sleep(100); Thread.sleep(100);
} }
fail("The consumer did not arrive."); fail("The consumer did not arrive.");
} }
protected void waitForConsumerToLeave(AtomicInteger consumerCounter) throws InterruptedException { protected void waitForConsumerToLeave(AtomicInteger consumerCounter) throws InterruptedException {
for( int i=0; i < 100; i++ ) { for( int i=0; i < 100; i++ ) {
if( consumerCounter.get() == 0 ) { if( consumerCounter.get() == 0 ) {
return; return;
} }
Thread.sleep(100); Thread.sleep(100);
} }
fail("The consumer did not leave."); fail("The consumer did not leave.");
} }
} }

View File

@ -15,77 +15,77 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.activemq.network; package org.apache.activemq.network;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.net.URI; import java.net.URI;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import org.apache.activemq.broker.BrokerFactory; import org.apache.activemq.broker.BrokerFactory;
import org.apache.activemq.broker.BrokerService; import org.apache.activemq.broker.BrokerService;
/** /**
* Test network reconnects over SSH tunnels. This case can be especially tricky since the SSH tunnels * Test network reconnects over SSH tunnels. This case can be especially tricky since the SSH tunnels
* fool the TCP transport into thinking that they are initially connected. * fool the TCP transport into thinking that they are initially connected.
* *
* @author chirino * @author chirino
*/ */
public class SSHTunnelNetworkReconnectTest extends NetworkReconnectTest { public class SSHTunnelNetworkReconnectTest extends NetworkReconnectTest {
ArrayList processes = new ArrayList(); ArrayList processes = new ArrayList();
protected BrokerService createFirstBroker() throws Exception { protected BrokerService createFirstBroker() throws Exception {
return BrokerFactory.createBroker(new URI("xbean:org/apache/activemq/network/ssh-reconnect-broker1.xml")); return BrokerFactory.createBroker(new URI("xbean:org/apache/activemq/network/ssh-reconnect-broker1.xml"));
} }
protected BrokerService createSecondBroker() throws Exception { protected BrokerService createSecondBroker() throws Exception {
return BrokerFactory.createBroker(new URI("xbean:org/apache/activemq/network/ssh-reconnect-broker2.xml")); return BrokerFactory.createBroker(new URI("xbean:org/apache/activemq/network/ssh-reconnect-broker2.xml"));
} }
protected void setUp() throws Exception { protected void setUp() throws Exception {
startProcess("ssh -Nn -L60006:localhost:61616 localhost"); startProcess("ssh -Nn -L60006:localhost:61616 localhost");
startProcess("ssh -Nn -L60007:localhost:61617 localhost"); startProcess("ssh -Nn -L60007:localhost:61617 localhost");
super.setUp(); super.setUp();
} }
protected void tearDown() throws Exception { protected void tearDown() throws Exception {
super.tearDown(); super.tearDown();
for (Iterator iter = processes.iterator(); iter.hasNext();) { for (Iterator iter = processes.iterator(); iter.hasNext();) {
Process p = (Process) iter.next(); Process p = (Process) iter.next();
p.destroy(); p.destroy();
} }
} }
private void startProcess(String command) throws IOException { private void startProcess(String command) throws IOException {
final Process process = Runtime.getRuntime().exec(command); final Process process = Runtime.getRuntime().exec(command);
processes.add(process); processes.add(process);
new Thread("stdout: "+command){ new Thread("stdout: "+command){
public void run() { public void run() {
try { try {
InputStream is = process.getInputStream(); InputStream is = process.getInputStream();
int c; int c;
while((c=is.read())>=0) { while((c=is.read())>=0) {
System.out.write(c); System.out.write(c);
} }
} catch (IOException e) { } catch (IOException e) {
} }
} }
}.start(); }.start();
new Thread("stderr: "+command){ new Thread("stderr: "+command){
public void run() { public void run() {
try { try {
InputStream is = process.getErrorStream(); InputStream is = process.getErrorStream();
int c; int c;
while((c=is.read())>=0) { while((c=is.read())>=0) {
System.err.write(c); System.err.write(c);
} }
} catch (IOException e) { } catch (IOException e) {
} }
} }
}.start(); }.start();
} }
} }

View File

@ -1,78 +1,78 @@
/** /**
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with * contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. * this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0 * The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with * (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at * the License. You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.activemq.filter; package org.apache.activemq.filter;
import java.io.StringReader; import java.io.StringReader;
import javax.jms.BytesMessage; import javax.jms.BytesMessage;
import javax.jms.JMSException; import javax.jms.JMSException;
import javax.jms.TextMessage; import javax.jms.TextMessage;
import javax.xml.xpath.XPath; import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants; import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpressionException; import javax.xml.xpath.XPathExpressionException;
import javax.xml.xpath.XPathFactory; import javax.xml.xpath.XPathFactory;
import org.apache.activemq.command.Message; import org.apache.activemq.command.Message;
import org.apache.activemq.util.ByteArrayInputStream; import org.apache.activemq.util.ByteArrayInputStream;
import org.xml.sax.InputSource; import org.xml.sax.InputSource;
public class JAXPXPathEvaluator implements XPathExpression.XPathEvaluator { public class JAXPXPathEvaluator implements XPathExpression.XPathEvaluator {
private static final XPathFactory factory = XPathFactory.newInstance(); private static final XPathFactory factory = XPathFactory.newInstance();
private javax.xml.xpath.XPathExpression expression; private javax.xml.xpath.XPathExpression expression;
public JAXPXPathEvaluator(String xpathExpression) { public JAXPXPathEvaluator(String xpathExpression) {
try { try {
XPath xpath = factory.newXPath(); XPath xpath = factory.newXPath();
expression = xpath.compile(xpathExpression); expression = xpath.compile(xpathExpression);
} catch (XPathExpressionException e) { } catch (XPathExpressionException e) {
throw new RuntimeException("Invalid XPath expression: "+xpathExpression); throw new RuntimeException("Invalid XPath expression: "+xpathExpression);
} }
} }
public boolean evaluate(Message message) throws JMSException { public boolean evaluate(Message message) throws JMSException {
if( message instanceof TextMessage ) { if( message instanceof TextMessage ) {
String text = ((TextMessage)message).getText(); String text = ((TextMessage)message).getText();
return evaluate(text); return evaluate(text);
} else if ( message instanceof BytesMessage ) { } else if ( message instanceof BytesMessage ) {
BytesMessage bm = (BytesMessage) message; BytesMessage bm = (BytesMessage) message;
byte data[] = new byte[(int) bm.getBodyLength()]; byte data[] = new byte[(int) bm.getBodyLength()];
bm.readBytes(data); bm.readBytes(data);
return evaluate(data); return evaluate(data);
} }
return false; return false;
} }
private boolean evaluate(byte[] data) { private boolean evaluate(byte[] data) {
try { try {
InputSource inputSource = new InputSource(new ByteArrayInputStream(data)); InputSource inputSource = new InputSource(new ByteArrayInputStream(data));
return ((Boolean)expression.evaluate(inputSource, XPathConstants.BOOLEAN)).booleanValue(); return ((Boolean)expression.evaluate(inputSource, XPathConstants.BOOLEAN)).booleanValue();
} catch (XPathExpressionException e) { } catch (XPathExpressionException e) {
return false; return false;
} }
} }
private boolean evaluate(String text) { private boolean evaluate(String text) {
try { try {
InputSource inputSource = new InputSource(new StringReader(text)); InputSource inputSource = new InputSource(new StringReader(text));
return ((Boolean)expression.evaluate(inputSource, XPathConstants.BOOLEAN)).booleanValue(); return ((Boolean)expression.evaluate(inputSource, XPathConstants.BOOLEAN)).booleanValue();
} catch (XPathExpressionException e) { } catch (XPathExpressionException e) {
return false; return false;
} }
} }
} }

View File

@ -1,62 +1,62 @@
/** /**
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with * contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. * this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0 * The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with * (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at * the License. You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.activemq.filter; package org.apache.activemq.filter;
import javax.jms.BytesMessage; import javax.jms.BytesMessage;
import javax.jms.JMSException; import javax.jms.JMSException;
import javax.jms.TextMessage; import javax.jms.TextMessage;
import org.apache.activemq.command.Message; import org.apache.activemq.command.Message;
import org.apache.activemq.util.ByteArrayInputStream; import org.apache.activemq.util.ByteArrayInputStream;
import org.apache.xmlbeans.XmlObject; import org.apache.xmlbeans.XmlObject;
public class XMLBeansXPathEvaluator implements XPathExpression.XPathEvaluator { public class XMLBeansXPathEvaluator implements XPathExpression.XPathEvaluator {
private final String xpath; private final String xpath;
public XMLBeansXPathEvaluator(String xpath) { public XMLBeansXPathEvaluator(String xpath) {
this.xpath = xpath; this.xpath = xpath;
} }
public boolean evaluate(Message message) throws JMSException { public boolean evaluate(Message message) throws JMSException {
if( message instanceof TextMessage ) { if( message instanceof TextMessage ) {
String text = ((TextMessage)message).getText(); String text = ((TextMessage)message).getText();
try { try {
XmlObject object = XmlObject.Factory.parse(text); XmlObject object = XmlObject.Factory.parse(text);
XmlObject[] objects = object.selectPath(xpath); XmlObject[] objects = object.selectPath(xpath);
return object!=null && objects.length>0; return object!=null && objects.length>0;
} catch (Throwable e) { } catch (Throwable e) {
return false; return false;
} }
} else if ( message instanceof BytesMessage ) { } else if ( message instanceof BytesMessage ) {
BytesMessage bm = (BytesMessage) message; BytesMessage bm = (BytesMessage) message;
byte data[] = new byte[(int) bm.getBodyLength()]; byte data[] = new byte[(int) bm.getBodyLength()];
bm.readBytes(data); bm.readBytes(data);
try { try {
XmlObject object = XmlObject.Factory.parse(new ByteArrayInputStream(data)); XmlObject object = XmlObject.Factory.parse(new ByteArrayInputStream(data));
XmlObject[] objects = object.selectPath(xpath); XmlObject[] objects = object.selectPath(xpath);
return object!=null && objects.length>0; return object!=null && objects.length>0;
} catch (Throwable e) { } catch (Throwable e) {
return false; return false;
} }
} }
return false; return false;
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=equal sysTest.destDistro=equal
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=1 sysTest.numClients=1
sysTest.totalDests=1 sysTest.totalDests=1
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
consumer.durable=false consumer.durable=false
consumer.asyncRecv=true consumer.asyncRecv=true
consumer.destName=queue://TEST.FOO consumer.destName=queue://TEST.FOO
consumer.sessTransacted=false consumer.sessTransacted=false
consumer.sessAckMode=autoAck consumer.sessAckMode=autoAck
consumer.destComposite=false consumer.destComposite=false
consumer.unsubscribe=true consumer.unsubscribe=true
# 5 mins receive duration # 5 mins receive duration
consumer.recvType=time consumer.recvType=time
consumer.recvDuration=300000 consumer.recvDuration=300000
# 1 million messages receive # 1 million messages receive
# consumer.recvType=count # consumer.recvType=count
# consumer.recvCount=1000000 # consumer.recvCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=equal sysTest.destDistro=equal
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=1 sysTest.numClients=1
sysTest.totalDests=1 sysTest.totalDests=1
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
consumer.durable=true consumer.durable=true
consumer.asyncRecv=true consumer.asyncRecv=true
consumer.destName=topic://TEST.FOO consumer.destName=topic://TEST.FOO
consumer.sessTransacted=false consumer.sessTransacted=false
consumer.sessAckMode=autoAck consumer.sessAckMode=autoAck
consumer.destComposite=false consumer.destComposite=false
consumer.unsubscribe=true consumer.unsubscribe=true
# 5 mins receive duration # 5 mins receive duration
consumer.recvType=time consumer.recvType=time
consumer.recvDuration=300000 consumer.recvDuration=300000
# 1 million messages receive # 1 million messages receive
# consumer.recvType=count # consumer.recvType=count
# consumer.recvCount=1000000 # consumer.recvCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=equal sysTest.destDistro=equal
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=1 sysTest.numClients=1
sysTest.totalDests=1 sysTest.totalDests=1
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
consumer.durable=false consumer.durable=false
consumer.asyncRecv=true consumer.asyncRecv=true
consumer.destName=topic://TEST.FOO consumer.destName=topic://TEST.FOO
consumer.sessTransacted=false consumer.sessTransacted=false
consumer.sessAckMode=autoAck consumer.sessAckMode=autoAck
consumer.destComposite=false consumer.destComposite=false
consumer.unsubscribe=true consumer.unsubscribe=true
# 5 mins receive duration # 5 mins receive duration
consumer.recvType=time consumer.recvType=time
consumer.recvDuration=300000 consumer.recvDuration=300000
# 1 million messages receive # 1 million messages receive
# consumer.recvType=count # consumer.recvType=count
# consumer.recvCount=1000000 # consumer.recvCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=equal sysTest.destDistro=equal
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=10 sysTest.numClients=10
sysTest.totalDests=1 sysTest.totalDests=1
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
consumer.durable=false consumer.durable=false
consumer.asyncRecv=true consumer.asyncRecv=true
consumer.destName=queue://TEST.FOO consumer.destName=queue://TEST.FOO
consumer.sessTransacted=false consumer.sessTransacted=false
consumer.sessAckMode=autoAck consumer.sessAckMode=autoAck
consumer.destComposite=false consumer.destComposite=false
consumer.unsubscribe=true consumer.unsubscribe=true
# 5 mins receive duration # 5 mins receive duration
consumer.recvType=time consumer.recvType=time
consumer.recvDuration=300000 consumer.recvDuration=300000
# 1 million messages receive # 1 million messages receive
# consumer.recvType=count # consumer.recvType=count
# consumer.recvCount=1000000 # consumer.recvCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=equal sysTest.destDistro=equal
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=10 sysTest.numClients=10
sysTest.totalDests=1 sysTest.totalDests=1
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
consumer.durable=true consumer.durable=true
consumer.asyncRecv=true consumer.asyncRecv=true
consumer.destName=topic://TEST.FOO consumer.destName=topic://TEST.FOO
consumer.sessTransacted=false consumer.sessTransacted=false
consumer.sessAckMode=autoAck consumer.sessAckMode=autoAck
consumer.destComposite=false consumer.destComposite=false
consumer.unsubscribe=true consumer.unsubscribe=true
# 5 mins receive duration # 5 mins receive duration
consumer.recvType=time consumer.recvType=time
consumer.recvDuration=300000 consumer.recvDuration=300000
# 1 million messages receive # 1 million messages receive
# consumer.recvType=count # consumer.recvType=count
# consumer.recvCount=1000000 # consumer.recvCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=equal sysTest.destDistro=equal
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=10 sysTest.numClients=10
sysTest.totalDests=1 sysTest.totalDests=1
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
consumer.durable=false consumer.durable=false
consumer.asyncRecv=true consumer.asyncRecv=true
consumer.destName=topic://TEST.FOO consumer.destName=topic://TEST.FOO
consumer.sessTransacted=false consumer.sessTransacted=false
consumer.sessAckMode=autoAck consumer.sessAckMode=autoAck
consumer.destComposite=false consumer.destComposite=false
consumer.unsubscribe=true consumer.unsubscribe=true
# 5 mins receive duration # 5 mins receive duration
consumer.recvType=time consumer.recvType=time
consumer.recvDuration=300000 consumer.recvDuration=300000
# 1 million messages receive # 1 million messages receive
# consumer.recvType=count # consumer.recvType=count
# consumer.recvCount=1000000 # consumer.recvCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=equal sysTest.destDistro=equal
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=10 sysTest.numClients=10
sysTest.totalDests=10 sysTest.totalDests=10
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
consumer.durable=false consumer.durable=false
consumer.asyncRecv=true consumer.asyncRecv=true
consumer.destName=queue://TEST.FOO consumer.destName=queue://TEST.FOO
consumer.sessTransacted=false consumer.sessTransacted=false
consumer.sessAckMode=autoAck consumer.sessAckMode=autoAck
consumer.destComposite=false consumer.destComposite=false
consumer.unsubscribe=true consumer.unsubscribe=true
# 5 mins receive duration # 5 mins receive duration
consumer.recvType=time consumer.recvType=time
consumer.recvDuration=300000 consumer.recvDuration=300000
# 1 million messages receive # 1 million messages receive
# consumer.recvType=count # consumer.recvType=count
# consumer.recvCount=1000000 # consumer.recvCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=equal sysTest.destDistro=equal
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=10 sysTest.numClients=10
sysTest.totalDests=10 sysTest.totalDests=10
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
consumer.durable=true consumer.durable=true
consumer.asyncRecv=true consumer.asyncRecv=true
consumer.destName=topic://TEST.FOO consumer.destName=topic://TEST.FOO
consumer.sessTransacted=false consumer.sessTransacted=false
consumer.sessAckMode=autoAck consumer.sessAckMode=autoAck
consumer.destComposite=false consumer.destComposite=false
consumer.unsubscribe=true consumer.unsubscribe=true
# 5 mins receive duration # 5 mins receive duration
consumer.recvType=time consumer.recvType=time
consumer.recvDuration=300000 consumer.recvDuration=300000
# 1 million messages receive # 1 million messages receive
# consumer.recvType=count # consumer.recvType=count
# consumer.recvCount=1000000 # consumer.recvCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=equal sysTest.destDistro=equal
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=10 sysTest.numClients=10
sysTest.totalDests=10 sysTest.totalDests=10
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
consumer.durable=false consumer.durable=false
consumer.asyncRecv=true consumer.asyncRecv=true
consumer.destName=topic://TEST.FOO consumer.destName=topic://TEST.FOO
consumer.sessTransacted=false consumer.sessTransacted=false
consumer.sessAckMode=autoAck consumer.sessAckMode=autoAck
consumer.destComposite=false consumer.destComposite=false
consumer.unsubscribe=true consumer.unsubscribe=true
# 5 mins receive duration # 5 mins receive duration
consumer.recvType=time consumer.recvType=time
consumer.recvDuration=300000 consumer.recvDuration=300000
# 1 million messages receive # 1 million messages receive
# consumer.recvType=count # consumer.recvType=count
# consumer.recvCount=1000000 # consumer.recvCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=all sysTest.destDistro=all
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=1 sysTest.numClients=1
sysTest.totalDests=1 sysTest.totalDests=1
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
producer.deliveryMode=nonpersistent producer.deliveryMode=nonpersistent
producer.messageSize=1024 producer.messageSize=1024
producer.destName=queue://TEST.FOO producer.destName=queue://TEST.FOO
producer.sessTransacted=false producer.sessTransacted=false
producer.sessAckMode=autoAck producer.sessAckMode=autoAck
producer.createNewMsg=false producer.createNewMsg=false
producer.destComposite=false producer.destComposite=false
# 5 mins send duration # 5 mins send duration
producer.sendType=time producer.sendType=time
producer.sendDuration=300000 producer.sendDuration=300000
# 1 million messages send # 1 million messages send
# producer.sendType=count # producer.sendType=count
# producer.sendCount=1000000 # producer.sendCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=all sysTest.destDistro=all
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=1 sysTest.numClients=1
sysTest.totalDests=1 sysTest.totalDests=1
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
producer.deliveryMode=persistent producer.deliveryMode=persistent
producer.messageSize=1024 producer.messageSize=1024
producer.destName=queue://TEST.FOO producer.destName=queue://TEST.FOO
producer.sessTransacted=false producer.sessTransacted=false
producer.sessAckMode=autoAck producer.sessAckMode=autoAck
producer.createNewMsg=false producer.createNewMsg=false
producer.destComposite=false producer.destComposite=false
# 5 mins send duration # 5 mins send duration
producer.sendType=time producer.sendType=time
producer.sendDuration=300000 producer.sendDuration=300000
# 1 million messages send # 1 million messages send
# producer.sendType=count # producer.sendType=count
# producer.sendCount=1000000 # producer.sendCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=all sysTest.destDistro=all
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=1 sysTest.numClients=1
sysTest.totalDests=1 sysTest.totalDests=1
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
producer.deliveryMode=nonpersistent producer.deliveryMode=nonpersistent
producer.messageSize=1024 producer.messageSize=1024
producer.destName=topic://TEST.FOO producer.destName=topic://TEST.FOO
producer.sessTransacted=false producer.sessTransacted=false
producer.sessAckMode=autoAck producer.sessAckMode=autoAck
producer.createNewMsg=false producer.createNewMsg=false
producer.destComposite=false producer.destComposite=false
# 5 mins send duration # 5 mins send duration
producer.sendType=time producer.sendType=time
producer.sendDuration=300000 producer.sendDuration=300000
# 1 million messages send # 1 million messages send
# producer.sendType=count # producer.sendType=count
# producer.sendCount=1000000 # producer.sendCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=all sysTest.destDistro=all
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=1 sysTest.numClients=1
sysTest.totalDests=1 sysTest.totalDests=1
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
producer.deliveryMode=persistent producer.deliveryMode=persistent
producer.messageSize=1024 producer.messageSize=1024
producer.destName=topic://TEST.FOO producer.destName=topic://TEST.FOO
producer.sessTransacted=false producer.sessTransacted=false
producer.sessAckMode=autoAck producer.sessAckMode=autoAck
producer.createNewMsg=false producer.createNewMsg=false
producer.destComposite=false producer.destComposite=false
# 5 mins send duration # 5 mins send duration
producer.sendType=time producer.sendType=time
producer.sendDuration=300000 producer.sendDuration=300000
# 1 million messages send # 1 million messages send
# producer.sendType=count # producer.sendType=count
# producer.sendCount=1000000 # producer.sendCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=all sysTest.destDistro=all
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=10 sysTest.numClients=10
sysTest.totalDests=1 sysTest.totalDests=1
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
producer.deliveryMode=nonpersistent producer.deliveryMode=nonpersistent
producer.messageSize=1024 producer.messageSize=1024
producer.destName=queue://TEST.FOO producer.destName=queue://TEST.FOO
producer.sessTransacted=false producer.sessTransacted=false
producer.sessAckMode=autoAck producer.sessAckMode=autoAck
producer.createNewMsg=false producer.createNewMsg=false
producer.destComposite=false producer.destComposite=false
# 5 mins send duration # 5 mins send duration
producer.sendType=time producer.sendType=time
producer.sendDuration=300000 producer.sendDuration=300000
# 1 million messages send # 1 million messages send
# producer.sendType=count # producer.sendType=count
# producer.sendCount=1000000 # producer.sendCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=all sysTest.destDistro=all
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=10 sysTest.numClients=10
sysTest.totalDests=1 sysTest.totalDests=1
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
producer.deliveryMode=persistent producer.deliveryMode=persistent
producer.messageSize=1024 producer.messageSize=1024
producer.destName=queue://TEST.FOO producer.destName=queue://TEST.FOO
producer.sessTransacted=false producer.sessTransacted=false
producer.sessAckMode=autoAck producer.sessAckMode=autoAck
producer.createNewMsg=false producer.createNewMsg=false
producer.destComposite=false producer.destComposite=false
# 5 mins send duration # 5 mins send duration
producer.sendType=time producer.sendType=time
producer.sendDuration=300000 producer.sendDuration=300000
# 1 million messages send # 1 million messages send
# producer.sendType=count # producer.sendType=count
# producer.sendCount=1000000 # producer.sendCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=all sysTest.destDistro=all
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=10 sysTest.numClients=10
sysTest.totalDests=1 sysTest.totalDests=1
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
producer.deliveryMode=nonpersistent producer.deliveryMode=nonpersistent
producer.messageSize=1024 producer.messageSize=1024
producer.destName=topic://TEST.FOO producer.destName=topic://TEST.FOO
producer.sessTransacted=false producer.sessTransacted=false
producer.sessAckMode=autoAck producer.sessAckMode=autoAck
producer.createNewMsg=false producer.createNewMsg=false
producer.destComposite=false producer.destComposite=false
# 5 mins send duration # 5 mins send duration
producer.sendType=time producer.sendType=time
producer.sendDuration=300000 producer.sendDuration=300000
# 1 million messages send # 1 million messages send
# producer.sendType=count # producer.sendType=count
# producer.sendCount=1000000 # producer.sendCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=all sysTest.destDistro=all
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=10 sysTest.numClients=10
sysTest.totalDests=1 sysTest.totalDests=1
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
producer.deliveryMode=persistent producer.deliveryMode=persistent
producer.messageSize=1024 producer.messageSize=1024
producer.destName=topic://TEST.FOO producer.destName=topic://TEST.FOO
producer.sessTransacted=false producer.sessTransacted=false
producer.sessAckMode=autoAck producer.sessAckMode=autoAck
producer.createNewMsg=false producer.createNewMsg=false
producer.destComposite=false producer.destComposite=false
# 5 mins send duration # 5 mins send duration
producer.sendType=time producer.sendType=time
producer.sendDuration=300000 producer.sendDuration=300000
# 1 million messages send # 1 million messages send
# producer.sendType=count # producer.sendType=count
# producer.sendCount=1000000 # producer.sendCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=all sysTest.destDistro=all
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=10 sysTest.numClients=10
sysTest.totalDests=10 sysTest.totalDests=10
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
producer.deliveryMode=nonpersistent producer.deliveryMode=nonpersistent
producer.messageSize=1024 producer.messageSize=1024
producer.destName=queue://TEST.FOO producer.destName=queue://TEST.FOO
producer.sessTransacted=false producer.sessTransacted=false
producer.sessAckMode=autoAck producer.sessAckMode=autoAck
producer.createNewMsg=false producer.createNewMsg=false
producer.destComposite=false producer.destComposite=false
# 5 mins send duration # 5 mins send duration
producer.sendType=time producer.sendType=time
producer.sendDuration=300000 producer.sendDuration=300000
# 1 million messages send # 1 million messages send
# producer.sendType=count # producer.sendType=count
# producer.sendCount=1000000 # producer.sendCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=all sysTest.destDistro=all
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=10 sysTest.numClients=10
sysTest.totalDests=10 sysTest.totalDests=10
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
producer.deliveryMode=persistent producer.deliveryMode=persistent
producer.messageSize=1024 producer.messageSize=1024
producer.destName=queue://TEST.FOO producer.destName=queue://TEST.FOO
producer.sessTransacted=false producer.sessTransacted=false
producer.sessAckMode=autoAck producer.sessAckMode=autoAck
producer.createNewMsg=false producer.createNewMsg=false
producer.destComposite=false producer.destComposite=false
# 5 mins send duration # 5 mins send duration
producer.sendType=time producer.sendType=time
producer.sendDuration=300000 producer.sendDuration=300000
# 1 million messages send # 1 million messages send
# producer.sendType=count # producer.sendType=count
# producer.sendCount=1000000 # producer.sendCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=all sysTest.destDistro=all
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=10 sysTest.numClients=10
sysTest.totalDests=10 sysTest.totalDests=10
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
producer.deliveryMode=nonpersistent producer.deliveryMode=nonpersistent
producer.messageSize=1024 producer.messageSize=1024
producer.destName=topic://TEST.FOO producer.destName=topic://TEST.FOO
producer.sessTransacted=false producer.sessTransacted=false
producer.sessAckMode=autoAck producer.sessAckMode=autoAck
producer.createNewMsg=false producer.createNewMsg=false
producer.destComposite=false producer.destComposite=false
# 5 mins send duration # 5 mins send duration
producer.sendType=time producer.sendType=time
producer.sendDuration=300000 producer.sendDuration=300000
# 1 million messages send # 1 million messages send
# producer.sendType=count # producer.sendType=count
# producer.sendCount=1000000 # producer.sendCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,92 +1,92 @@
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
## --------------------------------------------------------------------------- ## ---------------------------------------------------------------------------
# Consumer System Settings # Consumer System Settings
sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI sysTest.spiClass=org.apache.activemq.tool.spi.ActiveMQReflectionSPI
sysTest.reportType=xml sysTest.reportType=xml
sysTest.destDistro=all sysTest.destDistro=all
sysTest.samplers=tp sysTest.samplers=tp
sysTest.numClients=10 sysTest.numClients=10
sysTest.totalDests=10 sysTest.totalDests=10
sysTest.reportDir=./ sysTest.reportDir=./
# Consumer Client Settings # Consumer Client Settings
producer.deliveryMode=persistent producer.deliveryMode=persistent
producer.messageSize=1024 producer.messageSize=1024
producer.destName=topic://TEST.FOO producer.destName=topic://TEST.FOO
producer.sessTransacted=false producer.sessTransacted=false
producer.sessAckMode=autoAck producer.sessAckMode=autoAck
producer.createNewMsg=false producer.createNewMsg=false
producer.destComposite=false producer.destComposite=false
# 5 mins send duration # 5 mins send duration
producer.sendType=time producer.sendType=time
producer.sendDuration=300000 producer.sendDuration=300000
# 1 million messages send # 1 million messages send
# producer.sendType=count # producer.sendType=count
# producer.sendCount=1000000 # producer.sendCount=1000000
# Throughput Sampler Settings # Throughput Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
tpSampler.duration=300000 tpSampler.duration=300000
tpSampler.rampUpTime=60000 tpSampler.rampUpTime=60000
tpSampler.rampDownTime=60000 tpSampler.rampDownTime=60000
tpSampler.interval=1000 tpSampler.interval=1000
# CPU Sampler Settings # CPU Sampler Settings
# 5 mins sampling duration # 5 mins sampling duration
# 1 min ramp up and ramp down time # 1 min ramp up and ramp down time
# 1 sec sampling interval # 1 sec sampling interval
# cpuSampler.duration=300000 # cpuSampler.duration=300000
# cpuSampler.rampUpTime=60000 # cpuSampler.rampUpTime=60000
# cpuSampler.rampDownTime=60000 # cpuSampler.rampDownTime=60000
# cpuSampler.interval=1000 # cpuSampler.interval=1000
# AMQ Connection Factory Settings # AMQ Connection Factory Settings
# Use default settings # Use default settings
# factory.brokerURL=tcp://localhost:61616 # factory.brokerURL=tcp://localhost:61616
# factory.useAsyncSend=false # factory.useAsyncSend=false
# factory.asyncDispatch=false # factory.asyncDispatch=false
# factory.alwaysSessionAsync=true # factory.alwaysSessionAsync=true
# factory.useCompression=false # factory.useCompression=false
# factory.optimizeAcknowledge=false # factory.optimizeAcknowledge=false
# factory.objectMessageSerializationDefered=false # factory.objectMessageSerializationDefered=false
# factory.disableTimeStampsByDefault=false # factory.disableTimeStampsByDefault=false
# factory.optimizedMessageDispatch=true # factory.optimizedMessageDispatch=true
# factory.useRetroactiveConsumer=false # factory.useRetroactiveConsumer=false
# factory.copyMessageOnSend=true # factory.copyMessageOnSend=true
# factory.closeTimeout=15000 # factory.closeTimeout=15000
# factory.userName=null # factory.userName=null
# factory.clientID=null # factory.clientID=null
# factory.password=null # factory.password=null
# factory.prefetchPolicy.durableTopicPrefetch=100 # factory.prefetchPolicy.durableTopicPrefetch=100
# factory.prefetchPolicy.topicPrefetch=32766 # factory.prefetchPolicy.topicPrefetch=32766
# factory.prefetchPolicy.queueBrowserPrefetch=500 # factory.prefetchPolicy.queueBrowserPrefetch=500
# factory.prefetchPolicy.queuePrefetch=1000 # factory.prefetchPolicy.queuePrefetch=1000
# factory.prefetchPolicy.inputStreamPrefetch=100 # factory.prefetchPolicy.inputStreamPrefetch=100
# factory.prefetchPolicy.maximumPendingMessageLimit=0 # factory.prefetchPolicy.maximumPendingMessageLimit=0
# factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000 # factory.prefetchPolicy.optimizeDurableTopicPrefetch=1000
# factory.redeliveryPolicy.initialRedeliveryDelay=1000 # factory.redeliveryPolicy.initialRedeliveryDelay=1000
# factory.redeliveryPolicy.maximumRedeliveries=5 # factory.redeliveryPolicy.maximumRedeliveries=5
# factory.redeliveryPolicy.useCollisionAvoidance=false # factory.redeliveryPolicy.useCollisionAvoidance=false
# factory.redeliveryPolicy.useExponentialBackOff=false # factory.redeliveryPolicy.useExponentialBackOff=false
# factory.redeliveryPolicy.collisionAvoidancePercent=15 # factory.redeliveryPolicy.collisionAvoidancePercent=15
# factory.redeliveryPolicy.backOffMultiplier=5 # factory.redeliveryPolicy.backOffMultiplier=5

View File

@ -1,21 +1,21 @@
##--------------------------------------------------------------------------- ##---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more ## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with ## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership. ## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0 ## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with ## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at ## the License. You may obtain a copy of the License at
## ##
## http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
## ##
## Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS, ## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and ## See the License for the specific language governing permissions and
## limitations under the License. ## limitations under the License.
##--------------------------------------------------------------------------- ##---------------------------------------------------------------------------
# ------------------------------------------------------------------- # -------------------------------------------------------------------
# Build Properties # Build Properties
# ------------------------------------------------------------------- # -------------------------------------------------------------------

View File

@ -35,6 +35,7 @@
<include>**/*.so</include> <include>**/*.so</include>
<include>**/*.ks</include> <include>**/*.ks</include>
<include>**/*.ts</include> <include>**/*.ts</include>
<include>**/*.keystore</include>
</includes> </includes>
</fileSet> </fileSet>
@ -55,6 +56,7 @@
<exclude>**/*.so</exclude> <exclude>**/*.so</exclude>
<exclude>**/*.ks</exclude> <exclude>**/*.ks</exclude>
<exclude>**/*.ts</exclude> <exclude>**/*.ts</exclude>
<exclude>**/*.keystore</exclude>
<exclude>**/svn-commit*</exclude> <exclude>**/svn-commit*</exclude>
<exclude>**/target</exclude> <exclude>**/target</exclude>
<exclude>**/target/**/*</exclude> <exclude>**/target/**/*</exclude>

View File

@ -35,6 +35,7 @@
<include>**/*.so</include> <include>**/*.so</include>
<include>**/*.ks</include> <include>**/*.ks</include>
<include>**/*.ts</include> <include>**/*.ts</include>
<include>**/*.keystore</include>
</includes> </includes>
</fileSet> </fileSet>
@ -55,6 +56,7 @@
<exclude>**/*.so</exclude> <exclude>**/*.so</exclude>
<exclude>**/*.ks</exclude> <exclude>**/*.ks</exclude>
<exclude>**/*.ts</exclude> <exclude>**/*.ts</exclude>
<exclude>**/*.keystore</exclude>
<exclude>**/svn-commit*</exclude> <exclude>**/svn-commit*</exclude>
<exclude>**/target</exclude> <exclude>**/target</exclude>
<exclude>**/target/**</exclude> <exclude>**/target/**</exclude>