当前位置:网站首页>SWT/ANR问题--SWT 导致 low memory killer(LMK)
SWT/ANR问题--SWT 导致 low memory killer(LMK)
2022-07-01 22:40:00 【专业开发者】
问题描述:
这是一个可以在一天内通过稳定性测试重现的SWT问题,概率为30%。
根据SWT trace .txt和log,在软件看门狗发生时间,一些线程在不同代码中被随机阻塞和阻塞,但大约9秒后,被阻塞的线程进入空闲状态。我们怀疑软件看门狗是由于整个手机的性能不好造成的。
当这个SWT发生时触发 memory dumps。已检查内存信息,空闲内存低,正常缓存内存。内核日志中有许多用于低优先级进程的LMK日志。
问题分析:
从logcat日志中,这个SWT被线程“android.fg”,“android.ui”和“android.display”。
根据跟踪日志,线程“android.fg”和“android.ui " was waiting to lock " 0x0ecf3bbc " hold by thread " ActivityManager ",这是等待锁定" 0x0f3257a8 " hold by thread "android.bg”调用非重函数Process.readProcFile()。大约9秒后,在“WATCHDOG KILLING”日志中,所有被阻塞的线程都在等待新任务准备就绪。
线程的锁等待序列
Thread "main"-> "ActivityManager"(lock:0x0ecf3bbc)->"android.bg"(lock:0x0f3257a8)
"android.ui"-> "ActivityManager"(lock:0x0ecf3bbc)-> "android.bg"(lock:0x0f3257a8)
日志分析ÿ
边栏推荐
- Explain the use of locksupport in detail
- Rank ranking with MySQL 5.7
- 内存泄露和内存溢出的区别是什么?
- 测试人进阶技能:单元测试报告应用指南
- Groups and ranges of regular series
- Tcpdump command usage details
- 工作中非常重要的测试策略,你大概没注意过吧
- 【微服务|Sentinel】SentinelResourceAspect详解
- rviz打开后如何显示实时2D地图
- I graduated from college in 14 years and changed to software testing in 3 months. My monthly salary was 13.5k. At the age of 32, I finally found the right direction
猜你喜欢

2022年起重机司机(限桥式起重机)考试试题及模拟考试

MySQL -- index of InnoDB storage engine

flutter Unable to load asset: assets/images/888.png

有些能力,是工作中学不来的,看看这篇超过90%同行

Cisco exam -- redundant network

Design of ESP automatic download circuit

Redis~02 缓存:更新数据时如何保证MySQL和Redis中的数据一致性?

flutter Unable to load asset: assets/images/888. png

Airserver latest win64 bit personal screen projection software

rviz打开后如何显示实时2D地图
随机推荐
Openresty load balancing
实在RPA:银行数字化,业务流程自动化“一小步”,贷款审核效率“一大步”
半监督学习之数据增强
常见的二十种软件测试方法详解(史上最全)
测试人进阶技能:单元测试报告应用指南
Detailed explanation of twenty common software testing methods (the most complete in History)
Daily question brushing record (10)
[MySQL] index classification
Jerry's burning of upper version materials requires [chapter]
2022年危险化学品经营单位安全管理人员考试题及在线模拟考试
Which securities company is better and which is safer to open a securities account
Redis~02 缓存:更新数据时如何保证MySQL和Redis中的数据一致性?
tcpdump命令使用详解
Digital currency: far-reaching innovation
[MySQL] database optimization method
window安装wsl(二)
Mysql 5.7 实现 rank 排名
Deadlock handling strategies - prevent deadlock, avoid deadlock, detect and remove deadlock
ESP自动下载电路设计
plain framework的实际应用和扩展