s3_perf_setup

SETUP

Before performing a full series of capacity/ smoke tests, it is important to develop the test plans and also harvest the low lying fruits. To achieve this and to be able to reasonably compare with results generated recently you will need to-do the following:

  1.  Download the latest Kernel from builds.sakai.project.org:8080
    Builds is a Hudson Continuous build server. If you have an account you can see change log information. By quoting the build number in your Jira's you localize the issue for developers.
  2. Pull in the latest 3akai-uux source code.
  3. Start the Kernel with a script similar to the following.
    export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.20"
    
    export JAVA_OPTS="-server -Xmx1024m -XX:MaxPermSize=256m -Djava.awt.headless=true \
    -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
    export K2_OPTS="-server -Xmx1024m -XX:MaxPermSize=256m -Djava.awt.headless=true \
    -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
    export K2_ARTIFACT="org.sakaiproject.nakamura.app-0.9-SNAPSHOT.jar"
    $JAVA_HOME/bin/java $K2_OPTS -jar $K2_ARTIFACT -f - > sakai3-run.log.txt 2>&1 &
    
  4. Point to the GUI, by running a command similar to:
./startux.sh \-d /home/aberg/Desktop/defect_density/3temp/3akai-ux/dev \-w /home/aberg/Desktop/defect_density/3temp/3akai-ux/devwidgets

Where startux.sh is copied from the Kernel:

#!/bin/bash
#
# Use this script to map the UX files easily
#
# Usage:
# ./startux.sh -d /opt/sakai/3akai-ux/dev -w /opt/sakai/3akai-ux/devwidgets/
# Parameters
#  -d : Path to where your /dev ux folder is located
#  -w : Path to where your /devwidgets ux folder is located
#

JAR=''
DEV=''
DEVWIDGETS=''

while getopts ":j:d:w:" opt; do
  case $opt in
    d)
      DEV="$OPTARG"
      ;;
    w)
      DEVWIDGETS=$OPTARG
      ;;
    \?)
      echo "Invalid option: -$OPTARG" >&2
      exit 1
      ;;
    :)
      echo "Option -$OPTARG requires an argument." >&2
      exit 1
      ;;
  esac
done

# Set /dev
curl -d"provider.roots=/dev" -d"provider.file=$DEV" -d"propertylist=provider.roots,provider.file"  -d"apply=true" -d"factoryPid=org.apache.sling.fsprovider.internal.FsResourceProvider" -d"action=ajaxConfigManager" -g http://admin:admin@localhost:8080/system/console/configMgr/[Temporary%20PID%20replaced%20by%20real%20PID%20upon%20save]
echo "/dev set."

# Set /devwidgets
curl -d"provider.roots=/devwidgets" -d"provider.file=$DEVWIDGETS" -d"propertylist=provider.roots,provider.file"  -d"apply=true" -d"factoryPid=org.apache.sling.fsprovider.internal.FsResourceProvider" -d"action=ajaxConfigManager" -g http://admin:admin@localhost:8080/system/console/configMgr/[Temporary%20PID%20replaced%20by%20real%20PID%20upon%20save]
echo "/devwidgets set."