diff options
author | Martin Ritchie <ritchiem@apache.org> | 2007-05-09 15:46:57 +0000 |
---|---|---|
committer | Martin Ritchie <ritchiem@apache.org> | 2007-05-09 15:46:57 +0000 |
commit | 390fa8703b94e903f580549fc58ddbe72ee35daf (patch) | |
tree | 2f7e5250f9edcd52cc9e7b38250c1bb2c3455661 | |
parent | 548d9fe4a46297d7b0df5b78ff02e29495100902 (diff) | |
download | qpid-python-390fa8703b94e903f580549fc58ddbe72ee35daf.tar.gz |
QPID-484 Provided default GC and easy customisation.. via setting QPID_JAVA_QC.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@536571 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/broker/bin/qpid-server | 1 | ||||
-rw-r--r-- | java/common/bin/qpid-run | 11 |
2 files changed, 11 insertions, 1 deletions
diff --git a/java/broker/bin/qpid-server b/java/broker/bin/qpid-server index a2b416b12b..76d0ad786d 100644 --- a/java/broker/bin/qpid-server +++ b/java/broker/bin/qpid-server @@ -25,6 +25,7 @@ QPID_LIBS=$QPID_HOME/lib/qpid-incubating.jar:$QPID_HOME/lib/bdbstore-launch.jar export JAVA=java \ JAVA_VM=-server \ JAVA_MEM=-Xmx1024m \ + JAVA_GC=-XX:-UseConcMarkSweepGC QPID_CLASSPATH=$QPID_LIBS . qpid-run org.apache.qpid.server.Main "$@" diff --git a/java/common/bin/qpid-run b/java/common/bin/qpid-run index fc607529ee..c9e37b21a1 100644 --- a/java/common/bin/qpid-run +++ b/java/common/bin/qpid-run @@ -114,6 +114,15 @@ else echo "Warning: Qpid classpath not set. CLASSPATH must include qpid jars." fi +#Use QPID_JAVA_GC if set +if [ -n "$QPID_JAVA_GC" ]; then + export JAVA_GC=$QPID_JAVA_GC + echo "Using QPID_JAVA_GC setting" $QPID_JAVA_GC +else + echo "Info: QPID_JAVA_GC not set. Defaulting to JAVA_GC" $JAVA_GC +fi + + #Use QPID_JAVA_MEM if set if [ -n "$QPID_JAVA_MEM" ]; then export JAVA_MEM=$QPID_JAVA_MEM @@ -224,6 +233,6 @@ if $cygwin; then JAVA=$(cygpath -u $JAVA) fi -COMMAND=($JAVA $JAVA_VM $JAVA_MEM $SYSTEM_PROPS $JAVA_OPTS $QPID_OPTS "${JAVA_ARGS[@]}") +COMMAND=($JAVA $JAVA_VM $JAVA_GC $JAVA_MEM $SYSTEM_PROPS $JAVA_OPTS $QPID_OPTS "${JAVA_ARGS[@]}") DISPATCH |