[jboss-svn-commits] JBL Code SVN: r29614 - labs/jbossesb/workspace/performance/perf1/product/samples/quickstarts/performance.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Oct 15 03:16:23 EDT 2009


Author: beve
Date: 2009-10-15 03:16:23 -0400 (Thu, 15 Oct 2009)
New Revision: 29614

Added:
   labs/jbossesb/workspace/performance/perf1/product/samples/quickstarts/performance/jboss-esb_jbr-smooks-ftl-security.xml
Modified:
   labs/jbossesb/workspace/performance/perf1/product/samples/quickstarts/performance/README
Log:
Added a esb service configuration with esb security enabled.


Modified: labs/jbossesb/workspace/performance/perf1/product/samples/quickstarts/performance/README
===================================================================
--- labs/jbossesb/workspace/performance/perf1/product/samples/quickstarts/performance/README	2009-10-14 14:33:57 UTC (rev 29613)
+++ labs/jbossesb/workspace/performance/perf1/product/samples/quickstarts/performance/README	2009-10-15 07:16:23 UTC (rev 29614)
@@ -1,3 +1,5 @@
+Building
+========
 'build.sh' has several editable variables at the top.  
 1. TESTS, which allows you to specify which jboss-esb_*.xml templates you want to build from
 2. MAX_THREADS, which allows you to specify the maxThreads properties
@@ -15,6 +17,8 @@
 Also in the tests subdir, you will find a performance.war file, which contains a simple HelloWorld webservice that is used for the proxying tests.  
 To deploy, simply copy performance.war into deploy/, then choose one of the performance_*.esb tests to copy into deploy/.
 
+Generating load
+===============
 SoapUI is used to generate the load.  
 The free 3.0.1 version will load up the included PerformanceTesting-soapui-project.xml file just fine. There is one annoying thing, though. Basically, that 
 xml file has fully-qualified paths and IP addresses in it, so you will need to search+replace in it and replace /home/rhuser/foo/bar/ and 192.168.1.103 with 
@@ -26,9 +30,32 @@
 - http://host:8080/performance/Performance/Test (EBWS)
 - http://host:7070/Performance/Test/ (old HttpGateway)
 - http://host:8080/performance/TestWS (original JBossWS service in performance.war)
-2) Specify the desired number of client Threads (including Start and End Threads)
+2) Specify the desired number of client Threads (including Start and End Threads) by double clicking on the Load Test.
 3) Specify a duration Limit for the test.
 
+Testing Security
+================
+When testing one a service configured with security make sure that you update the request xml. For example, if you want to run the 
+jboss-esb_jbr-smooks-ftl-security.xml your request would look like this:
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:perf="http://www.jboss.org/service/performance">
+   <env:Header>
+	<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext">
+           <wsse:UsernameToken>
+              <wsse:Username>kermit</wsse:Username>
+              <wsse:Password>thefrog</wsse:Password>
+           </wsse:UsernameToken>
+    </wsse:Security>
+   </env:Header>
+   <env:Body>
+      <perf:Throughput>
+         <payloadSize>?</payloadSize>
+         <payload>?</payload>
+      </perf:Throughput>
+   </env:Body>
+</env:Envelope>
+
+Configurations tested
+=====================
 The various configuration changes that have been tested:
 1) Disabling SELinux.
 2) Using JDK 1.6 (had to copy a few jars into lib/endorsed) vs JDK 1.5
@@ -37,11 +64,9 @@
 5) Tweaking memory configuration
 JAVA_OPTS="-Xms1024m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -Djava.awt.headless=true  -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true"
 6) Removing jbpm.esb
-7) Switch from Hypersonic to PostgreSQL
-http://www.jboss.org/community/wiki/JBossESBSwitchDatabase
+7) Switch from Hypersonic to PostgreSQL (http://www.jboss.org/community/wiki/JBossESBSwitchDatabase)
 8) Changing the deployment scanner to hardly ever run
-9) Make sure the CachingRegistryInterceptor was enabled
-deploy/jbossesb.sar/jbossesb-properties.xml
+9) Make sure the CachingRegistryInterceptor was enabled deploy/jbossesb.sar/jbossesb-properties.xml:
 <property name="org.jboss.soa.esb.registry.interceptors" value="org.jboss.internal.soa.esb.services.registry.InVMRegistryInterceptor, org.jboss.internal.soa.esb.services.registry.CachingRegistryInterceptor"/>
 10) pure-java Tomcat or embedding the Apache Portable Runtime (JBoss Native APR in JBoss Web)
 

Added: labs/jbossesb/workspace/performance/perf1/product/samples/quickstarts/performance/jboss-esb_jbr-smooks-ftl-security.xml
===================================================================
--- labs/jbossesb/workspace/performance/perf1/product/samples/quickstarts/performance/jboss-esb_jbr-smooks-ftl-security.xml	                        (rev 0)
+++ labs/jbossesb/workspace/performance/perf1/product/samples/quickstarts/performance/jboss-esb_jbr-smooks-ftl-security.xml	2009-10-15 07:16:23 UTC (rev 29614)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd">
+
+	<providers>
+		<jbr-provider name="provider" protocol="http" host="@host@">
+			<jbr-bus busid="bus" port="9090"/>
+		</jbr-provider>
+	</providers>
+
+	<services>
+		<service category="Performance" name="Test" invmScope="GLOBAL" description="Performance Test">
+			<security moduleName="JBossWS"/>
+			<property name="maxThreads" value="@maxThreads@"/>
+			<listeners>
+				<jbr-listener name="listener" busidref="bus" is-gateway="true" maxThreads="@maxThreads@">
+					<property name="maxThreads" value="@maxThreads@"/>
+					<property name="jbr-maxThreads" value="@maxThreads@"/>
+				</jbr-listener>
+			</listeners>
+			<actions mep="RequestResponse">
+				<action name="smooks" class="org.jboss.soa.esb.smooks.SmooksAction">
+					<property name="smooksConfig" value="/transform_http-jbr-smooks-ftl.xml"/>
+				</action>
+			</actions>
+		</service>
+	</services>
+
+</jbossesb>



More information about the jboss-svn-commits mailing list