-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Warning in production env #1187
Comments
Are you using any session store ? |
This isn't an issue. You haven't defined anything in In a production env you should use something like redis, which is what SailsJs is built to use... See the docs here. More specifically |
@mikedevita I have a follow-up question about this. I am not using any session in my code so how can I make sure there won't be memory leak in prod? Should I just ignore this warning? |
Should I still get this warning if I have |
For future reference, there's more information and tips on diagnosing memory leaks in Node apps, and on reproducing+reporting suspected memory leaks in Sails here: |
Also, see sailsjs.org/documentation/concepts/deployment for more info on deploying to production. |
The application worked fine in prod, but when I switched from EJS to Handlebars, I started getting the following error on sails lift (in prod):
Warning: connection.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
The text was updated successfully, but these errors were encountered: