简体   繁体   English

IIS应用程序池

[英]IIS App Pool

If my host automatically recycles the app pool when it reaches a certain size will this cause all users sessions to be lost and the user to be logged out? 如果我的主机在达到一定大小时自动回收应用程序池,这是否会导致所有用户会话丢失并注销用户?

If this is the case would moving InProc sessions to SQL fix the issue? 如果是这种情况,将InProc会话移至SQL是否可以解决问题? Would doing this also save much memory? 这样做还会节省很多内存吗?

Thanks 谢谢

Gavin 加文

Yes, all user sessions in the pool are gone. 是的,池中的所有用户会话均已消失。 If you use an out-of-proc SQL Server, it will survive app pool resets. 如果您使用过程外的SQL Server,它将在应用程序池重置后幸免。 see http://www.eggheadcafe.com/articles/20021016.asp for some more remarks. 有关更多说明,请参见http://www.eggheadcafe.com/articles/20021016.asp

It will save memory on your IIS server, but be aware of the performance considerations. 它将节省IIS服务器上的内存,但请注意性能注意事项。

是的,将会话移至SQL Server将解决该问题。

是的,使用会话外的解决方案将解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM