Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High memory usage, suspected memory leak #44

Open
ght opened this issue Nov 3, 2018 · 1 comment
Open

High memory usage, suspected memory leak #44

ght opened this issue Nov 3, 2018 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@ght
Copy link

ght commented Nov 3, 2018

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.

@aviaviavi
Copy link
Owner

Thanks for pointing this out! A memory leak would not be entirely surprising, I wasn't coding particularly carefully with respect to memory. I'm not the most familiar with space leaks in Haskell, so time to learn :)

To anyone reading who may have any leads or ideas: please feel free to join the discussion here!

@aviaviavi aviaviavi added the help wanted Extra attention is needed label Nov 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants