From b3914e8d4282b5c5ef0906aa6ebb345dec44cb4b Mon Sep 17 00:00:00 2001 From: Sebastien Vincent Date: Thu, 11 Mar 2010 12:45:27 +0000 Subject: [PATCH] Add '-client -Xmx256m' to VM arguments for 32-bit OS in package scripts. --- resources/install/build.xml | 8 +++++++- resources/install/debian/sip-communicator.sh.tmpl | 13 ++++++++++++- resources/install/generic/run.sh | 13 ++++++++++++- 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/resources/install/build.xml b/resources/install/build.xml index d79832353..a78716447 100644 --- a/resources/install/build.xml +++ b/resources/install/build.xml @@ -704,6 +704,12 @@ + + + + + vmoptions="-agentlib:AEGetURLEventHandlerAgent ${jvmarg}"> diff --git a/resources/install/debian/sip-communicator.sh.tmpl b/resources/install/debian/sip-communicator.sh.tmpl index a3bd15a39..fedb6bed8 100644 --- a/resources/install/debian/sip-communicator.sh.tmpl +++ b/resources/install/debian/sip-communicator.sh.tmpl @@ -1,5 +1,16 @@ #!/bin/bash +# Get architecture +ARCH=`uname -m | sed -e s/x86_64/64/ -e s/i.86/32/` + +# Additionnal JVM arguments +CLIENTARGS="" + +if [ $ARCH -eq 32 ] +then + CLIENTARGS="-client -Xmx256m" +fi + javabin=`which java` SCDIR=/usr/lib/sip-communicator @@ -7,7 +18,7 @@ LIBPATH=$SCDIR/lib CLASSPATH=$LIBPATH/jdic_stub.jar:$LIBPATH/jdic-all.jar:$LIBPATH/felix.jar:$LIBPATH/bcprovider.jar:$SCDIR/sc-bundles/sc-launcher.jar:$SCDIR/sc-bundles/util.jar FELIX_CONFIG=$LIBPATH/felix.client.run.properties LOG_CONFIG=$LIBPATH/logging.properties -COMMAND="$javabin -classpath $CLASSPATH -Djna.library.path=$LIBPATH/native -Dfelix.config.properties=file:$FELIX_CONFIG -Djava.util.logging.config.file=$LOG_CONFIG net.java.sip.communicator.launcher.SIPCommunicator" +COMMAND="$javabin $CLIENTARGS -classpath $CLASSPATH -Djna.library.path=$LIBPATH/native -Dfelix.config.properties=file:$FELIX_CONFIG -Djava.util.logging.config.file=$LOG_CONFIG net.java.sip.communicator.launcher.SIPCommunicator" # set add LIBPATH to LD_LIBRARY_PATH for any sc natives (e.g. jmf .so's) export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBPATH/native diff --git a/resources/install/generic/run.sh b/resources/install/generic/run.sh index 48ae1ad1a..fdbf5de08 100644 --- a/resources/install/generic/run.sh +++ b/resources/install/generic/run.sh @@ -1,4 +1,15 @@ mkdir -p $HOME/.sip-communicator/log +# Get architecture +ARCH=`uname -m | sed -e s/x86_64/64/ -e s/i.86/32/` + +# Additionnal JVM arguments +CLIENTARGS="" + +if [ $ARCH -eq 32 ] +then + CLIENTARGS="-client -Xmx256m" +fi + export PATH=$PATH:native -java -classpath "lib/jdic-all.jar:lib/jdic_stub.jar:lib/felix.jar:lib/bcprovider.jar:sc-bundles/sc-launcher.jar:sc-bundles/util.jar" -Djava.library.path=native -Dfelix.config.properties=file:./lib/felix.client.run.properties -Djava.util.logging.config.file=lib/logging.properties net.java.sip.communicator.launcher.SIPCommunicator +java $CLIENTARGS -classpath "lib/jdic-all.jar:lib/jdic_stub.jar:lib/felix.jar:lib/bcprovider.jar:sc-bundles/sc-launcher.jar:sc-bundles/util.jar" -Djava.library.path=native -Dfelix.config.properties=file:./lib/felix.client.run.properties -Djava.util.logging.config.file=lib/logging.properties net.java.sip.communicator.launcher.SIPCommunicator