ActiveMQ
  1. ActiveMQ
  2. AMQ-2928

new 5.4.0 activemq sysv init script tries to open the JDWP debug port when run with "stop"

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.4.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      With the new ActiveMQ 5.4.0 if you have /etc/default/activemq configured with the following line:

      # Uncomment to enable remote debugging
      ACTIVEMQ_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
      

      Then when you try to shut down a running ActiveMQ broker instance using the init script with the "stop" command, the Java process that attempts to shut it down also tries and fails to open the same JDWP port:

      root@sts-chc-matsh:/# ls -l /etc/init.d/activemq
      lrwxrwxrwx 1 root root 32 2010-09-16 13:10 /etc/init.d/activemq -> /usr/local/apache-activemq-5.4.0/bin/activemq*
      
      root@sts-chc-matsh:/# /etc/init.d/activemq stop
      INFO: Loading '/etc/default/activemq'
      INFO: Using java '/usr/lib/jvm/java-6-sun/bin/java'
      INFO: changing to user 'activemq' to invoke java
      INFO: Waiting at least 30 seconds for regular process termination of pid '6764' : ERROR: transport error 202: bind failed: Address already in use
      ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
      JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
      FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
      ..............................
      INFO: Regular shutdown not successful,  sending SIGKILL to process with pid '6764'
      

        Activity

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            Mats Henrikson
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development