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

    • Icon: Story Story
    • Resolution: Not Done
    • Icon: Lowest Lowest
    • None
    • None
    • None

      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

            platania platania
            michaelobrien michaelobrien
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: