ActiveMQ
  1. ActiveMQ
  2. AMQ-3573

Hardcoded defaults for systemUsage not suitable for out of the box

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.1
    • Fix Version/s: 5.6.0
    • Component/s: Broker
    • Patch Info:
      Patch Available

      Description

      Right now the default activemq.xml has the entire <systemUsage> section commented out. If commented, then the default systemUsage as defined in BrokerService.getSystemUsage() applies and uses these limits:

      memoryLimit 64 MB
      storeLimit: 10 GB
      tempLimit: 100 GB

      I don't think these are good default values as in the worst case the broker may use 110 GB of disk space. Many runtime environments will not have that much disk space and are therefore in danger of running out of disk space completely.
      IMHO some more sensitive defaults would be

      memoryLimit 64 MB
      storeLimit: 1 GB
      tempLimit: 1 GB

      to prevent the broker from using too much disk space by default.
      I believe most users of ActiveMQ are unaware of these defaults and probably don't expect the broker to use up to 110 GB of their disk.

      If anyone really needs large store and temp limit, they should explicitly configure for it.

      1. AMQ-3573.patch
        2 kB
        Torsten Mielke

        Issue Links

          Activity

          Torsten Mielke created issue -
          Torsten Mielke made changes -
          Field Original Value New Value
          Attachment AMQ-3573.patch [ 12501941 ]
          Torsten Mielke made changes -
          Attachment AMQ-3573.patch [ 12501943 ]
          Torsten Mielke made changes -
          Link This issue is related to AMQ-3574 [ AMQ-3574 ]
          Torsten Mielke made changes -
          Link This issue relates to AMQ-3574 [ AMQ-3574 ]
          Torsten Mielke made changes -
          Attachment AMQ-3573.patch [ 12501941 ]
          Rob Davies made changes -
          Assignee Rob Davies [ rajdavies ]
          Rob Davies made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 5.6.0 [ 12317974 ]
          Resolution Fixed [ 1 ]
          Timothy Bish made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Timothy Bish made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              Rob Davies
              Reporter:
              Torsten Mielke
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development