Uploaded image for project: 'JBoss Remoting'
  1. JBoss Remoting
  2. JBREM-1005

Prevent build up of cancelled TimerTasks in bisocket transport

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.4.0.GA (Pinto), 2.2.2.SP8
    • Fix Version/s: 2.4.0.SP1 (Pinto), 2.2.2.SP9
    • Component/s: None
    • Labels:
      None
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      The control connection pinging was disabled because a short period was leading to unnecessary recreation of control connections. Probably setting "pingFrequency" to any period long enough to avoid timeouts in a busy network but shorter than forever. Maybe 60000?

      Show
      The control connection pinging was disabled because a short period was leading to unnecessary recreation of control connections. Probably setting "pingFrequency" to any period long enough to avoid timeouts in a busy network but shorter than forever. Maybe 60000?

      Description

      The behavior of java.util.Timer and java.util.TimerThread is such that a cancelled java.util.TimerTask is removed from the Timer's queue the next time it is executed after being cancelled. JBossMessaging has effectively disabled the bisocket control connection ping mechanism by setting the parameter "pingFrequency" to 214748364, which means that the org.jboss.remoting.transport.bisocket.BisocketServerInvoker.ControlMonitorTimerTask gets created but essentially "never" runs. So when a JBM connection closes, it also shuts down the Remoting bisocket connection, which causes the ControlMonitorTimerTask to get cancelled, but it remains in the Timer queue "forever".

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ron_sigal Ronald Sigal
                Reporter:
                ron_sigal Ronald Sigal
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: