This is what I have done so far:
- I have deployed a java 11 application on aws fargate and it is up and running.
- Task definition is correctly configured for tcp port mapping to application port and jmx port (3939).
- There is VPC configuration which allows communication between my network and aws.
- Application is started with these additional system properties for
remote jmx connections:
-Dcom.sun.management.jmxremote.port=3939 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
- From my local machine I am successfully able to telnet to private IP of fargate task and jmx port 3939.
But when I am trying to connect to jmx using JVisualVm or JDK mission control it is unable to connect. Am I missing something here ?