ccmbioinfo / osmp

One-Sided Matching Portal
6 stars 1 forks source link

Server: Fix memory leaks in express-session #306

Closed jennyziyi-xu closed 2 years ago

jennyziyi-xu commented 2 years ago

When server container is deployed to production, this error is encountered: "Warning The default server-side session storage, MemoryStore, is purposely not designed for a production environment. It will leak memory under most conditions, does not scale past a single process, and is meant for debugging and developing."

Among a list of compatible session stores for express-session, I have chosen memorystore for its ability to avoid memory leaks.