developit / developit/vhtml

SSR Memory leak

Aperta
#20 6 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
814
Fork
37
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I recently added this package in our project and I was told it's causing memory leak in our prod env.

After reading the code, it seems like it's the `sanitized` cache that's causing the problem.

```javascript
sanitized[s] = true;
```

Every generated html string(`s`) would be stored in this cache, and it seems to have caused our server run out of memory and keeps restarting.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.