You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2010/11/12 00:48:58 UTC

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

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 -->