Mô tả

Detect memory leaks like a pro. In this course, you will learn how to connect monitoring to your application, how to take memory snapshots and most importantly, how to compare them with each other to find leaks.

You will learn how memory is organized in V8, why short-lived objects are best, and how to write code that will help you find potential memory leaks.


You will learn how to write code that should not contain any leaks, how to find existing ones, and how to write memory-efficient applications.


The entire course is based on nodejs, but these rules can be used in any language that uses the garbage collector.


We will discuss the algorithms that the V8 uses, how long it takes to free memory.


We will also cover what is included in a memory snapshot, what is contaiment, summary, and how to work with comparing them to each other.


Effective and trouble-free operation of the application is work on many levels, thanks to this course one of them will be explained and I hope it will become a little more friendly at a time when conscious memory management has gone into the background, thanks to such a great tool as GC. However, he himself is not always able to fix everything, sometimes he needs a little help.


This is why this course was created.
I belive that together we can save a lot of memory!

Bạn sẽ học được gì

How to detect memory leaks in React/Javascript/Nodejs/V8

How the memory is orgnised in V8

How to use heapdump

How to take memory snapshots

How to use chrome developer tools to profile your application

How to write code that will help you find leaks instead of hiding them

How to read memory snapshots

Yêu cầu

  • nodejs
  • javascript
  • chrome tools

Nội dung khoá học

5 sections

Introduction

2 lectures
Hello! Introduction to the course
01:53
Required tools
00:28

V8 garbage collector

5 lectures
Introduction
00:35
What is a garbage collector?
03:35
How the memory is organised
03:20
Minor GC - Scavenge
04:43
Major GC - Mark / Sweep / Compact
03:53

Snapshot, Heapdump, Profile!

5 lectures
Configure PHPStorm for profiling
01:44
Create snapshot with PHPStorm
00:59
Create snapshot with Heapdump
01:36
Create snapshot with chrome tools
01:14
How to create usefull snapshoots
03:26

Finding THE LEAK

10 lectures
Intro
00:34
Making an observation
09:09
Buying some time with PM2
03:27
Node js and V8 memory options
07:57
Summary, Comparision, Contaiment, Statistics
09:45
Array memory leak, from heap snapshot to source
11:23
TypeDi type memory leak type
11:15
Closure type memory leak
08:22
SetInterval leak
06:01
Filehandler/Streams leak
10:51

Final words

1 lectures
Summary
00:49

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.