[ https://issues.apache.org/jira/browse/KAFKA-1869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14287339#comment-14287339 ]
QianHu commented on KAFKA-1869: ------------------------------- Hello, this is my config: export KAFKA_HEAP_OPTS="-Xms4g -Xmx4g -XX:+DisableAttachMechanism -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=8888 -Dcom.sun.management.jmxremote.rmi.port=8890 -XX:PermSize=48m -XX:MaxPermSize=48m -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35" and the port of kafka is 9092,so [work@tc kafka]$ jps 5912 Jps 4466 Kafka [work@tc kafka]$ netstat -pltn |grep 4466 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN 4466/./bin/../jdk1. tcp 0 0 0.0.0.0:8890 0.0.0.0:* LISTEN 4466/./bin/../jdk1. tcp 0 0 0.0.0.0:41213 0.0.0.0:* LISTEN 4466/./bin/../jdk1. tcp 0 0 0.0.0.0:9092 0.0.0.0:* LISTEN 4466/./bin/../jdk1. As you said ,the random port(41213) is an implementation specific for JRMP .Could you help me how can we set the port with a constant value ? I have tried many kinds of methods ,but don't work. Thank you for your attention. > Openning some random ports while running kafka service > ------------------------------------------------------- > > Key: KAFKA-1869 > URL: https://issues.apache.org/jira/browse/KAFKA-1869 > Project: Kafka > Issue Type: Bug > Environment: kafka_2.9.2-0.8.1.1 > Reporter: QianHu > Assignee: Manikumar Reddy > Fix For: 0.8.2 > > > while running kafka service , four random ports have been opened . In which > , 8888 and 9092 are setted by myself , but 28538 and 16650 are opened > randomly . Can you help me that why this random ports will be opened , and > how can we give them constant values ? Thank you very much . > [work@02 kafka]$ jps > 8400 Jps > 727 Kafka > [work@02 kafka]$ netstat -tpln|grep 727 > (Not all processes could be identified, non-owned process info > will not be shown, you would have to be root to see it all.) > tcp 0 0 0.0.0.0:8888 0.0.0.0:* > LISTEN 727/./bin/../jdk1.7 > tcp 0 0 0.0.0.0:28538 0.0.0.0:* > LISTEN 727/./bin/../jdk1.7 > tcp 0 0 0.0.0.0:9092 0.0.0.0:* > LISTEN 727/./bin/../jdk1.7 > tcp 0 0 0.0.0.0:16650 0.0.0.0:* > LISTEN 727/./bin/../jdk1.7 -- This message was sent by Atlassian JIRA (v6.3.4#6332)