Repository navigation
Build Binaries
mmarkus edited this page Dec 14, 2010
·
6 revisions
Following tools are required for building the binaries:
- git >= 1.6.5, needed for obtaining the source code
- JDK >= 1.5 for compiling and running the benchmark
- maven >= 2.1 needed for downloading dependencies and the build process
Once the supporting software installed (see prerequisites) follow these steps: Move to a directory where you will build the binaries and run:
git clone git://github.com/radargun/radargun.git
Alternatively, if you have write access to the central git repository, use:
git clone git@github.com:radargun/radargun.git
This create an “radargun” directory in the same directory where the command was issued. This directory contains RadarGun's sources.
In order to compile and build a distribution, move(cd) to “radargun” and issue an mvn install:
cd radargun
mvn install
This operation might take some minutes (depending on the internet connection), as it will download all the dependencies needed by the plugins (e.g. It will download infinispan and its dependencies, EHCache and its dependencies etc). Once install is finished, you will find the distribution in “./target/distribution/CacheBenchFwk-<version>.zip”. Unzip this in the place you want the distribution installed.
The distribution has the following structure:
|-bin
|-conf
|-lib
|-plugins
|---ehcache15
|-----conf
|-----lib
|---infinispan4
|-----conf
|-----lib
|---jbosscache3
|-----conf
|-----lib
- bin directory contains scripts for lunching the master, the slaves and some other utility scripts.For details on how to run a distributed benchmark see Distributed-Benchmarks and Using-The-Scripts
- conf contains configuration files for running distributed benchmarks (benchmark.xml), local benchmarks (local-benchmark.xml) and the log4j cofiguration file
- plugins contains a directory for each (product,version) combo that can be bench marked