我目前正在调试一个基于Akka的旧版应用程序,我首先从Play的Logger转到使用适当的Akka记录器,因为该系统主要使用akka Actor。
但是在启用Akka日志并将其设置为DEBUG之后,我看到很多不必要的每秒启动/停止ActorGraphInterpreter实例的情况,完全淹没了日志:
2018-12-20 14:09:43,872 [debug] a.s.i.StreamSupervisor - now supervising Actor[akka://application/system/StreamSupervisor-10/flow-621-0-seqSink#1394488285]
2018-12-20 14:09:43,872 [debug] a.s.i.f.ActorGraphInterpreter - started (akka.stream.impl.fusing.ActorGraphInterpreter@4a57dba5)
2018-12-20 14:09:43,874 [debug] a.s.i.f.ActorGraphInterpreter - stopped
2018-12-20 14:09:44,642 [debug] a.s.i.StreamSupervisor - now supervising Actor[akka://application/system/StreamSupervisor-10/flow-622-0-seqSink#900632321]
2018-12-20 14:09:44,642 [debug] a.s.i.f.ActorGraphInterpreter - started (akka.stream.impl.fusing.ActorGraphInterpreter@3cf268af)
2018-12-20 14:09:44,644 [debug] a.s.i.f.ActorGraphInterpreter - stopped
2018-12-20 14:09:44,644 [debug] a.a.TimerScheduler - Start timer [QueryOrderingIdsTimerKey] with generation [299]
2018-12-20 14:09:44,893 [debug] a.s.i.StreamSupervisor - now supervising Actor[akka://application/system/StreamSupervisor-10/flow-623-0-seqSink#-862636181]
2018-12-20 14:09:44,893 [debug] a.s.i.f.ActorGraphInterpreter - started (akka.stream.impl.fusing.ActorGraphInterpreter@2c83fe5a)
2018-12-20 14:09:44,895 [debug] a.s.i.f.ActorGraphInterpreter - stopped
2018-12-20 14:09:45,663 [debug] a.s.i.StreamSupervisor - now supervising Actor[akka://application/system/StreamSupervisor-10/flow-624-0-seqSink#-1452327997]
2018-12-20 14:09:45,663 [debug] a.s.i.f.ActorGraphInterpreter - started (akka.stream.impl.fusing.ActorGraphInterpreter@4c67665a)
2018-12-20 14:09:45,665 [debug] a.s.i.f.ActorGraphInterpreter - stopped
2018-12-20 14:09:45,665 [debug] a.a.TimerScheduler - Start timer [QueryOrderingIdsTimerKey] with generation [300]
2018-12-20 14:09:45,912 [debug] a.s.i.StreamSupervisor - now supervising Actor[akka://application/system/StreamSupervisor-10/flow-625-0-seqSink#-1284226793]
2018-12-20 14:09:45,912 [debug] a.s.i.f.ActorGraphInterpreter - started (akka.stream.impl.fusing.ActorGraphInterpreter@59802f1d)
2018-12-20 14:09:45,914 [debug] a.s.i.f.ActorGraphInterpreter - stopped
对于Scala来说,我还是一个新手,尤其是对于Akka和Akka流而言,所以我很抱歉,如果这只是它的工作方式,我问一个没必要的人问题。
该应用程序主要是在几个核心Actor的帮助下基于Akka流处理的,因此看到基于流的日志并不奇怪,它是导致我暂停的频率。
这是正常行为吗?还是表明旧应用程序存在潜在问题?
谢谢您的帮助!