Revision 2714
Added by sgarg over 18 years ago
DBConnectionPool.java | ||
---|---|---|
651 | 651 |
DBConnection conn = null; // the dbconnection |
652 | 652 |
connectionPoolSize = connectionPool.size(); |
653 | 653 |
freeConnectionSize = getFreeDBConnectionNumber(); |
654 |
logMetacat.warn("Connection pool size: " +connectionPoolSize); |
|
655 |
logMetacat.warn("Free Connection number: "+freeConnectionSize); |
|
654 |
if(freeConnectionSize < connectionPoolSize){ |
|
655 |
int numberOfConnections = connectionPoolSize - freeConnectionSize; |
|
656 |
logMetacat.warn(numberOfConnections + "connections " + |
|
657 |
"being used out of " +connectionPoolSize + " connections"); |
|
658 |
} else { |
|
659 |
logMetacat.info("Connection pool size: " +connectionPoolSize); |
|
660 |
logMetacat.info("Free Connection number: "+freeConnectionSize); |
|
661 |
} |
|
656 | 662 |
difference = connectionPoolSize - freeConnectionSize; |
657 | 663 |
|
658 | 664 |
//If all connections are free and connection pool size greater than |
Also available in: Unified diff
Modified the debug levels of debug statements