[jboss-cvs] JBossAS SVN: r106803 - in projects/jboss-jca/branches/performance: rars and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Jul 18 06:48:25 EDT 2010
Author: jeff.zhang
Date: 2010-07-18 06:48:24 -0400 (Sun, 18 Jul 2010)
New Revision: 106803
Added:
projects/jboss-jca/branches/performance/rars/src/main/resources/profiler/
projects/jboss-jca/branches/performance/rars/src/main/resources/profiler/jboss-profiler.properties
projects/jboss-jca/branches/performance/rars/src/main/resources/profiler/run_jbjca.bat
projects/jboss-jca/branches/performance/rars/src/main/resources/profiler/run_jbjca.sh
Modified:
projects/jboss-jca/branches/performance/build.xml
projects/jboss-jca/branches/performance/rars/build.xml
Log:
[JBJCA-386] copy jboss-profiler jar and files into containers
Modified: projects/jboss-jca/branches/performance/build.xml
===================================================================
--- projects/jboss-jca/branches/performance/build.xml 2010-07-18 02:53:16 UTC (rev 106802)
+++ projects/jboss-jca/branches/performance/build.xml 2010-07-18 10:48:24 UTC (rev 106803)
@@ -150,6 +150,13 @@
<target name="docs" depends="jars">
<ant dir="rars" inheritRefs="true" target="docs"/>
</target>
+
+ <!-- =================================
+ Target: profiler
+ ================================= -->
+ <target name="profiler" depends="jars">
+ <ant dir="rars" inheritRefs="true" target="profiler"/>
+ </target>
<!-- =================================
Target: prepare test
Modified: projects/jboss-jca/branches/performance/rars/build.xml
===================================================================
--- projects/jboss-jca/branches/performance/rars/build.xml 2010-07-18 02:53:16 UTC (rev 106802)
+++ projects/jboss-jca/branches/performance/rars/build.xml 2010-07-18 10:48:24 UTC (rev 106803)
@@ -27,8 +27,53 @@
Properties
================================= -->
<property name="build.rars.dir" value="${build.dir}/rars" />
+ <property name="jboss.profiler" value="jboss-profiler-2.0.0.Beta5" />
+ <property name="jboss.profiler.file" value="${build.dir}/${jboss.profiler}.zip" />
+ <target name="profiler-check">
+ <available file="${build.dir}/${jboss.profiler}.zip" type="file" property="profiler.exist" value="true"/>
+ </target>
+
+ <target name="profiler-get" unless="profiler.exist" depends="profiler-check">
+ <get src="http://download.jboss.org/jbossprofiler/${jboss.profiler}.zip"
+ dest="${build.dir}"/>
+ </target>
+
<!-- =================================
+ Target: profiler-prepare
+ ================================= -->
+ <target name="profiler-prepare" depends="profiler-prepare-jbjca, profiler-prepare-jbas">
+ </target>
+
+ <target name="profiler-prepare-jbjca" depends="profiler-get" if="jbjca.home">
+ <unzip src="${build.dir}/${jboss.profiler}.zip" dest="${jbjca.home}/bin">
+ <patternset>
+ <include name="${jboss.profiler}/jboss-profiler.jar"/>
+ <include name="${jboss.profiler}/jboss-profiler-plugins.jar"/>
+ </patternset>
+ <mapper type="flatten"/>
+ </unzip>
+ <copy todir="${jbjca.home}/bin" overwrite="true">
+ <fileset dir="src/main/resources/profiler" includes="**/*"/>
+ </copy>
+ <copy file="${target.dir}/wm_JBJCA_NoTransaction_100000.rar" todir="${jbjca.home}/deploy"/>
+ </target>
+
+ <target name="profiler-prepare-jbas" depends="profiler-get" if="jboss.as.home">
+ <unzip src="${build.dir}/${jboss.profiler}.zip" dest="${jboss.as.home}/bin">
+ <patternset>
+ <include name="${jboss.profiler}/jboss-profiler.jar"/>
+ <include name="${jboss.profiler}/jboss-profiler-plugins.jar"/>
+ </patternset>
+ <mapper type="flatten"/>
+ </unzip>
+ <copy todir="${jboss.as.home}/bin" overwrite="true">
+ <fileset dir="src/main/resources/profiler" includes="**/*"/>
+ </copy>
+ <copy file="${target.dir}/wm_JBJCA_NoTransaction_100000.rar" todir="${jboss.as.home}/sever/default/deploy"/>
+ </target>
+
+ <!-- =================================
Target: compile
================================= -->
<target name="compile">
@@ -51,7 +96,7 @@
<attribute name="trans"/>
<sequential>
<copy todir="${build.rars.dir}/jars/rars/@{as}/@{trans}/@{count}">
- <fileset dir="src/main/resources/" includes="**/*"/>
+ <fileset dir="src/main/resources/" includes="**/ra.xml"/>
<filterset>
<filter token="COUNT" value="@{count}"/>
<filter token="AS" value="@{as}"/>
@@ -104,7 +149,13 @@
<makerar count="10000" as="JBJCA" trans="XATransaction"/>
<makerar count="100000" as="JBJCA" trans="NoTransaction"/>
<makerar count="100000" as="JBJCA" trans="XATransaction"/>
+ </target>
+ <!-- =================================
+ Target: profiler
+ ================================= -->
+ <target name="profiler" depends="profiler-prepare">
+
</target>
<!-- =================================
Added: projects/jboss-jca/branches/performance/rars/src/main/resources/profiler/jboss-profiler.properties
===================================================================
--- projects/jboss-jca/branches/performance/rars/src/main/resources/profiler/jboss-profiler.properties (rev 0)
+++ projects/jboss-jca/branches/performance/rars/src/main/resources/profiler/jboss-profiler.properties 2010-07-18 10:48:24 UTC (rev 106803)
@@ -0,0 +1,24 @@
+enable=yes
+precompiled=no
+cpu=yes
+memory=yes
+includes=org.jboss.jca.core.workmanager.*,org.jboss.resource.work.*
+excludes=*
+visibility=private
+save=yes
+savelocation=.
+startup=yes
+repository=no
+remote=yes
+store=memory
+location=.
+host=localhost
+port=5400
+ejb=yes
+servlet=yes
+jsf=yes
+jmx=yes
+rmi=yes
+corba=yes
+plugin.1=org.jboss.profiler.plugins.Hibernate
+plugin.2=org.jboss.profiler.plugins.Seam
Added: projects/jboss-jca/branches/performance/rars/src/main/resources/profiler/run_jbjca.bat
===================================================================
--- projects/jboss-jca/branches/performance/rars/src/main/resources/profiler/run_jbjca.bat (rev 0)
+++ projects/jboss-jca/branches/performance/rars/src/main/resources/profiler/run_jbjca.bat 2010-07-18 10:48:24 UTC (rev 106803)
@@ -0,0 +1,76 @@
+ at echo off
+rem -------------------------------------------------------------------------
+rem IronJacamar Script for Windows
+rem -------------------------------------------------------------------------
+
+rem $Id: $
+
+ at if not "%ECHO%" == "" echo %ECHO%
+ at if "%OS%" == "Windows_NT" setlocal
+
+if "%OS%" == "Windows_NT" (
+ set "DIRNAME=%~dp0%"
+) else (
+ set DIRNAME=.\
+)
+
+pushd %DIRNAME%..
+if "x%IRON_JACAMAR_HOME%" == "x" (
+ set "IRON_JACAMAR_HOME=%CD%"
+)
+popd
+
+set DIRNAME=
+
+if "%OS%" == "Windows_NT" (
+ set "PROGNAME=%~nx0%"
+) else (
+ set "PROGNAME=run.bat"
+)
+
+if "x%JAVA_HOME%" == "x" (
+ set JAVA=java
+ echo JAVA_HOME is not set. Unexpected results may occur.
+ echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
+) else (
+ set "JAVA=%JAVA_HOME%\bin\java"
+)
+
+rem Setup IronJacamar specific properties
+
+rem Setup the java endorsed dirs
+set IRON_JACAMAR_ENDORSED_DIRS=%IRON_JACAMAR_HOME%\lib\endorsed
+
+if "x%JAVA_OPTS%" == "x" (
+ set "JAVA_OPTS=-Xmx512m"
+) else (
+ set "JAVA_OPTS=-Xmx512m %JAVA_OPTS%"
+)
+
+echo ===============================================================================
+echo.
+echo IronJacamar
+echo.
+echo IRON_JACAMAR_HOME: %IRON_JACAMAR_HOME%
+echo.
+echo JAVA: %JAVA%
+echo.
+echo JAVA_OPTS: %JAVA_OPTS%
+echo.
+echo ===============================================================================
+echo.
+
+:RESTART
+"%JAVA%" %JAVA_OPTS% ^
+ -Djava.endorsed.dirs="%IRON_JACAMAR_ENDORSED_DIRS%" ^
+ -Dorg.jboss.logging.Logger.pluginClass=org.jboss.logging.logmanager.LoggerPluginImpl ^
+ -Dlog4j.defaultInitOverride=true ^
+ -javaagent:jboss-profiler.jar -Djboss-profiler.properties=jboss-profiler.properties ^
+ -jar ironjacamar-sjc.jar %*
+
+if ERRORLEVEL 10 goto RESTART
+
+:END
+if "x%NOPAUSE%" == "x" pause
+
+:END_NO_PAUSE
Added: projects/jboss-jca/branches/performance/rars/src/main/resources/profiler/run_jbjca.sh
===================================================================
--- projects/jboss-jca/branches/performance/rars/src/main/resources/profiler/run_jbjca.sh (rev 0)
+++ projects/jboss-jca/branches/performance/rars/src/main/resources/profiler/run_jbjca.sh 2010-07-18 10:48:24 UTC (rev 106803)
@@ -0,0 +1,54 @@
+#!/bin/sh
+### ====================================================================== ###
+## ##
+## IronJacamar Script ##
+## ##
+### ====================================================================== ###
+
+### $Id: $ ###
+
+DIRNAME=`dirname $0`
+
+# Setup IRON_JACAMAR_HOME
+if [ "x$IRON_JACAMAR_HOME" = "x" ]; then
+ # get the full path (without any relative bits)
+ IRON_JACAMAR_HOME=`cd $DIRNAME/..; pwd`
+fi
+export IRON_JACAMAR_HOME
+
+# Setup the java endorsed dirs
+IRON_JACAMAR_ENDORSED_DIRS="$IRON_JACAMAR_HOME/lib/endorsed"
+
+# Setup the JVM
+if [ "x$JAVA" = "x" ]; then
+ if [ "x$JAVA_HOME" != "x" ]; then
+ JAVA="$JAVA_HOME/bin/java"
+ else
+ JAVA="java"
+ fi
+fi
+
+# Setup the JVM options
+JAVA_OPTS="$JAVA_OPTS -Xmx512m"
+
+# Display the environment
+echo "========================================================================="
+echo ""
+echo " IronJacamar"
+echo ""
+echo " IRON_JACAMAR_HOME: $IRON_JACAMAR_HOME"
+echo ""
+echo " JAVA: $JAVA"
+echo ""
+echo " JAVA_OPTS: $JAVA_OPTS"
+echo ""
+echo "========================================================================="
+echo ""
+
+# Start IronJacamar
+"$JAVA" $JAVA_OPTS \
+ -Djava.endorsed.dirs="$IRON_JACAMAR_ENDORSED_DIRS" \
+ -Dorg.jboss.logging.Logger.pluginClass=org.jboss.logging.logmanager.LoggerPluginImpl \
+ -Dlog4j.defaultInitOverride=true \
+ -javaagent:jboss-profiler.jar -Djboss-profiler.properties=jboss-profiler.properties \
+ -jar ironjacamar-sjc.jar "$@"
Property changes on: projects/jboss-jca/branches/performance/rars/src/main/resources/profiler/run_jbjca.sh
___________________________________________________________________
Name: svn:executable
+ *
More information about the jboss-cvs-commits
mailing list