ActiveMQ
  1. ActiveMQ
  2. AMQ-2368

it makes no sense for activemq-admin to load SUNJMX env var from /etc/activemq.conf

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.0, 5.3.0
    • Fix Version/s: 5.3.0
    • Component/s: JMX
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      it doesn't make any sense for activemq-admin to load the SUNJMX env var from /etc/activemq.conf since if activemq-admin is run on the same system that the broker runs on in many cases the com.sun.management.jmxremote.port system property will be set in there. Since the activemq-admin script now tries to use the same port that the broker is already using the script now fails to run.

      You could argue that there is no point for the activemq-script to even use the SUNJMX variable at all, since there is little point in enabling a JMX connector for the script.

      However in the attached patch all I've done is to reset the SUNJMX var so that it doesn't use what is set in /etc/activemq.conf.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        12d 15h 53m 1 Dejan Bosanac 09/Sep/09 14:30
        Jeff Turner made changes -
        Project Import Fri Nov 26 22:32:02 EST 2010 [ 1290828722158 ]
        Dejan Bosanac made changes -
        Assignee Rob Davies [ rajdavies ] Dejan Bosanac [ dejanb ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.3.0 [ 11914 ]
        Hide
        Dejan Bosanac added a comment -

        Fixed with svn revision 812950. I also removed all activemq options such as dedicated task runner and we don't really need 512 MB to run this stuff

        Show
        Dejan Bosanac added a comment - Fixed with svn revision 812950. I also removed all activemq options such as dedicated task runner and we don't really need 512 MB to run this stuff
        Rob Davies made changes -
        Assignee Rob Davies [ rajdavies ]
        Mats Henrikson made changes -
        Field Original Value New Value
        Attachment activemq-admin_reset_SUNJMX.patch [ 18327 ]
        Mats Henrikson created issue -

          People

          • Assignee:
            Dejan Bosanac
            Reporter:
            Mats Henrikson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development