KwaiAppTeam / KOOM

KOOM is an OOM killer on mobile platform by Kwai.
Other
3.2k stars 426 forks source link

MIUI OOMEventManagerFK Failed to mkdir /data/miuilog/stability/memleak/heapdump/ #267

Open doutuifei opened 9 months ago

doutuifei commented 9 months ago

koom-fast-dump:2.2.1 koom-java-leak:2.2.1 koom-monitor-base:2.2.1 shark:2.2.1 xhook:2.2.1 android:13 MIUI:14.0.2 Device:RedMi Note 10 CPU: 天玑700

  val builder = OOMMonitorConfig.Builder()
  builder.setEnableHprofDumpAnalysis(true)
  builder.setHprofUploader(object : OOMHprofUploader {
      override fun upload(file: File, type: OOMHprofUploader.HprofType) {
          log("JavaHeapMonitor setHprofUploader file:${file.path}")
      }
  })

  builder.setReportUploader(object : OOMReportUploader {
      override fun upload(file: File, content: String) {
          log("JavaHeapMonitor setReportUploader file:${file.path}")
      }
  })
  MonitorManager.addMonitorConfig(builder.build())
zefengsysu commented 9 months ago

这个路径不是 KOOM 内部设置的

doutuifei commented 9 months ago

这个路径不是 KOOM 内部设置的 我知道,应该是MIUI系统的问题,但是KOOM怎么解决在MIUI上抓不到数据的问题?

zefengsysu commented 9 months ago

这个问题原因应该是路径设置的有问题,那只能使用方自行解决了