summaryrefslogtreecommitdiff
path: root/java/tools
Commit message (Collapse)AuthorAgeFilesLines
* QPID-3858: Updated branch - merged from trunk r.1368650Kim van der Riet2012-08-0316-884/+1753
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/asyncstore@1368910 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3858: Updated branch - merged from trunk r.1333987Kim van der Riet2012-05-0421-1374/+2012
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/asyncstore@1334037 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: remove test-only and unused connect methodsRobert Gemmell2012-02-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1240812 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Encapsulate fields, use private members and accesors (keep ↵Robert Godfrey2012-01-273-27/+27
| | | | | | checkstyle happy) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1236867 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: add missing licence headers to various files in the java treeRobert Gemmell2011-11-173-0/+59
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1203385 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3358 Added a gnuplot script that can be useful in graphing test results.Rajith Muditha Attapattu2011-07-301-0/+42
| | | | | | | | | If the -Dduration options is used with the PerfTestController it will output the results of each iteration to a CSV file. You could use the perf-report.gnu with gnuplot to generated some graphs uisng this CSV file. The script expects the CSV file to be in the same directly (alternative you can modify the script to load it from somewhere else). Also you will need to modify the yrange values to suite the outcome of your test environment. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152415 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3358 Added scripts to faciliate multi host testing.Rajith Muditha Attapattu2011-07-303-0/+387
| | | | | | | | | | 1. The controller starts the PerfTestController that coordinates the testing across multiple producers and consumers on a multi host env. 2. The start-producers and start-consuers starts multiple producers and consumers and also supports a variety of options including starting multiple connections within the same JVM. 3. All 3 scripts comes with -h or -help option to provide details about the various options supported by them. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152414 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3358 Modified the run-sub and run-pub scripts to allow program args in ↵Rajith Muditha Attapattu2011-07-302-4/+15
| | | | | | | | addition to jvm args. This allows scripts to pass on varios arguments like a script specific prefix and other arguments that should be private to a particular connection rather than the entire jvm. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152413 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3358 Modified the producer and consumer to support multiple iterations ↵Rajith Muditha Attapattu2011-07-304-71/+187
| | | | | | | | | | | | to ensure we can run the test for longer durations. Also added support for creating unique destinations based on the default destination. This makes it easy to run multiple producers and consumers with their unique queue with little configuration. The code can make use of an externally specified prefix when creating these destinations, there by allowing scripts to provide meaningful names for identifying queues for debuging/diagnostic purposes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152412 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3358 Modified the controller to allow multiple iterations in order to ↵Rajith Muditha Attapattu2011-07-302-12/+146
| | | | | | | | | | | support long durations tests. You could now specify -Duration=<secs> to ask the controller to run the test for atleast that duration. If the system is in the middle of running an iteration when the time is up, it will complete the iteration before ending the test. If a duration is specified the Controller will output the results of each iteration into a CSV file. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1152411 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3358 Added a controller to coordinate tests run on several jvm's on the ↵Rajith Muditha Attapattu2011-07-207-133/+607
| | | | | | | | | | | | | | | | | same host or multiple host machines. 1. The controller registers participants and waits until the desired numbers of producers and consumers join the test. 2. It then coordinates warmup runs between the participants and starts the actual test run. 3. Once the test is done it collects stats and computes averages,max,minetc.. and prints them out. The collector is designed run by itself, but can be run inline with a producer for simplicity. Infact by default the producer will run a controller unless -Dext_controller=true is specified. This is done to ensure that the simple test cases like the per-report script can be run without additional configuration. The code would need a bit of cleanup later on. The current form was done quite quickly as a POC for an urgent task. I will be reviewing the code and making improvements over the comming days. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1148935 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3358 Simplified the scripts to make it easy to run them.Rajith Muditha Attapattu2011-07-159-164/+124
| | | | | | | | | | | | | 1. Removed the various set-env scripts. Instead in their place I want to introduce profiles that sets the env to run under different environments. Ex from a source checkout or installed rpms. 2. Introduced Profile-run-from-source to set the env to run the tools from an SVN checkout in a linux env. 3. Modified the scripts to use common variable names things like classpaths, java executable, logging config etc.. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1146959 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3358 Added the ability to specify a message type (ex bytes, text) and ↵Rajith Muditha Attapattu2011-07-135-59/+129
| | | | | | also calculate standard deviation for the latency sample. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1146508 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA forgot to modify the default value for msg_type in one place.Rajith Muditha Attapattu2011-06-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1140807 13f79535-47bb-0310-9956-ffa450edef68
* Merge branch 'perf-tools' into trunkRajith Muditha Attapattu2011-06-281-6/+6
| | | | | | | Conflicts: qpid/java/tools/src/main/java/org/apache/qpid/tools/TestParams.java git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1140797 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA Changed the type name from BYTE to BYTES.Rajith Muditha Attapattu2011-06-281-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1140795 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA Added the ability to specify a message type. Currently on bytesRajith Muditha Attapattu2011-06-282-24/+90
| | | | | | | | and text messages are supported. Hoping to add map and object message support in the near future. You could use -Dmsg_type=TEXT|BYTES to specify the type. The default is BYTES. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1140793 13f79535-47bb-0310-9956-ffa450edef68
* Fixed the default value for address.Rajith Muditha Attapattu2011-06-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1131259 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3055Rajith Muditha Attapattu2011-02-144-118/+70
| | | | | | | | | | | | As the first step added system properties for host, port and address and got rid of the jndi lookup. There is also a system property for URL which allows a user to specify a fully fledged URL with various connection options like SSL etc.. If the host & port is specified the URL property is ignored. I also added some documentation in the perf_report.sh suggesting recommended settings for performance testing. These are guidelines only and a prospective user needs to experiment with their environment to fine tune the settings. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1070519 13f79535-47bb-0310-9956-ffa450edef68
* Fixed minor errors in the scriptsRajith Muditha Attapattu2010-11-102-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1033592 13f79535-47bb-0310-9956-ffa450edef68
* This is related to rev 1032640Rajith Muditha Attapattu2010-11-085-0/+964
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1032733 13f79535-47bb-0310-9956-ffa450edef68
* Moved the testkit scripts under the tools module.Rajith Muditha Attapattu2010-11-083-0/+396
| | | | | | | | | | I will be moving the source also into the tools module in subsequent commit. The goal is to have all tools in a single location. The perftest script and the testkit script are very good tools for release testing. These scripts will also be used in downstream packages for the same purpose. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1032640 13f79535-47bb-0310-9956-ffa450edef68
* Add the BURL prefix to denote the use of old style binding urls in the prop fileRajith Muditha Attapattu2010-09-091-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@995575 13f79535-47bb-0310-9956-ffa450edef68
* Changed README to README.txt throughout the project for consistency. Removed ↵Jonathan Robie2010-06-231-0/+0
| | | | | | gentools/README.txt, which described Velocity. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@957201 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2599: restore log4j settings files which are not named log4j.xml or ↵Robert Gemmell2010-06-041-0/+28
| | | | | | log4j.properties and so need not be removed completely since they wont be automatically applied by log4j if found on the classpath like the others will git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@951419 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2599Rajith Muditha Attapattu2010-05-111-28/+0
| | | | | | | Removing all log4j xml and property files from the code base, except for the ones in test-profile folder and broker/etc folder. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943339 13f79535-47bb-0310-9956-ffa450edef68
* Added a jndi file, README and log4j file needed for testkit.Rajith Muditha Attapattu2010-03-233-0/+216
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@926804 13f79535-47bb-0310-9956-ffa450edef68
* Moved the scripts and config files to the tools module as the Perf Producer ↵Rajith Muditha Attapattu2010-03-042-2/+2
| | | | | | and Consumer are now housed under the tools module. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@918790 13f79535-47bb-0310-9956-ffa450edef68
* Added the LatencyTest and PerfTest kit under the tools modules alongside ↵Rajith Muditha Attapattu2009-11-1110-0/+1441
| | | | | | | | | QpidBench. Modified the testkit build.xml to add tools as build dependency as some of the classes in testkit will be using MessageFactory git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834722 13f79535-47bb-0310-9956-ffa450edef68
* Added a message to indicate the producer and consumer have completed the test.Rajith Muditha Attapattu2009-05-251-0/+2
| | | | | | | This can be then greped by any automated to test script to identify the end of a test run. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@778265 13f79535-47bb-0310-9956-ffa450edef68
* Made the various receive variants check that the server queue is empty ↵Rafael H. Schloming2009-02-251-0/+2
| | | | | | before returning null. Also modified AMQQueueBrowser to use receiveNoWait() when browsing queues using 0-10. These changes uncovered numerous second order bugs, mostly in failover. These are also fixed. This fixes QPID-1642 and QPID-1643. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@747963 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1645Rajith Muditha Attapattu2009-02-091-1/+1
| | | | | | | | | Added support to specify the sasl_mechs as a space separated list in the connection URL. By default it will use PLAIN. You could provide a list of mechs to support or force to use one GASSAPI or CRAM-MD5 by specifying only that in the connection URL. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@742267 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1479Rajith Muditha Attapattu2009-01-131-11/+54
| | | | | | | This commit contains themodifications done to the perf test classes to use the thread abstraction patch. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@734212 13f79535-47bb-0310-9956-ffa450edef68
* removed incubating from various shell scripts, release artifacts, and READMEsRafael H. Schloming2008-12-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@724948 13f79535-47bb-0310-9956-ffa450edef68
* Appologies for the sudden checkin without notice, close to the release cycle.Rajith Muditha Attapattu2008-11-211-54/+11
| | | | | | | Reverting the changes back. Will attach a patch and commit after the release. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@719657 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1479.Rajith Muditha Attapattu2008-11-211-11/+54
| | | | | | | | | | | | | | | For starters I have changed the IoSender.java IoReceiver.java and AMQSession.java#Dispatcher to use the Thread factory to create the threads they require. The ThreadFactory has two implimentations, the default being the java.lang.Threads. The other is the RealtimeThreadFactory which uses reflection to create threads with a specific priority. -Dqpid.thread_factory=<thread_factory_class> will decide which thread factory should be loaded. -Dqpid.rt_thread_priority=<int> specifies the gloabl real time thread priority and defaults to 20. You could also set individual thread priorities by adding the nessacery config+code changes. I have also changed the Testkit and QpidBench to use the Thread factory so you could use them for testing/benchmarking work on RT JVMs. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@719628 13f79535-47bb-0310-9956-ffa450edef68
* This is related to QPID-1296.Rajith Muditha Attapattu2008-10-231-1/+1
| | | | | | | I missed these two files in the previous commit. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@707458 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1339: refactor of low level client API to permit connections to exist ↵Rafael H. Schloming2008-10-091-107/+79
| | | | | | in a disconnected state as well as to provide a central point from which to track session state git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@703208 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1221: added customizable UUID generation and switched the default ↵Rafael H. Schloming2008-08-061-1/+5
| | | | | | strategy to use nameUUIDFromBytes rather than randomUUID git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@683337 13f79535-47bb-0310-9956-ffa450edef68
* Profiling driven changes:Rafael H. Schloming2008-08-052-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - made AMQShortString cache the toString() value - added static initializer to IoTransport to disable use of pooled byte buffers - modified IoSender to permit buffering - removed OutputHandler and eliminated intermediate Frame generation between Disassembler and Sender<ByteBuffer> (IoSender) - made Disassembler take advantage of IoSender's buffering - removed Header and Data as distinct protocol events, added Header and Body members to MessageTransfer - modified Assembler and Disassembler to decode/encode Header and Data directly to/from MessageTransfer - modified Disassembler to only write data if encoding of headers is successful - added Strings.toUTF8(String) -> byte[] to do proper UTF-8 encoding that is also fast for 7-bit ascii - modified JMSTextMessage to use the Strings.toUTF8 - modified QpidBench to only generate 7-bit ascii when using TextMessage git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@682887 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1215 : Replaced use of FileReader with FileInputStreamMartin Ritchie2008-08-041-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@682309 13f79535-47bb-0310-9956-ffa450edef68
* improved usageRafael H. Schloming2008-08-011-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@681674 13f79535-47bb-0310-9956-ffa450edef68
* added benchmark tool for java native + jms APIsRafael H. Schloming2008-08-012-0/+920
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@681666 13f79535-47bb-0310-9956-ffa450edef68
* added tools module to the main buildRafael H. Schloming2008-07-311-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@681477 13f79535-47bb-0310-9956-ffa450edef68
* Addition of tools directory for various Qpid Java toolsMartin Ritchie2008-07-042-0/+227
The first too JNDICheck allows the contents of a JNDI properties file to be parsed and presented as JNDI will process it. Handly for validating the parsing of a ConnectionURL git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674102 13f79535-47bb-0310-9956-ffa450edef68