连接到mongodb时出现“com.mongodb.MongoInternalException:响应中的responseTo与请求中的requestId不匹配”

Har*_*hit 10 java mongodb spring-boot

我的应用程序正在使用 Spring-Boot 框架。一切正常,直到发生 GC 开销错误。GC 错误已恢复,但 mongodb 连接在此之后不断出现此错误。但与此同时,其他使用同一个 mongodb 服务器的应用程序能够正常连接到它。一旦我重新启动我的 spring-boot 应用程序,这个错误就消失了。

com.mongodb.MongoInternalException: The responseTo (130) in the response does not match the requestId (131) in the request.每个请求都有例外,responseTo 和 requestId 值不同。

我想知道这个问题是不是因为 OutOfMemoryError?如果不是,此错误的其他可能原因是什么?