weixin_39687881 2020-11-21 21:17 采纳率: 0%
浏览 0

Pinned Thread Model - ThreadLocal should be per server instance

E.g., if the same java thread talks to two python server at the same time, the server starts to cross-talk to each other because there is only one python connection/thread local

该提问来源于开源项目:bartdag/py4j

  • 写回答

6条回答 默认 最新

  • weixin_39687881 2020-11-21 21:17
    关注

    Internal notes: the standard cycle of start(true) and shutdown does not introduce a memory leak on the Java side: the PythonClient, JavaServer, and ClientServerConnection are correctly garbage collected once the ClientServer is shut down.

    Still need to test what happens when the JavaServer is on a long-living thread.

    评论

报告相同问题?