Patches item #551618, was opened at 2002-05-02 17:05
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=551618&group_id=22866
Category: JBossServer
Group: v2.4 BETA (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Victor Langelo (vlangelo)
Assigned to: Nobody/Anonymous (nobody)
Summary: LRU resizer and overager missing period
Initial Comment:
This is actually a patch for v2.4.5RC3.
The resizer and overager tasks in
LRUEnterpriseContextCachePolicy run only once. In the
1.7.4.2 to 1.7.4.3 revision the parent class of both
timers was changed from org.jboss.util.TimerTask to
java.util.TimerTask. The org.jboss.util.TimerTask had a
constructor which set the period. java.util.TimerTask
doesn't. Hence the period is no longer being set in the
task.
I changed the Timer.schedule method calls to include
the period.
--- orig/LRUEnterpriseContextCachePolicy.java Sat Apr
27 19:05:46 2002
+++
src/org/jboss/ejb/plugins/LRUEnterpriseContextCachePolicy.java
Thu May 2 17:38:04 2002
@@ -126,13 +126,13 @@
if (m_resizerPeriod > 0)
{
m_resizer = new ResizerTask(m_resizerPeriod);
- tasksTimer.schedule(m_resizer,
(long)(Math.random() * m_resizerPeriod));
+ tasksTimer.schedule(m_resizer,
(long)(Math.random() * m_resizerPeriod), m_resizerPeriod);
}
if (m_overagerPeriod > 0)
{
m_overager = new OveragerTask(m_overagerPeriod);
- tasksTimer.schedule(m_overager,
(long)(Math.random() * m_overagerPeriod));
+ tasksTimer.schedule(m_overager,
(long)(Math.random() * m_overagerPeriod),
m_overagerPeriod);
}
}
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=551618&group_id=22866
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development