[jboss-user] [Remoting] - Re: Problem for Timer of BisocketServerInvoker
qingsongjian
do-not-reply at jboss.com
Thu Jun 26 07:04:17 EDT 2008
I think maybe I got why cancelled controlMonitorTimerTask not be release at my side.
First time, timer schedule a task,
| timer.schedule(controlMonitorTimerTask, pingFrequency, pingFrequency);
|
pingFrequency's value is 214748364 that's configure in jboss\server\default\deploy\jboss-messaging.sar\remoting-bisocket-service.xml, then java.util.TimerThread.mainLoop() do
| synchronized(task.lock) {
| ....
| currentTime = System.currentTimeMillis();
| executionTime = task.nextExecutionTime;
| if (taskFired = (executionTime<=currentTime)) {
| .... }
| }
| }
| if (!taskFired) // Task hasn't yet fired; wait
| queue.wait(executionTime - currentTime);
|
so queue will wait for 214748364ms , thus cancelled controlMonitorTimerTask will not be release until in that long time.
Could you tell me what value I should set pingFrequency to, as after set it a small value such as 10000, I get a lot of exception while starting jboss
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160818#4160818
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160818
More information about the jboss-user
mailing list