application-pool

diagnosing performance of asp.net website / application pool

耗尽温柔 提交于 2020-01-13 19:45:29
问题 I am having an issue with a website developed using ASP.Net/C# sometimes taking all the CPU usage (100%) for an indefinite period of time. Do you have any ideas / tips how one would go about what could be causing such a resource hog? The website is still responding, so it is not crashed or something like that. I'm a bit clueless where to start! Thanks! 回答1: DebugDiag is a great place to start: http://www.microsoft.com/download/en/details.aspx?id=26798 回答2: Start using Performance Counters on

User rights needed for IIS 7.5 application pool user (domain user, not the AppPoolIdentity)

房东的猫 提交于 2020-01-10 09:06:10
问题 We have an active directory domain (let's call it foodomain ) and a domain user account ( foodomain\fooAppPoolUser ) used for the IIS application pool identity. We want to run the app pool under this user account and not under Network Service or the new AppPoolIdentity as we have to access SQL server and have multiple applications on IIS (with own app pools) accessing different databases. The problem is that I can't find a clear HOW-TO explaining, which user rights have to be set for this

User rights needed for IIS 7.5 application pool user (domain user, not the AppPoolIdentity)

半腔热情 提交于 2020-01-10 09:06:04
问题 We have an active directory domain (let's call it foodomain ) and a domain user account ( foodomain\fooAppPoolUser ) used for the IIS application pool identity. We want to run the app pool under this user account and not under Network Service or the new AppPoolIdentity as we have to access SQL server and have multiple applications on IIS (with own app pools) accessing different databases. The problem is that I can't find a clear HOW-TO explaining, which user rights have to be set for this

Difference between an application domain and an application pool?

无人久伴 提交于 2020-01-09 12:51:07
问题 What is difference between application domain and application pool? I have read many articles regarding these two terminology. but still unable to get proper understanding about them. Please elaborate it with simple description. Thanks 回答1: IIS process is w3wp; Every application pool in IIS use it's own process; AppPool1 uses process 3784, AppPool2 uses process 5044 Different applications in Asp.net will use different AppDomain; AppTest1 and AppTest2 are in different AppDomain, but in the

Overcome compilation(?) pause on *secondary* initial ASP.Net application startup?

百般思念 提交于 2020-01-05 03:49:06
问题 After deploying an ASP.Net application to a new server, the first user to hit the app gets a long pause, presumably because the app is performing its initial compilation. However, this pause seems to also also occur after the application has timed out and unloaded itself from memory. The first compilation would be tolerable as it only happpens once, but the 2nd one seems to me like it should be unnecessary....is there a workaround to address this issue? It would be nice to be able to extend

What is the different between Session Timeout and Idle Timeout in IIS?

旧街凉风 提交于 2020-01-01 08:35:09
问题 In IIS, Select Default Web Site > Properties > Home Directory > Application Settings > Configuration > Options, the default Session timeout is 20 minutes. Also, Select Application Pools > DefaultAppPool > Properties, in the Performance tab, there is Idle timeout which is default to 20 minutes too. What is the different between those two timeouts? 回答1: The idle timeout determines if, and if so after how many minutes of idle time an AppPool is recycled. Recycling the AppPool frees resources but

Create an application pool that uses .NET 4.0

余生颓废 提交于 2019-12-31 10:07:18
问题 I use the following code to create a app pool: var metabasePath = string.Format(@"IIS://{0}/W3SVC/AppPools", serverName); DirectoryEntry newpool; DirectoryEntry apppools = new DirectoryEntry(metabasePath); newpool = apppools.Children.Add(appPoolName, "IIsApplicationPool"); newpool.CommitChanges(); How do I specify that the app pool should use .NET Framework 4.0? 回答1: I see from the tags you're using IIS7. Unless you absolutely have to, don't use the IIS6 compatibility components. Your

Create an application pool that uses .NET 4.0

醉酒当歌 提交于 2019-12-31 10:07:06
问题 I use the following code to create a app pool: var metabasePath = string.Format(@"IIS://{0}/W3SVC/AppPools", serverName); DirectoryEntry newpool; DirectoryEntry apppools = new DirectoryEntry(metabasePath); newpool = apppools.Children.Add(appPoolName, "IIsApplicationPool"); newpool.CommitChanges(); How do I specify that the app pool should use .NET Framework 4.0? 回答1: I see from the tags you're using IIS7. Unless you absolutely have to, don't use the IIS6 compatibility components. Your

erratic behavior of Preload()

爱⌒轻易说出口 提交于 2019-12-31 03:49:05
问题 I have a WCF application hosted in Windows Azure. It has IIS v8.0 I have used IProcessHostPreloadClient's Preload() method for application warmup Now, I have two issues here: 1) whenever my application pool recycles, the Preload() function is called twice. I have some static variables being initialized in the preload() method which will persist in my worker process (w3wp.exe) . What I have seen is interesting: My current worker process ID is ( w3wp.exe 1234 ,say) when recycled, preload is

Application pool identity in IIS and Integrated security to SQL Server

人走茶凉 提交于 2019-12-30 11:01:13
问题 If I have an ASP.NET web app using impersonation and a SQL Server connectionstring with Integrated Security = true, does the identity of the IIS application pool of the app play any role? Does the identity need to be set to some specific user (LocalSystem, NetworkServices or a domain user)? This is on Windows 2003. 回答1: If the SQL Server is on a different box than IIS then the identity of the IIS application pool has to be trusted for constrained delegation. See How To: Use Protocol