gpt4 book ai didi

debugging - 如何调试 Flink 应用程序进行内存和垃圾收集?

转载 作者:行者123 更新时间:2023-12-03 17:38:41 27 4
gpt4 key购买 nike

我正在使用 Flink 1.1.4 并已添加到 flink-conf.yaml内存调试的配置参数,如Memory and Performance Debugging中所述:

taskmanager.debug.memory.startLogThread: true
taskmanager.debug.memory.logIntervalMs: 1000

重新启动 Flink 后,我看到 Job Manager 界面中添加了新参数,但我看不到任何新日志。

知道我可能缺少什么吗?

最佳答案

看来这在这个 mailinglist 中得到了解决
关键摘录,包括确认准确设置的摘录已成功测试:

That is exactly the right way to do it. Logging has to be at leastINFO and the parameter "taskmanager.debug.memory.startLogThread" setto true. The log output should be under"org.apache.flink.runtime.taskmanager.TaskManager".

Do you see other outputs for that class in the log?

Make sure you restarted the TaskManager processes after you changedthe config file.


Someone else just used the memory logging with the exact describedsettings - it worked.

There is probably some mixup, you may be looking into the wrong logfile, or may setting the a value in a different config...


How do you start the flink cluster? If it's a standalone cluster andyou don't use a shared directory, then you'll find the log of thetaskmanager on the machine on which the taskmanager runs. If you useYARN then you can activate log aggregation to retrieve the log easilyafter the job has finished.

关于debugging - 如何调试 Flink 应用程序进行内存和垃圾收集?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41833527/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com