-
Notifications
You must be signed in to change notification settings - Fork 846
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
EJS Rethrow Function Memory Leak #401
Comments
This looks like a much more helpful example than what we have previously gotten here: #359 (comment) It might help us narrow things further, although it could very well involve the way that EJS is integrated into Express. We don't see this issue with a minimal script that does nothing but |
Interesting... |
Looks like the problem was something under my nose the whole time... |
I am testing this simple app on Ubuntu 18.04 with EJS version 2.6.1 and Express.js version 4.16.3 .
The home.ejs file is in a folder called home which is located in the views directory.
Contents of the .ejs files are the following:
I was investigating a memory leak in another app and decided to test it in the simplest manner possible.
Then, I made this app and the memory leak persists.
Testing for memory leakage was realized using node --inspect and expose GC flags.
User simulation was achieved using Siege.
The results:
Memory is constantly getting allocated to EJS strings, but the strings are never Garbage collected.
Am I missing something in my code, or is this ejs package related ?
The text was updated successfully, but these errors were encountered: