我有一个用Java开发的Akka-cluster项目。其中我使用了kryo序列化。如何获取kryo序列化日志?我想知道所有的非映射类,因为这里的idstrategy = "explict“。目前,如果我没有在映射部分添加一个类,那么整个代码都可以正常工作,没有任何错误,但是我的worker actor没有接收到这个类对象。它会影响我的最终输出。有人能帮我在我的项目中实现kryo日志吗?
发布于 2018-10-27 13:45:43
假设您使用的是akka-kryo-serialization,有两个设置可以控制kryo日志记录行为:
# Log implicitly registered classes. Useful, if you want to know all
# classes which are serialized. You can then use this information in
# the mappings and/or classes sections
implicit-registration-logging = false
# If enabled, Kryo logs a lot of information about serialization process.
# Useful for debugging and low-level tweaking
kryo-trace = false您可能无法立即使用前一个策略(implicit-registration-logging),因为您有一个受限的id策略(我不确定kryo在本例中会做什么),但第二个策略可能正是您想要的
https://stackoverflow.com/questions/52988081
复制相似问题