Memory leaks in SPA: prevention, detection, and remediation methods

Автор: Dudak A.

Журнал: Бюллетень науки и практики @bulletennauki

Рубрика: Технические науки

Статья в выпуске: 12 т.10, 2024 года.

Бесплатный доступ

This article addresses the issue of memory leaks in modern single-page applications (SPAs). By investigating the causes of leaks associated with dynamic content updates, active interaction with the document object model (DOM) interface, and asynchronous operations, developers gain insights into avoiding the excessive accumulation of unused objects in memory. The article discusses methods for preventing and addressing leaks, including the use of weak references, component state management, and optimizing asynchronous requests. It also emphasizes the importance of using monitoring tools, such as Chrome DevTools, and integrating automated testing into the continuous integration (CI) and continuous delivery (CD) process. The article offers a comprehensive approach for efficient memory management and preventing performance issues in SPA applications.

Еще

Memory leaks, single page applications (spa), asynchronous operations, monitoring, optimization

Короткий адрес: https://sciup.org/14131720

IDR: 14131720   |   DOI: 10.33619/2414-2948/109/22

Список литературы Memory leaks in SPA: prevention, detection, and remediation methods

  • Israfilov A. Geopolitical aspects of cybersecurity: international cooperation and conflicts // Холодная наука. 2024. №8. P. 56-63. EDN: PZTYNO
  • Shahoor A., Khamit A. Y., Yi J., Kim D. LeakPair: Proactive repairing of memory leaks in single page web applications // 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE). IEEE, 2023. P. 1175-1187. DOI: 10.1109/ASE56229.2023.00097
  • Yu B., Tian C., Zhang N., Duan Z., Du H. A dynamic approach to detecting, eliminating and fixing memory leaks // Journal of Combinatorial Optimization. 2021. V. 42. P. 409-426. DOI: 10.1007/s10878-019-00398-x EDN: HMOKLH
  • Utture A., Palsberg J. From Leaks to Fixes: Automated Repairs for Resource Leak Warnings // Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 2023. P. 159-171. DOI: 10.1145/3611643.3616267
  • Пономарёв Е. В. Разработка кредитных приложений на Android: особенности и вызовы // Вестник науки. 2024. Т. 2. №9 (78). С. 319-327.
  • Cák F., Dakić P. Configuration Tool for CI/CD Pipelines and React Web Apps // 2024 14th International Conference on Advanced Computer Information Technologies (ACIT). IEEE, 2024. P. 586-591. DOI: 10.1109/ACIT62333.2024.10712482
Еще
Статья научная