Skip to content

Commit

Permalink
JCR-2234: Make sure that the JDBC Cache store used by the LockManager…
Browse files Browse the repository at this point in the history
… is optimized and reliable (jcr-benchmark)
  • Loading branch information
Nicolas Filotto committed Nov 11, 2013
1 parent 51f4207 commit f1b4f10
Show file tree
Hide file tree
Showing 14 changed files with 127 additions and 792 deletions.
5 changes: 0 additions & 5 deletions Readme.txt
Expand Up @@ -2,8 +2,3 @@
2. Go to target\exo-jcr-benchmark-binary.dir\bin and run start-benchmark.cmd.
By default this benchmark is configured for pgsql DB.
Make sure you have configured mysql DB as in config\test-configuration-benchmark.xml.


The benchmark for Infinispan
1. Run "mvn clean install -Pispn" command.
2. Go to target\exo-jcr-benchmark-binary.dir\bin and run start-benchmark.cmd.
3 changes: 0 additions & 3 deletions assembly-descriptor.xml
Expand Up @@ -38,10 +38,7 @@
<unpack>false</unpack>
<scope>runtime</scope>
<excludes>
<exclude>xalan:xalan</exclude>
<exclude>xerces:xerces</exclude>
<exclude>xerces:xercesImpl</exclude>
<exclude>com.sun.xml.parsers:jaxp-ri</exclude>
</excludes>
</dependencySet>
</dependencySets>
Expand Down
4 changes: 2 additions & 2 deletions bin/64start-benchmark-linux-server.sh
@@ -1,2 +1,2 @@
/usr/lib/java6_x64/jre/bin/java -Xmx12g -Djava.net.preferIPv4Stack=true -Dlog4j.configuration=file:../config/log4j.properties -Duser.language=en -Dexo.jcr.allow.closed.session.usage=true -Duser.region=us -jar ../lib/exo-jcr-benchmark-1.16.0-Alpha3-SNAPSHOT.jar ../config/JCRAPI.xml -last -line
/usr/lib/java6_x64/jre/bin/java -cp ../lib/exo-jcr-benchmark-1.16.0-Alpha3-SNAPSHOT.jar org.exoplatform.jcr.benchmark.helpers.SimpleReportHelper
$JAVA_HOME/bin/java -Xmx12g -Djava.net.preferIPv4Stack=true -Dlog4j.configuration=file:../config/log4j.properties -Duser.language=en -Dexo.jcr.allow.closed.session.usage=true -Duser.region=us -jar ../lib/exo-jcr-benchmark-1.16.0-Alpha3-SNAPSHOT.jar ../config/JCRAPI.xml -last -line
$JAVA_HOME/bin/java -cp ../lib/exo-jcr-benchmark-1.16.0-Alpha3-SNAPSHOT.jar org.exoplatform.jcr.benchmark.helpers.SimpleReportHelper
341 changes: 15 additions & 326 deletions config/test-configuration-benchmark.xml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions config/test-infinispan-config.xml
Expand Up @@ -21,8 +21,8 @@
-->
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:5.1 http://www.infinispan.org/schemas/infinispan-config-5.1.xsd"
xmlns="urn:infinispan:config:5.1">
xsi:schemaLocation="urn:infinispan:config:5.2 http://www.infinispan.org/schemas/infinispan-config-5.2.xsd"
xmlns="urn:infinispan:config:5.2">

<global>
<evictionScheduledExecutor factory="org.infinispan.executors.DefaultScheduledExecutorFactory">
Expand Down
4 changes: 2 additions & 2 deletions config/test-infinispan-indexer.xml
Expand Up @@ -21,8 +21,8 @@
-->
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:5.1 http://www.infinispan.org/schemas/infinispan-config-5.1.xsd"
xmlns="urn:infinispan:config:5.1">
xsi:schemaLocation="urn:infinispan:config:5.2 http://www.infinispan.org/schemas/infinispan-config-5.2.xsd"
xmlns="urn:infinispan:config:5.2">

<global>
<evictionScheduledExecutor factory="org.infinispan.executors.DefaultScheduledExecutorFactory">
Expand Down
6 changes: 3 additions & 3 deletions config/test-infinispan-lock.xml
Expand Up @@ -21,8 +21,8 @@
-->
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:5.1 http://www.infinispan.org/schemas/infinispan-config-5.1.xsd"
xmlns="urn:infinispan:config:5.1">
xsi:schemaLocation="urn:infinispan:config:5.2 http://www.infinispan.org/schemas/infinispan-config-5.2.xsd"
xmlns="urn:infinispan:config:5.2">

<global>
<evictionScheduledExecutor factory="org.infinispan.executors.DefaultScheduledExecutorFactory">
Expand Down Expand Up @@ -52,7 +52,7 @@
<eviction strategy="NONE"/>

<loaders passivation="false" shared="true" preload="true">
<loader class="org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
<loader class="org.exoplatform.services.jcr.infinispan.JdbcStringBasedCacheStore" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
<properties>
<property name="stringsTableNamePrefix" value="${infinispan-cl-cache.jdbc.table.name}"/>
<property name="idColumnName" value="${infinispan-cl-cache.jdbc.id.column}"/>
Expand Down
21 changes: 0 additions & 21 deletions config/test-jbosscache-data.xml

This file was deleted.

13 changes: 0 additions & 13 deletions config/test-jbosscache-indexer.xml

This file was deleted.

37 changes: 0 additions & 37 deletions config/test-jbosscache-lock.xml

This file was deleted.

0 comments on commit f1b4f10

Please sign in to comment.