IDEMPIERE-3585 Oracle APPARENT DEADLOCK warnings - Correção Oracle
This commit is contained in:
parent
e4c872275b
commit
e85497d697
|
|
@ -663,6 +663,7 @@ public class DB_Oracle implements AdempiereDatabase
|
||||||
boolean testConnectionOnCheckout = getBooleanProperty(poolProperties, "TestConnectionOnCheckout", false);
|
boolean testConnectionOnCheckout = getBooleanProperty(poolProperties, "TestConnectionOnCheckout", false);
|
||||||
String mlogClass = getStringProperty(poolProperties, "com.mchange.v2.log.MLog", "com.mchange.v2.log.FallbackMLog");
|
String mlogClass = getStringProperty(poolProperties, "com.mchange.v2.log.MLog", "com.mchange.v2.log.FallbackMLog");
|
||||||
int checkoutTimeout = getIntProperty(poolProperties, "CheckoutTimeout", 0);
|
int checkoutTimeout = getIntProperty(poolProperties, "CheckoutTimeout", 0);
|
||||||
|
int statementCacheNumDeferredCloseThreads = getIntProperty(poolProperties, "StatementCacheNumDeferredCloseThreads", 1);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
System.setProperty("com.mchange.v2.log.MLog", mlogClass);
|
System.setProperty("com.mchange.v2.log.MLog", mlogClass);
|
||||||
|
|
@ -681,7 +682,7 @@ public class DB_Oracle implements AdempiereDatabase
|
||||||
cpds.setTestConnectionOnCheckout(testConnectionOnCheckout);
|
cpds.setTestConnectionOnCheckout(testConnectionOnCheckout);
|
||||||
if (checkoutTimeout > 0)
|
if (checkoutTimeout > 0)
|
||||||
cpds.setCheckoutTimeout(checkoutTimeout);
|
cpds.setCheckoutTimeout(checkoutTimeout);
|
||||||
|
cpds.setStatementCacheNumDeferredCloseThreads(statementCacheNumDeferredCloseThreads);
|
||||||
cpds.setMaxIdleTimeExcessConnections(maxIdleTimeExcessConnections);
|
cpds.setMaxIdleTimeExcessConnections(maxIdleTimeExcessConnections);
|
||||||
cpds.setMaxIdleTime(maxIdleTime);
|
cpds.setMaxIdleTime(maxIdleTime);
|
||||||
if (Ini.isClient())
|
if (Ini.isClient())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue