如何为RMI RenewClean Thread设置静态端口

时间:2011-05-04 12:15:52

标签: rmi

每次重新启动我的应用程序时,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

1 个答案:

答案 0 :(得分:1)

将远程对象导出到固定端口。