JBoss JBPM SVN: r3930 - jbpm3/trunk/modules/core/src/test/java/org/jbpm/perf.
by do-not-reply@jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-02-18 12:19:18 -0500 (Wed, 18 Feb 2009)
New Revision: 3930
Added:
jbpm3/trunk/modules/core/src/test/java/org/jbpm/perf/AsyncCallTest.java
Log:
[JBPM-2043] Add jBPM performance test coverage
Added: jbpm3/trunk/modules/core/src/test/java/org/jbpm/perf/AsyncCallTest.java
===================================================================
--- jbpm3/trunk/modules/core/src/test/java/org/jbpm/perf/AsyncCallTest.java (rev 0)
+++ jbpm3/trunk/modules/core/src/test/java/org/jbpm/perf/AsyncCallTest.java 2009-02-18 17:19:18 UTC (rev 3930)
@@ -0,0 +1,111 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jbpm.perf;
+
+// $Id$
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.jbpm.command.CommandService;
+import org.jbpm.command.StartProcessInstanceCommand;
+import org.jbpm.command.impl.CommandServiceImpl;
+import org.jbpm.db.AbstractDbTestCase;
+import org.jbpm.graph.def.ActionHandler;
+import org.jbpm.graph.def.ProcessDefinition;
+import org.jbpm.graph.exe.ExecutionContext;
+import org.jbpm.graph.exe.ProcessInstance;
+
+/**
+ * This tests creates 10000 process instances. Every instance has an async call
+ * to the test class. See JIRA bugs SOA-1175 and JBPM-2043.
+ *
+ * @author mvecera(a)redhat.com
+ * @author pmacik(a)redhat.com
+ * @author thomas.diesler(a)jboss.com
+ * @since 18-Feb-2009
+ */
+public class AsyncCallTest extends AbstractDbTestCase
+{
+ private static final Log log = LogFactory.getLog(AsyncCallTest.class);
+
+ private CommandService commandService = new CommandServiceImpl(getJbpmConfiguration());
+ private static final int INSTANCES = 1000;
+ private static int count;
+
+ ProcessDefinition processDefinition;
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+
+ processDefinition = ProcessDefinition.parseXmlString(
+ "<process-definition xmlns='urn:jbpm.org:jpdl-3.1' name='processDefinition1'>" +
+ " <start-state name='start'>" +
+ " <transition name='to_state' to='end'>" +
+ " <action class='" + PerfActionHandler.class.getName() + "'/>" +
+ " </transition>" +
+ " </start-state>" +
+ " <end-state name='end'/>" +
+ "</process-definition>");
+
+ saveAndReload(processDefinition);
+ }
+
+ public void tearDown() throws Exception
+ {
+ beginSessionTransaction();
+ jbpmContext.getGraphSession().deleteProcessDefinition(processDefinition.getId());
+ super.tearDown();
+ }
+
+ public void testAsyncCall()
+ {
+ long start = System.currentTimeMillis();
+
+ commitAndCloseSession();
+ startJobExecutor();
+
+ for (count = 0; count < INSTANCES; count++)
+ {
+ beginSessionTransaction();
+ StartProcessInstanceCommand startCommand = new StartProcessInstanceCommand();
+ startCommand.setProcessId(processDefinition.getId());
+ startCommand.setProcessName("processDefinition1");
+ ProcessInstance pi = (ProcessInstance)commandService.execute(startCommand);
+ commitAndCloseSession();
+ }
+
+ stopJobExecutor();
+
+ long stop = System.currentTimeMillis();
+ System.out.println("=== Test finished processing " + INSTANCES + " instances in " + (stop - start) + "ms ===");
+ System.out.println("=== This is " + Math.round(1000 * INSTANCES / (stop - start)) + " instances per second ===");
+ }
+
+ public static class PerfActionHandler implements ActionHandler
+ {
+ public void execute(ExecutionContext executionContext) throws Exception
+ {
+ //System.out.println(count);
+ }
+ }
+}
Property changes on: jbpm3/trunk/modules/core/src/test/java/org/jbpm/perf/AsyncCallTest.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
17 years, 2 months
JBoss JBPM SVN: r3929 - jbpm3/trunk/modules/core/src/test/resources.
by do-not-reply@jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-02-18 12:18:53 -0500 (Wed, 18 Feb 2009)
New Revision: 3929
Modified:
jbpm3/trunk/modules/core/src/test/resources/log4j.xml
Log:
[JBPM-2043] Add jBPM performance test coverage
Modified: jbpm3/trunk/modules/core/src/test/resources/log4j.xml
===================================================================
--- jbpm3/trunk/modules/core/src/test/resources/log4j.xml 2009-02-18 16:44:48 UTC (rev 3928)
+++ jbpm3/trunk/modules/core/src/test/resources/log4j.xml 2009-02-18 17:18:53 UTC (rev 3929)
@@ -47,10 +47,11 @@
<priority value="ERROR" />
</category>
- <!-- show SQL DML statements as they are executed -->
+ <!-- show SQL DML statements as they are executed
<category name="org.hibernate.SQL">
<priority value="DEBUG" />
</category>
+ -->
<!-- show JDBC parameters
<category name="org.hibernate.type">
17 years, 2 months
JBoss JBPM SVN: r3928 - jbpm3/tags/jbpm-3.2.5.SP1/modules/core/src/test/java/org/jbpm/perf.
by do-not-reply@jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2009-02-18 11:44:48 -0500 (Wed, 18 Feb 2009)
New Revision: 3928
Removed:
jbpm3/tags/jbpm-3.2.5.SP1/modules/core/src/test/java/org/jbpm/perf/AsyncCallTest.java
Log:
Rollback -r3913:3818 - NEVER COMMIT ON A TAG
Deleted: jbpm3/tags/jbpm-3.2.5.SP1/modules/core/src/test/java/org/jbpm/perf/AsyncCallTest.java
===================================================================
--- jbpm3/tags/jbpm-3.2.5.SP1/modules/core/src/test/java/org/jbpm/perf/AsyncCallTest.java 2009-02-18 15:13:34 UTC (rev 3927)
+++ jbpm3/tags/jbpm-3.2.5.SP1/modules/core/src/test/java/org/jbpm/perf/AsyncCallTest.java 2009-02-18 16:44:48 UTC (rev 3928)
@@ -1,101 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jbpm.perf;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.jbpm.command.CommandService;
-import org.jbpm.command.StartProcessInstanceCommand;
-import org.jbpm.command.impl.CommandServiceImpl;
-import org.jbpm.db.AbstractDbTestCase;
-import org.jbpm.graph.def.ActionHandler;
-import org.jbpm.graph.def.ProcessDefinition;
-import org.jbpm.graph.exe.ExecutionContext;
-import org.jbpm.graph.exe.ProcessInstance;
-
-/**
- * This tests creates 10000 process instances. Every instance has an async call
- * to the test class. See JIRA bugs SOA-1175 and JBPM-2043.
- *
- * @author mvecera(a)redhat.com, pmacik(a)redhat.com
- */
-public class AsyncCallTest extends AbstractDbTestCase implements ActionHandler {
- private static final Log log = LogFactory.getLog(AsyncCallTest.class);
- private static final long serialVersionUID = -2962894670623757448L;
- private CommandService commandService = new CommandServiceImpl(getJbpmConfiguration());
- private static final int INSTANCES = 10000;
- ProcessDefinition processDefinition;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- createSchema();
- processDefinition = ProcessDefinition.parseXmlString(
- "<process-definition xmlns=\"urn:jbpm.org:jpdl-3.1\" name=\"processDefinition1\">" +
- "<start-state name=\"start\">" +
- "<transition name=\"to_state\" to=\"end\">" +
- "<action class=\"org.jbpm.perf.AsyncCallTest\" />" +
- "</transition>" +
- "</start-state>" +
- "<end-state name=\"end\">" +
- "</end-state>" +
- "</process-definition>");
- saveAndReload(processDefinition);
- }
-
- @Override
- protected void tearDown() throws Exception {
- beginSessionTransaction();
- jbpmContext.getGraphSession().deleteProcessDefinition(processDefinition.getId());
- super.tearDown();
- }
-
- public void testAsyncCall() {
- log.info("");
- log.info("=== EXECUTING PERFORMANCE TEST ================================================");
- log.info("");
-
- long start = System.currentTimeMillis();
-
- commitAndCloseSession();
- startJobExecutor();
-
- for (int i = 0; i < INSTANCES; i++) {
- beginSessionTransaction();
- StartProcessInstanceCommand startCommand = new StartProcessInstanceCommand();
- startCommand.setProcessDefinitionId(processDefinition.getId());
- startCommand.setProcessDefinitionName("processDefinition1");
- ProcessInstance pi = (ProcessInstance) commandService.execute(startCommand);
- commitAndCloseSession();
- }
-
- stopJobExecutor();
-
- long stop = System.currentTimeMillis();
- log.info("=== TEST FINISHED PROCESSING " + INSTANCES + " INSTANCES IN " + (stop - start) + " MILLIS ===");
- log.info("=== THIS IS " + INSTANCES / ((double) (stop - start) / 1000) + " PROCESSES PER SECOND ===");
- }
-
- public void execute(ExecutionContext executionContext) throws Exception {
- // no-op
- }
-}
17 years, 2 months
JBoss JBPM SVN: r3927 - in jbpm4/trunk: modules/integration/jboss5 and 1 other directories.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-02-18 10:13:34 -0500 (Wed, 18 Feb 2009)
New Revision: 3927
Modified:
jbpm4/trunk/hudson/
jbpm4/trunk/modules/integration/jboss5/
jbpm4/trunk/modules/integration/spi/
Log:
adding svn-ignores
Property changes on: jbpm4/trunk/hudson
___________________________________________________________________
Name: svn:ignore
- *.iml
+ *.iml
ant.properties
target
Property changes on: jbpm4/trunk/modules/integration/jboss5
___________________________________________________________________
Name: svn:ignore
+ target
Property changes on: jbpm4/trunk/modules/integration/spi
___________________________________________________________________
Name: svn:ignore
+ target
17 years, 2 months
JBoss JBPM SVN: r3926 - jbpm4/trunk/hudson.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-02-18 10:12:18 -0500 (Wed, 18 Feb 2009)
New Revision: 3926
Modified:
jbpm4/trunk/hudson/ant.properties.example
jbpm4/trunk/hudson/build.xml
Log:
made catalina.executable configurable in the hudson ant scripts to add support for windows
Modified: jbpm4/trunk/hudson/ant.properties.example
===================================================================
--- jbpm4/trunk/hudson/ant.properties.example 2009-02-18 14:16:55 UTC (rev 3925)
+++ jbpm4/trunk/hudson/ant.properties.example 2009-02-18 15:12:18 UTC (rev 3926)
@@ -18,6 +18,8 @@
hudson.username=changeme
hudson.password=changeme
+catalina.executable=catalina.sh
+
hudson.maven.path=/usr/java/apache-maven-2.0.9
hudson.root=/home/hudson/workspace
Modified: jbpm4/trunk/hudson/build.xml
===================================================================
--- jbpm4/trunk/hudson/build.xml 2009-02-18 14:16:55 UTC (rev 3925)
+++ jbpm4/trunk/hudson/build.xml 2009-02-18 15:12:18 UTC (rev 3926)
@@ -173,7 +173,7 @@
<target name="hudson-stop" depends="init-hudson" description="Stops the Hudson QA environment">
- <exec executable="${hudson.tomcat}/bin/catalina.sh" failonerror="true">
+ <exec executable="${hudson.tomcat}/bin/${catalina.executable}" failonerror="true">
<arg line="stop"/>
</exec>
@@ -191,7 +191,7 @@
<property environment="env"/>
<fail message="unset JBOSS_REPOSITORY=${env.JBOSS_REPOSITORY}" if="env.JBOSS_REPOSITORY"/>
- <exec executable="${hudson.tomcat}/bin/catalina.sh" failonerror="true" output="${hudson.target.dir}/hudson.log">
+ <exec executable="${hudson.tomcat}/bin/${catalina.executable}" failonerror="true" output="${hudson.target.dir}/hudson.log">
<env key="CATALINA_OPTS" value="-Xmx512m -Djava.awt.headless=true"/>
<arg line="start"/>
</exec>
17 years, 2 months
JBoss JBPM SVN: r3925 - jbpm4/trunk.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2009-02-18 09:16:55 -0500 (Wed, 18 Feb 2009)
New Revision: 3925
Modified:
jbpm4/trunk/profiles.xml.example
Log:
Oracle uses XE as default DB in express edition
Modified: jbpm4/trunk/profiles.xml.example
===================================================================
--- jbpm4/trunk/profiles.xml.example 2009-02-18 14:15:31 UTC (rev 3924)
+++ jbpm4/trunk/profiles.xml.example 2009-02-18 14:16:55 UTC (rev 3925)
@@ -59,9 +59,9 @@
<jdbc.oracle.server>localhost</jdbc.oracle.server>
<jdbc.oracle.port>1521</jdbc.oracle.port>
- <jdbc.oracle.database>jbpm4</jdbc.oracle.database>
+ <jdbc.oracle.database>XE</jdbc.oracle.database>
<jdbc.oracle.username>jbpmtest</jdbc.oracle.username>
- <jdbc.oracle.password></jdbc.oracle.password>
+ <jdbc.oracle.password>jbpmtest</jdbc.oracle.password>
<jdbc.oracle.url>jdbc:oracle:thin:${jdbc.oracle.username}/${jdbc.oracle.password}@${jdbc.oracle.server}:${jdbc.oracle.port}:${jdbc.oracle.database}</jdbc.oracle.url>
</properties>
</profile>
17 years, 2 months
JBoss JBPM SVN: r3924 - in jbpm4/trunk/modules: distro and 1 other directory.
by do-not-reply@jboss.org
Author: tom.baeyens(a)jboss.com
Date: 2009-02-18 09:15:31 -0500 (Wed, 18 Feb 2009)
New Revision: 3924
Removed:
jbpm4/trunk/modules/task/
Modified:
jbpm4/trunk/modules/distro/assembly-distro-package.xml
jbpm4/trunk/modules/distro/assembly-jbpm-single-jar.xml
Log:
JBPM-2041 deleted task module leftovers
Modified: jbpm4/trunk/modules/distro/assembly-distro-package.xml
===================================================================
--- jbpm4/trunk/modules/distro/assembly-distro-package.xml 2009-02-18 14:15:28 UTC (rev 3923)
+++ jbpm4/trunk/modules/distro/assembly-distro-package.xml 2009-02-18 14:15:31 UTC (rev 3924)
@@ -111,14 +111,6 @@
<outputDirectory>src</outputDirectory>
</fileSet>
<fileSet>
- <directory>../task/src/main/java</directory>
- <outputDirectory>src</outputDirectory>
- </fileSet>
- <fileSet>
- <directory>../task/src/main/resources</directory>
- <outputDirectory>src</outputDirectory>
- </fileSet>
- <fileSet>
<directory>../test-base/src/main/java</directory>
<outputDirectory>src</outputDirectory>
</fileSet>
Modified: jbpm4/trunk/modules/distro/assembly-jbpm-single-jar.xml
===================================================================
--- jbpm4/trunk/modules/distro/assembly-jbpm-single-jar.xml 2009-02-18 14:15:28 UTC (rev 3923)
+++ jbpm4/trunk/modules/distro/assembly-jbpm-single-jar.xml 2009-02-18 14:15:31 UTC (rev 3924)
@@ -37,13 +37,6 @@
</dependencySet>
<dependencySet>
<includes>
- <include>org.jbpm.jbpm4:jbpm-task</include>
- </includes>
- <unpack>true</unpack>
- <outputDirectory></outputDirectory>
- </dependencySet>
- <dependencySet>
- <includes>
<include>org.jbpm.jbpm4:jbpm-test-base</include>
</includes>
<unpack>true</unpack>
17 years, 2 months
JBoss JBPM SVN: r3923 - jbpm4/trunk/hudson.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2009-02-18 09:15:28 -0500 (Wed, 18 Feb 2009)
New Revision: 3923
Modified:
jbpm4/trunk/hudson/profiles.xml.local.qa
Log:
Oracle uses XE as default DB in express edition
Modified: jbpm4/trunk/hudson/profiles.xml.local.qa
===================================================================
--- jbpm4/trunk/hudson/profiles.xml.local.qa 2009-02-18 14:12:14 UTC (rev 3922)
+++ jbpm4/trunk/hudson/profiles.xml.local.qa 2009-02-18 14:15:28 UTC (rev 3923)
@@ -59,7 +59,7 @@
<jdbc.oracle.server>localhost</jdbc.oracle.server>
<jdbc.oracle.port>1521</jdbc.oracle.port>
- <jdbc.oracle.database>jbpm4</jdbc.oracle.database>
+ <jdbc.oracle.database>XE</jdbc.oracle.database>
<jdbc.oracle.username>jbpmtest</jdbc.oracle.username>
<jdbc.oracle.password>jbpmtest</jdbc.oracle.password>
<jdbc.oracle.url>jdbc:oracle:thin:${jdbc.oracle.username}/${jdbc.oracle.password}@${jdbc.oracle.server}:${jdbc.oracle.port}:${jdbc.oracle.database}</jdbc.oracle.url>
17 years, 2 months
JBoss JBPM SVN: r3922 - jbpm4/trunk/hudson.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2009-02-18 09:12:14 -0500 (Wed, 18 Feb 2009)
New Revision: 3922
Modified:
jbpm4/trunk/hudson/profiles.xml.local.qa
Log:
added oracle connection props
Modified: jbpm4/trunk/hudson/profiles.xml.local.qa
===================================================================
--- jbpm4/trunk/hudson/profiles.xml.local.qa 2009-02-18 12:35:13 UTC (rev 3921)
+++ jbpm4/trunk/hudson/profiles.xml.local.qa 2009-02-18 14:12:14 UTC (rev 3922)
@@ -61,7 +61,7 @@
<jdbc.oracle.port>1521</jdbc.oracle.port>
<jdbc.oracle.database>jbpm4</jdbc.oracle.database>
<jdbc.oracle.username>jbpmtest</jdbc.oracle.username>
- <jdbc.oracle.password></jdbc.oracle.password>
+ <jdbc.oracle.password>jbpmtest</jdbc.oracle.password>
<jdbc.oracle.url>jdbc:oracle:thin:${jdbc.oracle.username}/${jdbc.oracle.password}@${jdbc.oracle.server}:${jdbc.oracle.port}:${jdbc.oracle.database}</jdbc.oracle.url>
</properties>
17 years, 2 months
JBoss JBPM SVN: r3921 - jbpm4/trunk.
by do-not-reply@jboss.org
Author: heiko.braun(a)jboss.com
Date: 2009-02-18 07:35:13 -0500 (Wed, 18 Feb 2009)
New Revision: 3921
Modified:
jbpm4/trunk/pom.xml
Log:
Include modules/integration into reactor run
Modified: jbpm4/trunk/pom.xml
===================================================================
--- jbpm4/trunk/pom.xml 2009-02-18 12:29:48 UTC (rev 3920)
+++ jbpm4/trunk/pom.xml 2009-02-18 12:35:13 UTC (rev 3921)
@@ -37,6 +37,7 @@
<module>modules/examples</module>
<module>modules/jpdl</module>
<module>modules/enterprise</module>
+ <module>modules/integration</module>
<module>modules/test-base</module>
<module>modules/test-db</module>
<module>modules/test-pojo</module>
17 years, 2 months