User: starksm
Date: 02/04/05 12:07:38
Modified: src/main/org/jboss/pool Tag: Branch_2_4 PoolGCThread.java
Log:
Apply fix for Bug #525840 and reduce logging threshold to trace for per
connection messages
Revision Changes Path
No revision
No revision
1.1.1.1.2.3 +11 -11 jbosspool/src/main/org/jboss/pool/PoolGCThread.java
Index: PoolGCThread.java
===================================================================
RCS file: /cvsroot/jboss/jbosspool/src/main/org/jboss/pool/PoolGCThread.java,v
retrieving revision 1.1.1.1.2.2
retrieving revision 1.1.1.1.2.3
diff -u -r1.1.1.1.2.2 -r1.1.1.1.2.3
--- PoolGCThread.java 22 Feb 2002 12:09:09 -0000 1.1.1.1.2.2
+++ PoolGCThread.java 5 Apr 2002 20:07:38 -0000 1.1.1.1.2.3
@@ -15,7 +15,7 @@
* run on any pools which are "pretty close" to their requested time.
*
* @author Aaron Mulder ([EMAIL PROTECTED])
- * @version $Revision: 1.1.1.1.2.2 $
+ * @version $Revision: 1.1.1.1.2.3 $
*/
class PoolGCThread extends Thread
{
@@ -30,18 +30,18 @@
public void run()
{
- boolean debug = log.isDebugEnabled();
+ boolean trace = log.isTraceEnabled();
while(true)
{
// Don't do anything while there's nothing to do
waitForPools();
- if( debug )
- log.debug("gc thread waited for pools");
+ if( trace )
+ log.trace("gc thread waited for pools");
// Figure out how long to sleep
long delay = getDelay();
- if( debug )
- log.debug("gc thread delay: " + delay);
+ if( trace )
+ log.trace("gc thread delay: " + delay);
// Sleep
if(delay > 0l)
@@ -92,17 +92,17 @@
private synchronized void runGC()
{
- boolean debug = log.isDebugEnabled();
+ boolean trace = log.isTraceEnabled();
- if( debug )
- log.debug("GC thread running GC");
+ if( trace )
+ log.trace("GC thread running GC");
for(Iterator it = pools.iterator(); it.hasNext();)
{
ObjectPool pool = (ObjectPool)it.next();
- if( debug )
- log.debug("GC Thread pool: " + pool.getName() + ", isTimeToGC(): " +
pool.isTimeToGC() );
+ if( trace )
+ log.trace("GC Thread pool: " + pool.getName() + ", isTimeToGC(): " +
pool.isTimeToGC() );
if(pool.isTimeToGC())
pool.runGCandShrink();
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development