JMX Connection to remote server always timeout for the first time

We migrated our application from Redthat 7.9 to Rocky8, if we run the JMX RMI connection to another VM, the two VMs are in the same subnet, the network is reachable, the default tiimeout of JMX connection is 2 seconds, the jmx rmi connection always failed after the fresh-install. we never hit this issue in Redhat 7.9. I tried with ssl enabled or disabled, looks like the time is similiar.

Any tricky thing for the first time connection or socket connection?

How to narrow down or debug this issue?

Thanks,
Eric.