aviaviavi/toodles

High memory usage, suspected memory leak

Aperta

#44 aperta il 3 nov 2018

 (1 commento) (0 reazioni) (0 assegnatari)Haskell (31 fork)batch import
help wanted

Metriche repository

Star
 (982 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

When running toodles in a project with lots of files, memory usage is very high. I observed values of >2GiB in projects with large node_modules directories when not ignoring them with .toodles.yaml. After ignoring node_modules, memory usage was still ~200MiB.

I created an empty directory with only one file containing

#include <stdio.h>

int main(void) {
  printf("Hi.\n"); // TODO(foo|p=2) Print a more interesting message
  return 0;
}

I then started toodles in that directory and observed it's memory usage.

When loading http://localhost:9001/ for the first time it goes from ~14MiB to ~18MiB, and as I keep refreshing the page, memory usage slowly creeps up, while "cached read" is being printed to the console each time.

Guida contributor