alpine-zk icon indicating copy to clipboard operation
alpine-zk copied to clipboard

How to enable JMX in this docker?

Open regardfs opened this issue 7 years ago • 1 comments

Hi , I saw zkServer.sh and use this docker-compose.yml to enable jmx, but remote could not connect due to timeout, How to enable JMX in this docker ?

zk: ports: - 2181:2181/tcp - 2888:2888/tcp - 3888:3888/tcp - 20000:20000 environment: JMXPORT: '20000' JVMFLAGS: -Xmx512m -Xms512m ZK_DATA_DIR: /opt/zk/data ZK_INIT_LIMIT: '10' ZK_MAX_CLIENT_CXNS: '500' ZK_SYNC_LIMIT: '5' ZK_TICK_TIME: '2000' tty: true image: rawmind/alpine-zk:3.4.9-3 Thanks a ton..

regardfs avatar Aug 21 '17 10:08 regardfs

Hi @regardfs ...

It should work adding environment variable JMXPORT.. I've tested to deploy adding this environment variable, and the jmx is listening inside the docker at set port without any problem...

Could you check the connection between your host and remote??

rawmind0 avatar Nov 03 '17 12:11 rawmind0