Реалізація моніторингу витоків пам’яті в Node.js-додатках з використанням heap-снапшотів
Вантажиться...
Файли
Дата
Автори
Науковий керівник
Редактор
Інші учасники
Відповідальний
ORCID
Назва журналу
Номер ISSN
Назва тому
DOI
Альтернативна назва
Анотація
У сучасних веб-сервісах на базі Node.js проблема витоків пам’яті може призвести до деградації продуктивності та збоїв. Node.js використовує автоматичне збирання сміття, однак витік пам’яті виникає, коли блок пам’яті більше не використовується додатком, але не звільняється збирачем сміття. У роботі проаналізовано методи виявлення витоків пам’яті в Node.js-додатках. Особливу увагу приділено використанню heap-снапшотів – знімків купи пам’яті процесу Node.js – для моніторингу та діагностики витоків. Розглянуто процес отримання heap-снапшотів та інструменти їх аналізу за допомогою Chrome DevTools. Наведено результати аналізу даних снапшотів для виявлення невивільнених об’єктів. Запропоновано практичні рекомендації щодо запобігання витокам пам’яті та підвищення надійності Node.js-додатків.
Memory leaks in Node.js applications can lead to performance degradation and crashes. Node.js uses automatic garbage collection; however, a memory leak occurs when a block of memory that is no longer needed by the application is not released by the garbage collector. This paper analyzes methods for detecting memory leaks in Node.js applications, with a focus on using heap snapshots for monitoring and diagnostics. The process of obtaining heap snapshots and tools for their analysis using Chrome DevTools are examined. The snapshot data analysis is presented to identify objects that are not freed from memory. Practical recommendations are provided to prevent memory leaks and improve the reliability of Node.js applications.
Memory leaks in Node.js applications can lead to performance degradation and crashes. Node.js uses automatic garbage collection; however, a memory leak occurs when a block of memory that is no longer needed by the application is not released by the garbage collector. This paper analyzes methods for detecting memory leaks in Node.js applications, with a focus on using heap snapshots for monitoring and diagnostics. The process of obtaining heap snapshots and tools for their analysis using Chrome DevTools are examined. The snapshot data analysis is presented to identify objects that are not freed from memory. Practical recommendations are provided to prevent memory leaks and improve the reliability of Node.js applications.
Опис
Ключові слова
УДК
Тип документа
Мова
ISSN
Посилання на публікацію
Серія, номер
ISBN
978-617-8132-48-8
ББК
Інші ідентифікатори
Пов’язані матеріали
Спонсорська підтримка
Правовласник
Бібліографічний опис
Палій О. М. Реалізація моніторингу витоків пам’яті в Node.js-додатках з використанням heap-снапшотів // Матеріали LIV Всеукраїнської науково-технічної конференції підрозділів ВНТУ, Вінниця, 24-27 березня 2025 р. Електрон. текст. дані. 2025. URI: https://conferences.vntu.edu.ua/index.php/all-fksa/all-fksa-2025/paper/view/23679.
Схвалення
Рецензія
Доповнено
Цитується в
Список використаної літератури (4)
- Node.js Documentation – Using Heap Snapshot. URL: https://nodejs-org.translate.goog/en/learn/diagnostics/memory/using-heap-snapshot? _x_tr_sl=en&_x_tr_tl=uk&_x_tr_hl=uk&_x_tr_pto=sc (дата звернення: 15.03.2025).
- Debugging Node.js Memory Leaks: How to Detect, Solve or Avoid Them in Applications. URL: https://sematext-com.translate.goog/blog/nodejs-memory-leaks/?
- Debugging Memory Leaks in Node.js Applications. URL: https://www-toptal-com.translate.goog/nodejs/debugging-memory-leaks-node-js-applications? _x_tr_sl=en&_x_tr_tl=uk&_x_tr_hl=uk&_x_tr_pto=sc (дата звернення: 15.03.2025)
- Memory Leakage Testing Using Chrome Heap Snapshot Tool. URL: https://www-pixelqacom.translate.goog/blog/post/memory-leakage-testing-using-chrome-heap-snapshot-tool? _x_tr_sl=en&_x_tr_tl=uk&_x_tr_hl=uk&_x_tr_pto=sc (дата звернення: 15.03.2025).