java.rmi.NoSuchObjectException: no such object in table

后端 未结 7 2361
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-28 06:43

I am writing a very simple RMI server, and I am seeing intermittent java.rmi.NoSuchObjectExceptions in the unit tests.

I have a string of remote method

7条回答
  •  忘掉有多难
    2020-11-28 07:05

    there is one point missing in the above discussion. There is something that is called distributed garbage collection (DGC). If there are no living local and remote references to a distributed object the GC is allowed to remove the object from memory. There is a sophisticated algorithm to verify this. The nice code snippet from above is indeed a good demonstration of the effectiveness of the DGC.

    What somehow looks like a feature is nothing but the designed behavior!

    Frank

提交回复
热议问题