我在windows服务器上部署了我的应用程序,在本地机器上运行良好,我在三台不同的本地机器上尝试过,运行良好。服务器是.net托管的,托管公司具有启用我已经启用的nodejs应用程序的功能
在执行任何操作之前检查会话的代码
// middleware function to check for logged-in users
var sessionChecker = function(req, res, next) {
if (req.session.user && req.cookies.user_sid) {
next();
} else {
res.redirect("/")
}
};
9/11/2018 11:05:54 pm a worker process with process id of '3820' serving
application pool has requested a recycle because
it reached its virtual memory limit.
9/11/2018 11:04:54 pm a worker process with process id of '9580' serving
application pool has requested a recycle because
it reached its virtual memory limit.
9/11/2018 11:03:54 pm a worker process with process id of '1720' serving
application pool has requested a recycle because
it reached its virtual memory limit.
之后,我在ChromeDevTools的本地机器上调试了我的应用程序,即使一次也不会占用超过30MB的内存