模拟器在后台放置一段时间后会卡在加载状态，CPU占用率高
============================

**问题描述**

![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/01/v3/tGQ2RNagTIaejpftBY4ZVw/zh-cn_image_0000002229603801.png?HW-CC-KV=V1&HW-CC-Date=20260612T074822Z&HW-CC-Expire=86400&HW-CC-Sign=8EFBDCF25A108756729A5AC1619A5BB29B042B46959AF7572B24391243EB7421)

![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/ac/v3/krqrW2QwTQaYx2bAxdp_mg/zh-cn_image_0000002194318016.png?HW-CC-KV=V1&HW-CC-Date=20260612T074822Z&HW-CC-Expire=86400&HW-CC-Sign=7346ABEE6336C34B7E5907ACC1640DAB73FB861E88B7E9380A30CE9163096827)

打开活动检测器，发现模拟器的CPU占用率为80%。

**解决措施**

1.打开模拟器设备管理页面。

![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/5b/v3/6RwvBOy1Thawk4WHHR9PkA/zh-cn_image_0000002229603789.png?HW-CC-KV=V1&HW-CC-Date=20260612T074822Z&HW-CC-Expire=86400&HW-CC-Sign=9F3347FB0264BF5E0E8A6106911FA55EF87BA68CA20F0D8432CD1CC46DB4ECBC)

2.选择“新建模拟器”弹窗。

![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/de/v3/e5uMWquiRH-X-0piW736_g/zh-cn_image_0000002194158400.png?HW-CC-KV=V1&HW-CC-Date=20260612T074822Z&HW-CC-Expire=86400&HW-CC-Sign=A82AC8065614D8A969EED35842841C06026CD467383444A20D76C86E4C59D9A5)

![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/f4/v3/wXjq9fR4TIizASD8iQFhJQ/zh-cn_image_0000002229758273.png?HW-CC-KV=V1&HW-CC-Date=20260612T074822Z&HW-CC-Expire=86400&HW-CC-Sign=8E0D9096453AA67369FD7F2F100AC93FC2BA46C9123BD0F7B0258082719709E8)

3.复制路径并用文件夹打开system-image\\HarmonyOS-NEXT-DB1\\phone\_x86。

![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/ec/v3/HAecx-d_RD-FU5vMdBThFw/zh-cn_image_0000002229758269.png?HW-CC-KV=V1&HW-CC-Date=20260612T074822Z&HW-CC-Expire=86400&HW-CC-Sign=33E911AF124FD66953F0C4CB4B58E49E3C39A34A16D07C2594218A6D6A11B1E4)

4.打开features.ini文件，将bootanimation.feature.key的值改为true，保存后重启模拟器。

![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/0a/v3/HaKo_39_TWyqsMsYYTr7_w/zh-cn_image_0000002194158396.png?HW-CC-KV=V1&HW-CC-Date=20260612T074822Z&HW-CC-Expire=86400&HW-CC-Sign=DC3779649BAD085A46F5C531CFC6406360B1C789C521C9A0FA076B3279C13470)