Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6185988

Drop less recent notifications in notification buffer when memory is low

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 6
    • core-svc

      Suppose one or more MBeans in an MBean Server send many large notifications, and that there is at least one JMX Connector Server attached to the MBean Server with at least one client that has registered for notifications. Then the Connector Server will buffer up those notifications indefinitely, in a buffer with size 1000. This uses up a lot of memory, and the memory is not available for other purposes.
      If all, or perhaps just the oldest, notifications in the notification buffer were wrapped in SoftReferences then they would be dropped when memory was short. The logic for notification sending could notice the now-empty SoftReference and arrange for the client to see non-contiguous sequence numbers. The client will react by signalling that notifications have been lost, as they have.
      ###@###.### 10/28/04 13:55 GMT

            sjiang Shanliang Jiang (Inactive)
            emcmanus Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: