incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1034214 - in /incubator/lcf/trunk/modules/framework: core/src/main/java/org/apache/manifoldcf/core/database/ConnectionFactory.java jetty-example/properties.xml
Date Thu, 11 Nov 2010 23:48:58 GMT
Author: kwright
Date: Thu Nov 11 23:48:58 2010
New Revision: 1034214

URL: http://svn.apache.org/viewvc?rev=1034214&view=rev
Log:
Change the default database connection pool size to something less than postgresql's default,
and correspondingly include an example value that's much higher for Derby.

Modified:
    incubator/lcf/trunk/modules/framework/core/src/main/java/org/apache/manifoldcf/core/database/ConnectionFactory.java
    incubator/lcf/trunk/modules/framework/jetty-example/properties.xml

Modified: incubator/lcf/trunk/modules/framework/core/src/main/java/org/apache/manifoldcf/core/database/ConnectionFactory.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/core/src/main/java/org/apache/manifoldcf/core/database/ConnectionFactory.java?rev=1034214&r1=1034213&r2=1034214&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/core/src/main/java/org/apache/manifoldcf/core/database/ConnectionFactory.java
(original)
+++ incubator/lcf/trunk/modules/framework/core/src/main/java/org/apache/manifoldcf/core/database/ConnectionFactory.java
Thu Nov 11 23:48:58 2010
@@ -36,8 +36,8 @@ public class ConnectionFactory
 {
   public static final String _rcsid = "@(#)$Id: ConnectionFactory.java 988245 2010-08-23
18:39:35Z kwright $";
 
-
-  private static final int defaultMaxDBConnections = 200;
+  // This default is designed to avoid strange errors with people using postgresql out of
the box, where the maximum connection count is set to 100.
+  private static final int defaultMaxDBConnections = 50;
   private static final int defaultTimeoutValue = 86400;
 
   private static HashMap checkedOutConnections = new HashMap();

Modified: incubator/lcf/trunk/modules/framework/jetty-example/properties.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/jetty-example/properties.xml?rev=1034214&r1=1034213&r2=1034214&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/jetty-example/properties.xml (original)
+++ incubator/lcf/trunk/modules/framework/jetty-example/properties.xml Thu Nov 11 23:48:58
2010
@@ -20,6 +20,7 @@
   <!-- Select Derby as the database implementation, and specify where the database will
be stored -->
   <property name="org.apache.manifoldcf.databaseimplementationclass" value="org.apache.manifoldcf.core.database.DBInterfaceDerby"/>
   <property name="org.apache.manifoldcf.derbydatabasepath" value="."/>
+  <property name="org.apache.manifoldcf.database.maxhandles" value="100"/>
   <!-- Point to a specific logging file -->
   <property name="org.apache.manifoldcf.logconfigfile" value="./logging.ini"/>
   <!-- Specify the connectors to be loaded -->



Mime
View raw message