1

我不想禁用警告消息,因为我想知道如何实现定义序列化程序以提高性能的建议?

[INFO] [06/24/2016 19:28:34.659] [main] [akka.remote.Remoting] Starting remoting
[INFO] [06/24/2016 19:28:34.827] [main] [akka.remote.Remoting] Remoting started; listening on addresses :[akka.tcp://requesterActorSystem@127.0.0.1:41999]
[INFO] [06/24/2016 19:28:34.829] [main] [akka.remote.Remoting] Remoting now listens on addresses: [akka.tcp://requesterActorSystem@127.0.0.1:41999]
[WARN] [06/24/2016 19:28:35.303] [requesterActorSystem-akka.remote.default-remote-dispatcher-13] [akka.serialization.Serialization(akka://requesterActorSystem)] Using the default Java serializer for class [com.typesafe.config.impl.SimpleConfig] which is not recommended because of performance implications. Use another serializer or disable this warning using the setting 'akka.actor.warn-about-java-serializer-usage'
4

1 回答 1

1

检查此页面,说明:http ://doc.akka.io/docs/akka/current/scala/serialization.html

在您的情况下,使用了默认的 Java 序列化程序,但据说它很慢,因此出于性能原因,最好使用类似的东西Protobuf或使用您自己的序列化程序。

于 2016-06-24T12:12:54.130 回答