漏洞 ID 编号 |
BUG-000172545 |
已提交 | November 22, 2024 |
上次修改时间 | December 22, 2024 |
适用范围 | ArcGIS Maps SDK for JavaScript |
找到的版本 | 4.30 |
操作系统 | Apple MacOS |
操作系统版本 | N/A |
状态 | Under Consideration
该问题已由开发团队审核。 其尚未被优先纳入发布计划,但将对其进行监控以确定总体影响。 在优先级排序过程中考虑的因素包括受影响或请求功能的用户数量、业务影响、是否存在解决方法等。 如果漏洞对您的业务产生不利影响,请参阅“操作方法:升级缺陷”(https://support.esri.com/en/technical-article/000024129)。
|
附加信息
The issue arises because all the tile layers are added to the map, and each layer fetches its tiles and retains them in memory indefinitely. Below is an example of the same map where the layers are removed instead of simply being hidden. This approach prevents memory issues by releasing the tiles when the layer is removed. Refer to this link https://codepen.io/U_B_U/pen/NPKREQm?editors=1000 for more information.
With that said, the memory usage are further improved. If a layer remains invisible for a certain period, the layer view must automatically purge the tiles from memory, freeing up resources and optimizing performance.
解决办法
The issue arises because all the tile layers are added to the map, and each layer fetches its tiles and retains them in memory indefinitely. Below is an example of the same map where the layers are removed instead of simply being hidden. This approach prevents memory issues by releasing the tiles when the layer is removed. Refer to this link https://codepen.io/U_B_U/pen/NPKREQm?editors=1000 for more information.
重现步骤