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

**问题描述**

![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/f3/v3/-FNXf_mVRyakoYMYH6cfKA/zh-cn_image_0000002654798119.png?HW-CC-KV=V1&HW-CC-Date=20260709T134409Z&HW-CC-Expire=86400&HW-CC-Sign=92E3863F74714D9B689E4BD1EB26E262ECB012D2E78063A6EAD95CD5776BF76B)

![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/1d/v3/vBQmbFOwTZatTKmzvjXovw/zh-cn_image_0000002624638666.png?HW-CC-KV=V1&HW-CC-Date=20260709T134409Z&HW-CC-Expire=86400&HW-CC-Sign=533F743D1946DF04D1D92959CD5747479ABB13E1277298F641FDC489828B4F47)

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

**解决措施**

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

![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/ad/v3/5gmvG1NrTfaWbo3xvQB44Q/zh-cn_image_0000002654838069.png?HW-CC-KV=V1&HW-CC-Date=20260709T134409Z&HW-CC-Expire=86400&HW-CC-Sign=1610B96D00EB24742F960C48929D9E32F96E9D9FBFFB6875C4060B7CC2582B89)

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

![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/0d/v3/19YR_tGsT9yPYMJt8fwdQg/zh-cn_image_0000002624478756.png?HW-CC-KV=V1&HW-CC-Date=20260709T134409Z&HW-CC-Expire=86400&HW-CC-Sign=58D5B17E5BFC2079165B48A7C4BEB0373262C263421BCDB95535D0F075EEAC68)

![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/cb/v3/O1Bvc7sMSeeTN2HxqNzo7w/zh-cn_image_0000002654798121.png?HW-CC-KV=V1&HW-CC-Date=20260709T134409Z&HW-CC-Expire=86400&HW-CC-Sign=2A76CD4F394A5BA6E53B7E93ACB92CBE4A0C78BFDA08B403569561FF81D42E3E)

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

![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/d/v3/aAV4-5LbTWeClSf_TENGKQ/zh-cn_image_0000002624638668.png?HW-CC-KV=V1&HW-CC-Date=20260709T134409Z&HW-CC-Expire=86400&HW-CC-Sign=FC4A9B4FEB4B2924E1579D13946DB1C8E6999006081312CE28C535BA3C7C06FE)

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

![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/a7/v3/2jjNuPbPTN2eVX5UzimkKQ/zh-cn_image_0000002654838073.png?HW-CC-KV=V1&HW-CC-Date=20260709T134409Z&HW-CC-Expire=86400&HW-CC-Sign=32AF525374534B51837F9CA0B430FFF69A5D86272874BEDE2D84D6B9BC3E82DE)