web-garden

ASP.NET Session Lost When Use Web Garden Settings

廉价感情. 提交于 2019-12-25 16:47:18
问题 I have an ASP.NET MVC (.NETFramework 4.5) application, when I hosted (IIS-7.5), I set max Worker process to 5, And Set Session State to StateServer And Set a static machinekey , after all my session is null, Why? Is there any settings that I lost? any suggestion? 回答1: The problem that I found is so wired, when I use web-garden or web-farm the object that stored in session must be serializable but in regular we don't need this. So I just add a serializable attribute above the object that

IIS6 Available Memory for 32-Bit Application with Web Garden on x64 OS (32Gb Ram)

谁说我不能喝 提交于 2019-12-24 07:14:12
问题 We have IIS6 running on a 64-bit Windows 2003 server with 32Gb physical RAM. Due to some older 32-bit dependencies within our .NET 3.5 ASP.NET application, we are currently forced to run our IIS worker process in 32-Bit wow64 mode which I understand gives us access to 4Gb of memory for our worker process. My question is if we use the Web Garden setting and configure say 4 worker processes, can each worker process access 4Gb of memory each, thus giving us access to approx 16Gb of memory. Or

Singleton object in IIS Web Garden

痴心易碎 提交于 2019-12-18 16:57:14
问题 I have a lot of Singleton implementation in asp.net application and want to move my application to IIS Web Garden environment for some performance reasons. CMIIW, moving to IIS Web Garden with n worker process, there will be one singleton object created in each worker process, which make it not a single object anymore because n > 1. can I make all those singleton objects, singleton again in IIS Web Garden? 回答1: I don't believe you can ( unless you can get those IIS workers to use objects in

Web Garden and Static Objects difficult to understand

寵の児 提交于 2019-12-10 12:23:03
问题 I am in the process of investigating to convert our web application to the web farm. So I started with web garden, by converting the 'Maximum Worker Process = 3'. Following is the simplified version of my problem. Following is my Static Object class. public static class MyStaticObject { public static string MyProperty {get;set;} } Then on Page Load I initialized the Static Objects as follows - MyStaticObject.MyProperty = "My Static Property"; Then using asp.net ajax [WebMethod] create the

ASP.Net increase MaxProcesses (web garden) using state server and caching

一个人想着一个人 提交于 2019-12-07 08:00:57
问题 I have an ASP.Net website on IIS7 and I am planing to increase the MaxProcesses to match the number of cores on the server (4 cores, 64bit Windows Server 2008). From what I read, if I increase the MaxProcesses to create a web garden I have to set an out-of-process state server, so I am planing to use the ASPState service to share sessions between worker processes. But there is something that is not clear to me, is Caching also shared? Or do I have to set a new custom provider for the cache?

IIS Web Garden advantages / disadvantages [closed]

扶醉桌前 提交于 2019-11-30 15:04:25
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . When do you need IIS Web Garden feature. What's pro's and con's? 回答1: Complete answer from David Wang. Pros: An interim solution for

Singleton object in IIS Web Garden

最后都变了- 提交于 2019-11-30 14:38:18
I have a lot of Singleton implementation in asp.net application and want to move my application to IIS Web Garden environment for some performance reasons. CMIIW, moving to IIS Web Garden with n worker process, there will be one singleton object created in each worker process, which make it not a single object anymore because n > 1. can I make all those singleton objects, singleton again in IIS Web Garden? kervin I don't believe you can ( unless you can get those IIS workers to use objects in shared memory somehow ). This is a scope issue. Your singleton instance uses process space as its