Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: use md ordered list properly
  • Loading branch information
tony-go committed May 10, 2022
commit 785b42ca6c1e68e11a201bf64ceb9b589fe251cf
8 changes: 4 additions & 4 deletions locale/en/docs/guides/diagnosis-memory-leak.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ In this guide, you'll go through the fundamentals of memory leak diagnosis. And

For the proposal of this guide, we will use a simple web server empowered with [Fastify](https://www.fastify.io/).

1 - Create a new project
1. Create a new project

```bash
npm init -y
```

2 - Install dependencies
2. Install dependencies

```bash
npm i fastify
```

3 - Create a simple server (server.js)
3. Create a simple server (server.js)

```js
import Fastify from 'fastify';
Expand Down Expand Up @@ -60,7 +60,7 @@ server.listen(9999, (err, address) => {

> Even if the leak is evident here, we'll explore two different tools that could help us to spot the leak. However, in the context of a real-world application finding the source of a leak could be cumbersome.

4 - Run the application server
4. Run the application server

```bash
node --trace-gc server.js
Expand Down