summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to 'java')
-rwxr-xr-xjava/tools/bin/run-pub8
-rwxr-xr-xjava/tools/bin/run-sub11
2 files changed, 15 insertions, 4 deletions
diff --git a/java/tools/bin/run-pub b/java/tools/bin/run-pub
index 1af58eede3..9efe58c4b8 100755
--- a/java/tools/bin/run-pub
+++ b/java/tools/bin/run-pub
@@ -20,5 +20,9 @@
. check-qpid-java-env
-echo "$@"
-$JAVA -cp $CLASSPATH $LOG_CONFIG $JAVA_MEM $@ org.apache.qpid.tools.PerfProducer
+JVM_ARGS="$1"
+PROGRAM_ARGS="$2"
+
+echo "JVM ARGS : $JAVA_MEM $JVM_ARGS"
+echo "PROGRAM ARGS : $PROGRAM_ARGS"
+$JAVA -cp $CLASSPATH $LOG_CONFIG $JAVA_MEM $JVM_ARGS org.apache.qpid.tools.PerfProducer $PROGRAM_ARGS
diff --git a/java/tools/bin/run-sub b/java/tools/bin/run-sub
index e9eea5197e..8449563f7f 100755
--- a/java/tools/bin/run-sub
+++ b/java/tools/bin/run-sub
@@ -20,6 +20,13 @@
. check-qpid-java-env
-echo "$@"
-$JAVA -cp $CLASSPATH $LOG_CONFIG $JAVA_MEM $@ org.apache.qpid.tools.PerfConsumer
+echo "All args $@"
+
+JVM_ARGS="$1"
+PROGRAM_ARGS="$2"
+
+echo "JVM ARGS : $JAVA_MEM $JVM_ARGS"
+echo "PROGRAM ARGS : $PROGRAM_ARGS"
+
+$JAVA -cp $CLASSPATH $LOG_CONFIG $JAVA_MEM $JVM_ARGS org.apache.qpid.tools.PerfConsumer $PROGRAM_ARGS