我遇到过这个问题,在启动karaf实例后,很少的随机端口被打开,并且一段时间后,此随机端口的打开频率增加了。我想知道打开这么多端口的原因是什么,或者我怎么调试这个问题。
以下是netstat的结果:
Active Connections Proto Local Address Foreign Address State PID TCP 127.0.0.1:63062 127.0.0.1:63063 ESTABLISHED 22488 TCP 127.0.0.1:63063 127.0.0.1:63062 ESTABLISHED 22488 TCP 127.0.0.1:63064 127.0.0.1:63065 ESTABLISHED 22488 TCP 127.0.0.1:63065 127.0.0.1:63064 ESTABLISHED 22488 TCP 127.0.0.1:63066 127.0.0.1:63067 ESTABLISHED 22488 TCP 127.0.0.1:63067 127.0.0.1:63066 ESTABLISHED 22488 TCP 127.0.0.1:63068 127.0.0.1:63069 ESTABLISHED 22488 TCP 127.0.0.1:63069 127.0.0.1:63068 ESTABLISHED 22488 TCP 127.0.0.1:63083 127.0.0.1:63084 ESTABLISHED 22488 TCP 127.0.0.1:63084 127.0.0.1:63083 ESTABLISHED 22488 TCP 127.0.0.1:63085 127.0.0.1:63086 ESTABLISHED 22488 TCP 127.0.0.1:63086 127.0.0.1:63085 ESTABLISHED 22488 TCP 127.0.0.1:63087 127.0.0.1:63088 ESTABLISHED 22488 TCP 127.0.0.1:63088 127.0.0.1:63087 ESTABLISHED 22488 TCP 127.0.0.1:63089 127.0.0.1:63090 ESTABLISHED 22488 TCP 127.0.0.1:63090 127.0.0.1:63089 ESTABLISHED 22488 TCP 127.0.0.1:63091 127.0.0.1:63092 ESTABLISHED 22488 TCP 127.0.0.1:63092 127.0.0.1:63091 ESTABLISHED 22488 TCP 127.0.0.1:63093 127.0.0.1:63094 ESTABLISHED 22488 TCP 127.0.0.1:63094 127.0.0.1:63093 ESTABLISHED 22488 TCP 127.0.0.1:63095 127.0.0.1:63096 ESTABLISHED 22488 TCP 127.0.0.1:63096 127.0.0.1:63095 ESTABLISHED 22488 TCP 127.0.0.1:63097 127.0.0.1:63098 ESTABLISHED 22488 TCP 127.0.0.1:63098 127.0.0.1:63097 ESTABLISHED 22488 TCP 127.0.0.1:63099 127.0.0.1:63100 ESTABLISHED 22488 TCP 127.0.0.1:63100 127.0.0.1:63099 ESTABLISHED 22488 TCP 127.0.0.1:63101 127.0.0.1:63102 ESTABLISHED 22488 TCP 127.0.0.1:63102 127.0.0.1:63101 ESTABLISHED 22488