Browse Source

[ci fw-only Java/act] Act Updates test - now batch update in single transaction (#3269)

* add act-ebean-pgsql-rythm to compare rythm vs mustache template engine

* [ci fw-only Java/act] updates test - now batch updates in single transaction
Green Luo 7 years ago
parent
commit
18662a4d9b
20 changed files with 74 additions and 303 deletions
  1. 20 20
      frameworks/Java/act/README.md
  2. 2 2
      frameworks/Java/act/pom.xml
  3. 3 1
      frameworks/Java/act/setup-hibernate-pgsql.sh
  4. 3 1
      frameworks/Java/act/setup-morphia-mongo.sh
  5. 14 20
      frameworks/Java/act/src/main/java/com/techempower/act/controller/WorldController.java
  6. 21 0
      frameworks/Java/act/src/main/resources/conf/db.properties
  7. 0 21
      frameworks/Java/act/src/main/resources/conf/ebean_mysql/db.properties
  8. 0 21
      frameworks/Java/act/src/main/resources/conf/ebean_mysql_rythm/db.properties
  9. 3 23
      frameworks/Java/act/src/main/resources/conf/ebean_pgsql/db.properties
  10. 0 20
      frameworks/Java/act/src/main/resources/conf/ebean_pgsql_rythm/db.properties
  11. 0 21
      frameworks/Java/act/src/main/resources/conf/eclipselink_mysql/db.properties
  12. 0 21
      frameworks/Java/act/src/main/resources/conf/eclipselink_mysql_rythm/db.properties
  13. 2 22
      frameworks/Java/act/src/main/resources/conf/eclipselink_pgsql/db.properties
  14. 0 20
      frameworks/Java/act/src/main/resources/conf/eclipselink_pgsql_rythm/db.properties
  15. 0 21
      frameworks/Java/act/src/main/resources/conf/hibernate_mysql/db.properties
  16. 0 21
      frameworks/Java/act/src/main/resources/conf/hibernate_mysql_rythm/db.properties
  17. 2 22
      frameworks/Java/act/src/main/resources/conf/hibernate_pgsql/db.properties
  18. 0 20
      frameworks/Java/act/src/main/resources/conf/hibernate_pgsql_rythm/db.properties
  19. 3 1
      frameworks/Java/act/src/main/resources/conf/mongo/db.properties
  20. 1 5
      frameworks/Java/act/src/main/resources/logback.xml

+ 20 - 20
frameworks/Java/act/README.md

@@ -28,53 +28,53 @@ This is using [ActFramework 1.7.0-teb-SNAPSHOT](http://actframework.org) to buil
 | ---- | ---------: |
 | ---- | ---------: |
 | db | 32303.52 |
 | db | 32303.52 |
 | multiple queries (20) | 3268.78 |
 | multiple queries (20) | 3268.78 |
-| updates (20) | 865 |
+| updates (20) | 162.43 |
 | fortunes | 27560 |
 | fortunes | 27560 |
 
 
 ### MySQL - JPA/Hibernate
 ### MySQL - JPA/Hibernate
 
 
 | Test | Throughput |
 | Test | Throughput |
 | ---- | ----------: |
 | ---- | ----------: |
-| db | 39588.35 |
-| multiple queries (20) | 2518.09 |
-| updates (20) | 929.35 |
-| fortunes | 33314.78 |
+| db | 18545.35 |
+| multiple queries (20) | 1082.51 |
+| updates (20) | 1070.53 |
+| fortunes | 18487.09 |
 
 
 ### Postgresql- JPA/Hibernate
 ### Postgresql- JPA/Hibernate
 
 
 | Test | Throughput |
 | Test | Throughput |
 | ---- | ---------: |
 | ---- | ---------: |
-| db | 41079.85 |
-| multiple queries (20) | 3030.14 |
-| updates (20) | 21.59 |
-| fortunes | 32490.22 |
+| db | 30873.39 |
+| multiple queries (20) | 1879.24 |
+| updates (20) | 220.74 |
+| fortunes | 20104.87 |
 
 
 ### MySQL - JPA/EclipseLink
 ### MySQL - JPA/EclipseLink
 
 
 | Test | Throughput |
 | Test | Throughput |
 | ---- | ----------: |
 | ---- | ----------: |
-| db | 20134.12 |
-| multiple queries (20) | 1187.38 |
-| updates (20) | 560.91 |
-| fortunes | 20334.32 |
+| db | 20312.97 |
+| multiple queries (20) | 1164.44 |
+| updates (20) | 932.74 |
+| fortunes | 19784.83 |
 
 
 ### Postgresql- JPA/EclipseLink
 ### Postgresql- JPA/EclipseLink
 
 
 | Test | Throughput |
 | Test | Throughput |
 | ---- | ---------: |
 | ---- | ---------: |
-| db | 31906.95 |
-| multiple queries (20) | 1935 |
-| updates (20) | 650.98 |
-| fortunes | 19764.26 |
+| db | 30476.38 |
+| multiple queries (20) | 1887.21 |
+| updates (20) | 1420.72 |
+| fortunes | 20863.74 |
 
 
 ### Mongodb
 ### Mongodb
 
 
 | Test | Throughput |
 | Test | Throughput |
 | ---- | ---------: |
 | ---- | ---------: |
-| db | 33595.57 |
-| multiple queries (20) | 2197.53 |
+| db | 29527.92 |
+| multiple queries (20) | 1935.13 |
 | updates (20) | 1039.60 |
 | updates (20) | 1039.60 |
-| fortunes | 24301.25 |
+| fortunes | 18174.70 |
 
 
 ## SQL database test results comparing
 ## SQL database test results comparing
 
 

+ 2 - 2
frameworks/Java/act/pom.xml

@@ -42,8 +42,8 @@
   <properties>
   <properties>
     <java.version>1.8</java.version>
     <java.version>1.8</java.version>
     <HikariCP.version>2.7.3</HikariCP.version>
     <HikariCP.version>2.7.3</HikariCP.version>
-    <mysql.version>5.1.44</mysql.version>
-    <postgres-jdbc.version>42.1.4</postgres-jdbc.version>
+    <mysql.version>5.1.45</mysql.version>
+    <postgres-jdbc.version>42.2.1</postgres-jdbc.version>
     <morphia.version>1.3.2</morphia.version>
     <morphia.version>1.3.2</morphia.version>
     <ebean.version>11.9.1</ebean.version>
     <ebean.version>11.9.1</ebean.version>
     <act-sql-common.version>1.3.0-teb-SNAPSHOT</act-sql-common.version>
     <act-sql-common.version>1.3.0-teb-SNAPSHOT</act-sql-common.version>

+ 3 - 1
frameworks/Java/act/setup-hibernate-pgsql.sh

@@ -21,4 +21,6 @@ echo
 
 
 JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -Xms1G -Xmx1G -Xss320k -XX:+UseNUMA -XX:+UseParallelGC -XX:+AggressiveOpts"
 JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -Xms1G -Xmx1G -Xss320k -XX:+UseNUMA -XX:+UseParallelGC -XX:+AggressiveOpts"
 
 
-java -server $JAVA_OPTS -Dapp.mode=prod -Dapp.nodeGroup=$GROUP -Dprofile=hibernate_pgsql -Dxio.worker_threads.max=256 -Dpgsql.host=${DBHOST} -cp "$CP" $APP_ENTRY 
+#java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -server $JAVA_OPTS -Dapp.mode=prod -Dapp.nodeGroup=$GROUP -Dprofile=hibernate_pgsql -Dxio.worker_threads.max=256 -Dpgsql.host=${DBHOST} -cp "$CP" $APP_ENTRY
+
+java -server $JAVA_OPTS -Dapp.mode=prod -Dapp.nodeGroup=$GROUP -Dprofile=hibernate_pgsql -Dxio.worker_threads.max=256 -Dpgsql.host=${DBHOST} -cp "$CP" $APP_ENTRY

+ 3 - 1
frameworks/Java/act/setup-morphia-mongo.sh

@@ -21,4 +21,6 @@ echo
 
 
 JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -Xms1G -Xmx1G -Xss320k -XX:+UseNUMA -XX:+UseParallelGC -XX:+AggressiveOpts"
 JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -Xms1G -Xmx1G -Xss320k -XX:+UseNUMA -XX:+UseParallelGC -XX:+AggressiveOpts"
 
 
-java -server $JAVA_OPTS -Dapp.mode=prod -Dapp.nodeGroup=$GROUP -Dprofile=mongo -Dxio.worker_threads.max=256 -Dmongo.host=${DBHOST} -cp "$CP" $APP_ENTRY 
+#java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -server $JAVA_OPTS -Dapp.mode=prod -Dapp.nodeGroup=$GROUP -Dprofile=mongo -Dxio.worker_threads.max=256 -Dmongo.host=${DBHOST} -cp "$CP" $APP_ENTRY
+
+java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -server $JAVA_OPTS -Dapp.mode=prod -Dapp.nodeGroup=$GROUP -Dprofile=mongo -Dxio.worker_threads.max=256 -Dmongo.host=${DBHOST} -cp "$CP" $APP_ENTRY

+ 14 - 20
frameworks/Java/act/src/main/java/com/techempower/act/controller/WorldController.java

@@ -31,12 +31,10 @@ import act.util.Global;
 import com.alibaba.fastjson.serializer.SerializerFeature;
 import com.alibaba.fastjson.serializer.SerializerFeature;
 import com.techempower.act.AppEntry;
 import com.techempower.act.AppEntry;
 import com.techempower.act.model.World;
 import com.techempower.act.model.World;
-import org.osgl.$;
 import org.osgl.http.H;
 import org.osgl.http.H;
 import org.osgl.mvc.annotation.GetAction;
 import org.osgl.mvc.annotation.GetAction;
 import org.osgl.mvc.annotation.ResponseContentType;
 import org.osgl.mvc.annotation.ResponseContentType;
 import org.osgl.mvc.annotation.SessionFree;
 import org.osgl.mvc.annotation.SessionFree;
-import org.osgl.util.Const;
 
 
 import java.util.ArrayList;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.List;
@@ -48,17 +46,13 @@ import javax.inject.Inject;
 @ResponseContentType(H.MediaType.JSON)
 @ResponseContentType(H.MediaType.JSON)
 public class WorldController {
 public class WorldController {
 
 
-    /**
-     * This constant will get populated with the value set in
-     * `app.world.max_row` configuration item
-     */
-    private static final Const<Integer> WORLD_MAX_ROW = $.constant();
+    private static boolean BATCH_SAVE;
 
 
     /**
     /**
      * This constant will get populated with the value set in
      * This constant will get populated with the value set in
-     * `app.world.batch_save` configuration item
+     * `app.world.max_row` configuration item
      */
      */
-    private static final Const<Boolean> WORLD_BATCH_SAVE = $.constant(false);
+    private static int WORLD_MAX_ROW = 10000;
 
 
     @Global
     @Global
     @Inject
     @Inject
@@ -92,31 +86,31 @@ public class WorldController {
         return doUpdate(q);
         return doUpdate(q);
     }
     }
 
 
+    @Transactional
     private List<World> doUpdate(int q) {
     private List<World> doUpdate(int q) {
         List<World> retVal = new ArrayList<>(q);
         List<World> retVal = new ArrayList<>(q);
-        boolean batchSave = WORLD_BATCH_SAVE.get();
         for (int i = 0; i < q; ++i) {
         for (int i = 0; i < q; ++i) {
-            retVal.add(findAndModifyOne(!batchSave));
+            retVal.add(findAndModifyOne());
         }
         }
-        if (WORLD_BATCH_SAVE.get()) {
-            dao.save(retVal);
+        if (BATCH_SAVE) {
+            batchUpdate(retVal);
         }
         }
         return retVal;
         return retVal;
     }
     }
 
 
-    @Transactional
-    private World findAndModifyOne(boolean save) {
+    private void batchUpdate(List<World> worlds) {
+        dao.save(worlds);
+    }
+
+    private World findAndModifyOne() {
         World world = findOne();
         World world = findOne();
         notFoundIfNull(world);
         notFoundIfNull(world);
         world.randomNumber = randomWorldNumber();
         world.randomNumber = randomWorldNumber();
-        if (save) {
-            dao.save(world);
-        }
-        return world;
+        return BATCH_SAVE ? world : dao.save(world);
     }
     }
 
 
     private static int randomWorldNumber() {
     private static int randomWorldNumber() {
-        return ThreadLocalRandom.current().nextInt(WORLD_MAX_ROW.get()) + 1;
+        return ThreadLocalRandom.current().nextInt(WORLD_MAX_ROW) + 1;
     }
     }
 
 
     private static int regulateQueries(String param) {
     private static int regulateQueries(String param) {

+ 21 - 0
frameworks/Java/act/src/main/resources/conf/db.properties

@@ -0,0 +1,21 @@
+db.username=benchmarkdbuser
+db.password=benchmarkdbpass
+db.isolationLevel=1
+db.maxConnections=256
+db.minConnections=128
+db.poolServerPrepStmts=true
+db.autoCommit=false
+db.prepStmtCacheSqlLimit=2048
+db.prepStmtCacheSize=4096
+#db.alwaysSendSetIsolation=false
+db.cacheCallableStmts=true
+db.cachePrepStmts=true
+db.useLocalSessionState=true
+db.jdbcCompliantTruncation=false
+db.elideSetAutoCommits=true
+db.zeroDateTimeBehavior=convertToNull
+db.traceProtocol=false
+#db.useUnbufferedInput=false
+#db.useReadAheadInput=false
+db.maintainTimeStats=false
+db.cacheRSMetadata=true

+ 0 - 21
frameworks/Java/act/src/main/resources/conf/ebean_mysql/db.properties

@@ -4,24 +4,3 @@ app.batch_save=false
 
 
 db.impl=act.db.ebean2.EbeanPlugin
 db.impl=act.db.ebean2.EbeanPlugin
 db.url=jdbc:mysql://${mysql.host}:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts=true&cacheRSMetadata=true&serverTimezone=UTC&useSSL=false
 db.url=jdbc:mysql://${mysql.host}:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts=true&cacheRSMetadata=true&serverTimezone=UTC&useSSL=false
-db.username=benchmarkdbuser
-db.password=benchmarkdbpass
-db.isolationLevel=2
-db.maxConnections=256
-db.minConnections=128
-db.poolServerPrepStmts=true
-db.autoCommit=false
-db.prepStmtCacheSqlLimit=2048
-db.prepStmtCacheSize=4096
-db.alwaysSendSetIsolation=false
-db.cacheCallableStmts=true
-db.cachePrepStmts=true
-db.useLocalSessionState=true
-db.jdbcCompliantTruncation=false
-db.elideSetAutoCommits=true
-db.zeroDateTimeBehavior=convertToNull
-db.traceProtocol=false
-db.useUnbufferedInput=false
-db.useReadAheadInput=false
-db.maintainTimeStats=false
-db.cacheRSMetadata=true

+ 0 - 21
frameworks/Java/act/src/main/resources/conf/ebean_mysql_rythm/db.properties

@@ -4,24 +4,3 @@ app.batch_save=false
 
 
 db.impl=act.db.ebean2.EbeanPlugin
 db.impl=act.db.ebean2.EbeanPlugin
 db.url=jdbc:mysql://${mysql.host}:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts=true&cacheRSMetadata=true&serverTimezone=UTC&useSSL=false
 db.url=jdbc:mysql://${mysql.host}:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts=true&cacheRSMetadata=true&serverTimezone=UTC&useSSL=false
-db.username=benchmarkdbuser
-db.password=benchmarkdbpass
-db.isolationLevel=2
-db.maxConnections=256
-db.minConnections=128
-db.poolServerPrepStmts=true
-db.autoCommit=false
-db.prepStmtCacheSqlLimit=2048
-db.prepStmtCacheSize=4096
-db.alwaysSendSetIsolation=false
-db.cacheCallableStmts=true
-db.cachePrepStmts=true
-db.useLocalSessionState=true
-db.jdbcCompliantTruncation=false
-db.elideSetAutoCommits=true
-db.zeroDateTimeBehavior=convertToNull
-db.traceProtocol=false
-db.useUnbufferedInput=false
-db.useReadAheadInput=false
-db.maintainTimeStats=false
-db.cacheRSMetadata=true

+ 3 - 23
frameworks/Java/act/src/main/resources/conf/ebean_pgsql/db.properties

@@ -1,26 +1,6 @@
 pgsql.host=localhost
 pgsql.host=localhost
 
 
-app.batch.save=false
-
 db.impl=act.db.ebean2.EbeanPlugin
 db.impl=act.db.ebean2.EbeanPlugin
-db.url=jdbc:postgresql://${pgsql.host}:5432/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true
-db.username=benchmarkdbuser
-db.password=benchmarkdbpass
-db.isolationLevel=2
-db.maxConnections=256
-db.minConnections=128
-db.autoCommit=false
-db.prepStmtCacheSqlLimit=2048
-db.prepStmtCacheSize=4096
-db.alwaysSendSetIsolation=false
-db.cacheCallableStmts=true
-db.cachePrepStmts=true
-db.useLocalSessionState=true
-db.jdbcCompliantTruncation=false
-db.elideSetAutoCommits=true
-db.zeroDateTimeBehavior=convertToNull
-db.traceProtocol=false
-db.useUnbufferedInput=false
-db.useReadAheadInput=false
-db.maintainTimeStats=false
-db.cacheRSMetadata=true
+db.url=jdbc:postgresql://${pgsql.host}:5432/hello_world?loggerLevel=OFF
+db.isolationLevel=4
+app.batch.save=true

+ 0 - 20
frameworks/Java/act/src/main/resources/conf/ebean_pgsql_rythm/db.properties

@@ -4,23 +4,3 @@ app.batch.save=false
 
 
 db.impl=act.db.ebean2.EbeanPlugin
 db.impl=act.db.ebean2.EbeanPlugin
 db.url=jdbc:postgresql://${pgsql.host}:5432/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true
 db.url=jdbc:postgresql://${pgsql.host}:5432/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true
-db.username=benchmarkdbuser
-db.password=benchmarkdbpass
-db.isolationLevel=2
-db.maxConnections=256
-db.minConnections=128
-db.autoCommit=false
-db.prepStmtCacheSqlLimit=2048
-db.prepStmtCacheSize=4096
-db.alwaysSendSetIsolation=false
-db.cacheCallableStmts=true
-db.cachePrepStmts=true
-db.useLocalSessionState=true
-db.jdbcCompliantTruncation=false
-db.elideSetAutoCommits=true
-db.zeroDateTimeBehavior=convertToNull
-db.traceProtocol=false
-db.useUnbufferedInput=false
-db.useReadAheadInput=false
-db.maintainTimeStats=false
-db.cacheRSMetadata=true

+ 0 - 21
frameworks/Java/act/src/main/resources/conf/eclipselink_mysql/db.properties

@@ -4,25 +4,4 @@ app.batch_save=false
 
 
 db.impl=act.db.eclipselink.EclipseLinkPlugin
 db.impl=act.db.eclipselink.EclipseLinkPlugin
 db.url=jdbc:mysql://${mysql.host}:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts=true&cacheRSMetadata=true&serverTimezone=UTC&useSSL=false
 db.url=jdbc:mysql://${mysql.host}:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts=true&cacheRSMetadata=true&serverTimezone=UTC&useSSL=false
-db.username=benchmarkdbuser
-db.password=benchmarkdbpass
-db.isolationLevel=2
-db.maxConnections=256
-db.minConnections=128
-db.poolServerPrepStmts=true
-db.autoCommit=false
-db.prepStmtCacheSqlLimit=2048
-db.prepStmtCacheSize=4096
-db.alwaysSendSetIsolation=false
-db.cacheCallableStmts=true
-db.cachePrepStmts=true
-db.useLocalSessionState=true
-db.jdbcCompliantTruncation=false
-db.elideSetAutoCommits=true
-db.zeroDateTimeBehavior=convertToNull
-db.traceProtocol=false
-db.useUnbufferedInput=false
-db.useReadAheadInput=false
-db.maintainTimeStats=false
-db.cacheRSMetadata=true
 db.eclipselink.cache.shared.default=false
 db.eclipselink.cache.shared.default=false

+ 0 - 21
frameworks/Java/act/src/main/resources/conf/eclipselink_mysql_rythm/db.properties

@@ -4,25 +4,4 @@ app.batch_save=false
 
 
 db.impl=act.db.eclipselink.EclipseLinkPlugin
 db.impl=act.db.eclipselink.EclipseLinkPlugin
 db.url=jdbc:mysql://${mysql.host}:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts=true&cacheRSMetadata=true&serverTimezone=UTC&useSSL=false
 db.url=jdbc:mysql://${mysql.host}:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts=true&cacheRSMetadata=true&serverTimezone=UTC&useSSL=false
-db.username=benchmarkdbuser
-db.password=benchmarkdbpass
-db.isolationLevel=2
-db.maxConnections=256
-db.minConnections=128
-db.poolServerPrepStmts=true
-db.autoCommit=false
-db.prepStmtCacheSqlLimit=2048
-db.prepStmtCacheSize=4096
-db.alwaysSendSetIsolation=false
-db.cacheCallableStmts=true
-db.cachePrepStmts=true
-db.useLocalSessionState=true
-db.jdbcCompliantTruncation=false
-db.elideSetAutoCommits=true
-db.zeroDateTimeBehavior=convertToNull
-db.traceProtocol=false
-db.useUnbufferedInput=false
-db.useReadAheadInput=false
-db.maintainTimeStats=false
-db.cacheRSMetadata=true
 db.eclipselink.cache.shared.default=false
 db.eclipselink.cache.shared.default=false

+ 2 - 22
frameworks/Java/act/src/main/resources/conf/eclipselink_pgsql/db.properties

@@ -3,25 +3,5 @@ pgsql.host=localhost
 app.batch.save=false
 app.batch.save=false
 
 
 db.impl=act.db.eclipselink.EclipseLinkPlugin
 db.impl=act.db.eclipselink.EclipseLinkPlugin
-db.url=jdbc:postgresql://${pgsql.host}:5432/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true
-db.username=benchmarkdbuser
-db.password=benchmarkdbpass
-db.isolationLevel=2
-db.maxConnections=256
-db.minConnections=128
-db.autoCommit=false
-db.prepStmtCacheSqlLimit=2048
-db.prepStmtCacheSize=4096
-db.alwaysSendSetIsolation=false
-db.cacheCallableStmts=true
-db.cachePrepStmts=true
-db.useLocalSessionState=true
-db.jdbcCompliantTruncation=false
-db.elideSetAutoCommits=true
-db.zeroDateTimeBehavior=convertToNull
-db.traceProtocol=false
-db.useUnbufferedInput=false
-db.useReadAheadInput=false
-db.maintainTimeStats=false
-db.cacheRSMetadata=true
-db.eclipselink.cache.shared.default=false
+db.url=jdbc:postgresql://${pgsql.host}:5432/hello_world?logLevel=OFF
+db.eclipselink.cache.shared.default=false

+ 0 - 20
frameworks/Java/act/src/main/resources/conf/eclipselink_pgsql_rythm/db.properties

@@ -4,24 +4,4 @@ app.batch.save=false
 
 
 db.impl=act.db.eclipselink.EclipseLinkPlugin
 db.impl=act.db.eclipselink.EclipseLinkPlugin
 db.url=jdbc:postgresql://${pgsql.host}:5432/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true
 db.url=jdbc:postgresql://${pgsql.host}:5432/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true
-db.username=benchmarkdbuser
-db.password=benchmarkdbpass
-db.isolationLevel=2
-db.maxConnections=256
-db.minConnections=128
-db.autoCommit=false
-db.prepStmtCacheSqlLimit=2048
-db.prepStmtCacheSize=4096
-db.alwaysSendSetIsolation=false
-db.cacheCallableStmts=true
-db.cachePrepStmts=true
-db.useLocalSessionState=true
-db.jdbcCompliantTruncation=false
-db.elideSetAutoCommits=true
-db.zeroDateTimeBehavior=convertToNull
-db.traceProtocol=false
-db.useUnbufferedInput=false
-db.useReadAheadInput=false
-db.maintainTimeStats=false
-db.cacheRSMetadata=true
 db.eclipselink.cache.shared.default=false
 db.eclipselink.cache.shared.default=false

+ 0 - 21
frameworks/Java/act/src/main/resources/conf/hibernate_mysql/db.properties

@@ -4,24 +4,3 @@ app.batch_save=false
 
 
 db.impl=act.db.hibernate.HibernatePlugin
 db.impl=act.db.hibernate.HibernatePlugin
 db.url=jdbc:mysql://${mysql.host}:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts=true&cacheRSMetadata=true&serverTimezone=UTC&useSSL=false
 db.url=jdbc:mysql://${mysql.host}:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts=true&cacheRSMetadata=true&serverTimezone=UTC&useSSL=false
-db.username=benchmarkdbuser
-db.password=benchmarkdbpass
-db.isolationLevel=2
-db.maxConnections=256
-db.minConnections=128
-db.poolServerPrepStmts=true
-db.autoCommit=false
-db.prepStmtCacheSqlLimit=2048
-db.prepStmtCacheSize=4096
-db.alwaysSendSetIsolation=false
-db.cacheCallableStmts=true
-db.cachePrepStmts=true
-db.useLocalSessionState=true
-db.jdbcCompliantTruncation=false
-db.elideSetAutoCommits=true
-db.zeroDateTimeBehavior=convertToNull
-db.traceProtocol=false
-db.useUnbufferedInput=false
-db.useReadAheadInput=false
-db.maintainTimeStats=false
-db.cacheRSMetadata=true

+ 0 - 21
frameworks/Java/act/src/main/resources/conf/hibernate_mysql_rythm/db.properties

@@ -4,24 +4,3 @@ app.batch_save=false
 
 
 db.impl=act.db.hibernate.HibernatePlugin
 db.impl=act.db.hibernate.HibernatePlugin
 db.url=jdbc:mysql://${mysql.host}:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts=true&cacheRSMetadata=true&serverTimezone=UTC&useSSL=false
 db.url=jdbc:mysql://${mysql.host}:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts=true&cacheRSMetadata=true&serverTimezone=UTC&useSSL=false
-db.username=benchmarkdbuser
-db.password=benchmarkdbpass
-db.isolationLevel=2
-db.maxConnections=256
-db.minConnections=128
-db.poolServerPrepStmts=true
-db.autoCommit=false
-db.prepStmtCacheSqlLimit=2048
-db.prepStmtCacheSize=4096
-db.alwaysSendSetIsolation=false
-db.cacheCallableStmts=true
-db.cachePrepStmts=true
-db.useLocalSessionState=true
-db.jdbcCompliantTruncation=false
-db.elideSetAutoCommits=true
-db.zeroDateTimeBehavior=convertToNull
-db.traceProtocol=false
-db.useUnbufferedInput=false
-db.useReadAheadInput=false
-db.maintainTimeStats=false
-db.cacheRSMetadata=true

+ 2 - 22
frameworks/Java/act/src/main/resources/conf/hibernate_pgsql/db.properties

@@ -1,26 +1,6 @@
 pgsql.host=localhost
 pgsql.host=localhost
-
 app.batch.save=false
 app.batch.save=false
 
 
 db.impl=act.db.hibernate.HibernatePlugin
 db.impl=act.db.hibernate.HibernatePlugin
-db.url=jdbc:postgresql://${pgsql.host}:5432/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true
-db.username=benchmarkdbuser
-db.password=benchmarkdbpass
-db.isolationLevel=2
-db.maxConnections=256
-db.minConnections=128
-db.autoCommit=false
-db.prepStmtCacheSqlLimit=2048
-db.prepStmtCacheSize=4096
-db.alwaysSendSetIsolation=false
-db.cacheCallableStmts=true
-db.cachePrepStmts=true
-db.useLocalSessionState=true
-db.jdbcCompliantTruncation=false
-db.elideSetAutoCommits=true
-db.zeroDateTimeBehavior=convertToNull
-db.traceProtocol=false
-db.useUnbufferedInput=false
-db.useReadAheadInput=false
-db.maintainTimeStats=false
-db.cacheRSMetadata=true
+db.url=jdbc:postgresql://${pgsql.host}:5432/hello_world?loggerLevel=OFF
+db.isolationLevel=4

+ 0 - 20
frameworks/Java/act/src/main/resources/conf/hibernate_pgsql_rythm/db.properties

@@ -4,23 +4,3 @@ app.batch.save=false
 
 
 db.impl=act.db.hibernate.HibernatePlugin
 db.impl=act.db.hibernate.HibernatePlugin
 db.url=jdbc:postgresql://${pgsql.host}:5432/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true
 db.url=jdbc:postgresql://${pgsql.host}:5432/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true
-db.username=benchmarkdbuser
-db.password=benchmarkdbpass
-db.isolationLevel=2
-db.maxConnections=256
-db.minConnections=128
-db.autoCommit=false
-db.prepStmtCacheSqlLimit=2048
-db.prepStmtCacheSize=4096
-db.alwaysSendSetIsolation=false
-db.cacheCallableStmts=true
-db.cachePrepStmts=true
-db.useLocalSessionState=true
-db.jdbcCompliantTruncation=false
-db.elideSetAutoCommits=true
-db.zeroDateTimeBehavior=convertToNull
-db.traceProtocol=false
-db.useUnbufferedInput=false
-db.useReadAheadInput=false
-db.maintainTimeStats=false
-db.cacheRSMetadata=true

+ 3 - 1
frameworks/Java/act/src/main/resources/conf/mongo/db.properties

@@ -1,4 +1,6 @@
 mongo.host=localhost
 mongo.host=localhost
 
 
+app.batch.save=true
+
 db.impl=act.db.morphia.MorphiaPlugin
 db.impl=act.db.morphia.MorphiaPlugin
-db.uri=mongodb://${mongo.host}/hello_world?maxPoolSize=256
+db.uri=mongodb://${mongo.host}/hello_world?maxPoolSize=256&w=0

+ 1 - 5
frameworks/Java/act/src/main/resources/logback.xml

@@ -11,16 +11,12 @@
         </encoder>
         </encoder>
     </appender>
     </appender>
 
 
-    <logger name="act" level="ERROR" additivity="false">
-        <appender-ref ref="STDOUT" />
-    </logger>
-
     <logger name="metric" level="OFF">
     <logger name="metric" level="OFF">
         <appender-ref ref="STDOUT" />
         <appender-ref ref="STDOUT" />
     </logger>
     </logger>
 
 
     <!-- By default, the level of the root level is set to DEBUG -->
     <!-- By default, the level of the root level is set to DEBUG -->
-    <root level="ERROR">
+    <root level="OFF">
         <appender-ref ref="STDOUT" />
         <appender-ref ref="STDOUT" />
     </root>
     </root>
 </configuration>
 </configuration>