Uploaded image for project: 'Use Case Analysis'
  1. Use Case Analysis
  2. UCA-25

Expose JVM debug port in all docker containers running a JVM

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed
    • Priority: Lowest
    • Resolution: Not Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      There is a requirement on being able to remote debug any of the JREs in any container.

      The issue is that it would be good if the debug port was already exposed in the docker-compose.yaml like the 5005 internal - (range 5001-5009 outside) port below - to handle VM's with several JVM docker containers

      tomcat:
        #image: tomcat:8.0.44-jre8
        image: tomcat
        container_name: tomcat8
        ports:
          - "8280:8080"
          - "5001:5005"

      in support of 

      -Xdebug -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n

      export JAVA_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

      I will also look into adding this port dynamically (without a full "docker-compose up -d")

      A tomcat restart will still be required.

       

      AAI uses 

      -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5432

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                platania Marco Platania
                Reporter:
                michaelobrien Michael O'Brien
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: