Skip to content

rocketmq broker会占用多个端口? #6208

Closed Answered by ShadowySpirits
Hoxxx asked this question in Q&A
Discussion options

You must be logged in to vote

在broker配置了listenPort=30911,启动后发现30909和30912都被rocketmq占用了,这是正常的吗?

30909 被占用是因为启动了 fastRemotingServer

int listeningPort = nettyServerConfig.getListenPort() - 2;
if (listeningPort < 0) {
listeningPort = 0;
}
fastConfig.setListenPort(listeningPort);
this.fastRemotingServer = new NettyRemotingServer(fastConfig, this.clientHousekeepingService);

30912 被占用是供 HA 使用

messageStoreConfig.setHaListenPort(brokerConfig.getListenPort

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Hoxxx
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Hoxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants