diff options
| author | Robert Greig <rgreig@apache.org> | 2007-01-04 08:33:50 +0000 |
|---|---|---|
| committer | Robert Greig <rgreig@apache.org> | 2007-01-04 08:33:50 +0000 |
| commit | fcfaaaf02693331d0079fb001586d61e2ab9da2e (patch) | |
| tree | 4b84da109c07530b898b7a90d833fc286fa2a06d /java/perftests/bin | |
| parent | 26999d9fcb1aed68d2345d68819edf2d4c54821f (diff) | |
| download | qpid-python-fcfaaaf02693331d0079fb001586d61e2ab9da2e.tar.gz | |
Merged up to trunk rev 491879
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/new_persistence@492450 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/perftests/bin')
| -rwxr-xr-x | java/perftests/bin/run_many.sh | 30 | ||||
| -rwxr-xr-x | java/perftests/bin/serviceProvidingClient.sh | 25 | ||||
| -rwxr-xr-x | java/perftests/bin/serviceRequestingClient.sh | 27 | ||||
| -rwxr-xr-x | java/perftests/bin/setupclasspath.sh | 9 | ||||
| -rwxr-xr-x | java/perftests/bin/topicListener.sh | 25 | ||||
| -rwxr-xr-x | java/perftests/bin/topicPublisher.sh | 23 |
6 files changed, 139 insertions, 0 deletions
diff --git a/java/perftests/bin/run_many.sh b/java/perftests/bin/run_many.sh new file mode 100755 index 0000000000..cca2ffec21 --- /dev/null +++ b/java/perftests/bin/run_many.sh @@ -0,0 +1,30 @@ +#!/bin/sh +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. 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 obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + + +# args: +# <number of processes to start> +# <name of run> +# <command ro run> + +for i in `seq 1 $1`; do + $3 >$2.$i.out 2>>$2.err & + echo $! > $2.$i.pid +done; diff --git a/java/perftests/bin/serviceProvidingClient.sh b/java/perftests/bin/serviceProvidingClient.sh new file mode 100755 index 0000000000..6b00486cd2 --- /dev/null +++ b/java/perftests/bin/serviceProvidingClient.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. 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 obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +# XXX -Xms1024m -XX:NewSize=300m +. ./setupclasspath.sh +echo $CP +# usage: just pass in the host(s) +$JAVA_HOME/bin/java -cp $CP -Damqj.logging.level=INFO org.apache.qpid.requestreply.ServiceProvidingClient $1 guest guest /test serviceQ diff --git a/java/perftests/bin/serviceRequestingClient.sh b/java/perftests/bin/serviceRequestingClient.sh new file mode 100755 index 0000000000..7dd3d63c27 --- /dev/null +++ b/java/perftests/bin/serviceRequestingClient.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. 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 obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# args supplied: <host:port> <num messages> +thehosts=$1 +shift +echo $thehosts +# XXX -Xms1024m -XX:NewSize=300m +. ./setupclasspath.sh +echo $CP +$JAVA_HOME/bin/java -cp $CP -Damqj.logging.level="INFO" org.apache.qpid.requestreply.ServiceRequestingClient $thehosts guest guest /test serviceQ "$@" diff --git a/java/perftests/bin/setupclasspath.sh b/java/perftests/bin/setupclasspath.sh new file mode 100755 index 0000000000..a660392e77 --- /dev/null +++ b/java/perftests/bin/setupclasspath.sh @@ -0,0 +1,9 @@ +if [ -z $QPID_HOME ] ; then + echo "QPID_HOME must be set" + exit +fi +CP=$QPID_HOME/lib/qpid-incubating.jar:../target/classes + +if [ `uname -o` == "Cygwin" ] ; then + CP=`cygpath --path --windows $CP` +fi diff --git a/java/perftests/bin/topicListener.sh b/java/perftests/bin/topicListener.sh new file mode 100755 index 0000000000..454efefe7d --- /dev/null +++ b/java/perftests/bin/topicListener.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. 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 obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + + +# XXX -Xmx512m -Xms512m -XX:NewSize=150m +. ./setupclasspath.sh +echo $CP +$JAVA_HOME/bin/java -cp $CP -Damqj.logging.level="INFO" org.apache.qpid.topic.Listener $* diff --git a/java/perftests/bin/topicPublisher.sh b/java/perftests/bin/topicPublisher.sh new file mode 100755 index 0000000000..cc3a8736cc --- /dev/null +++ b/java/perftests/bin/topicPublisher.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. 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 obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +# XXX -Xmx512m -Xms512m -XX:NewSize=150m +. ./setupclasspath.sh +$JAVA_HOME/bin/java -cp $CP -Damqj.logging.level="INFO" org.apache.qpid.topic.Publisher $* |
