每次重新启动我的应用程序时,RMI RenewClean Thread都会侦听动态端口,下面是我的Thread堆栈跟踪
"RMI RenewClean-[10.58.121.180:16406]" Id=23 in TIMED_WAITING on lock=java.lang.ref.ReferenceQueue$Lock@6ab17e0a
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(Unknown Source)
at sun.rmi.transport.DGCClient$EndpointEntry$RenewCleanThread.run(Unknown Source)
at java.lang.Thread.run(Unknown Source
答案 0 :(得分:1)
将远程对象导出到固定端口。