cannot connect to JMX with Spring Boot and Docker

I have a Spring Boot app, containerized, running in Docker Cloud, with the following JAVA_OPTS:

-Xmx512m -XX:+UseConcMarkSweepGC -XX:NativeMemoryTracking=summary -Djava.rmi.server.hostname=

when I try to connect to the host with jmc, I get Unnable to connect. This is the url I’m using:

  • Close Docker expose port from parent file
  • docker run --ulimit cpu=10 does not kill java process after timeout
  • wordpress container cannot connect to mariadb container
  • How to build my docker (nodejs) container in travis and run in production
  • docker swarm - etcd cluster is unavailable or misconfigured
  • Magento2 Docker Devbox Exception
  • service:jmx:rmi:///jndi/rmi://

    I also have the port 1099 exposed in the container.
    What else can I try?


    This is how I’m starting the container:


    FROM java:8
    VOLUME /chathub
    COPY target/chathub-backend-1.0.0.jar app.jar
    RUN sh -c 'touch app.jar'
    EXPOSE 8080
    ENTRYPOINT ["java","","", "-jar","/app.jar"]

    and the Stackfile:

      image: 'luizkowalski/chathub:qa'
      deployment_strategy: every_node
        - 'DATABASE_URL=xxx'
        - 'JAVA_OPTS=-Xmx512m -XX:+UseConcMarkSweepGC -XX:NativeMemoryTracking=summary -Djava.rmi.server.hostname='
        - MIXPANEL_TOKEN=xxx
      mem_limit: 258m
        - '1099:1099'
        - '8080:8080'
        - sta

  • dockerized jenkins crashes since a Java allocation memory
  • Docker Registry 2.0 enable CORS
  • Getting docker working in daemon mode for a tahoe-lafs storage node?
  • Volumes not being linked to containers
  • Limit number of open files in a Container
  • How to monitor docker container disk access metrics when using overlayFS
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.