w3wp

Why isn't IIS cleaning up the old worker processes (w3wp.exe) on pool recycle leading to website out of memory exception?

岁酱吖の 提交于 2020-01-01 03:52:10
问题 I have an asp.net-mvc site and recently I am getting an out of memory exceptions on my web server. I only have 1 application pool and we recent set IIS to recycle after it hits a certain limit. I went in the other day and saw 4 w3wp.exe processes running (each with ~1.8GB memory being used) I assume that during the recycle process, it's not killing the old worker process and eventually I get out of memory exceptions on my website because the box only has 8GB memory. I can add memory to the

Visual Studio 2012: Unable to attach the process. A debugger is already attached

限于喜欢 提交于 2019-12-30 04:02:34
问题 I built solution, created application in IIS and mapped it to the application folder. It works fine. Then I go to "Attach to Process", there are two w3wp.exe processes in list, but for one of them I get error "Unable to attach the process. A debugger is already attach." I've googled it but I can't find solution for my problem. 回答1: I have installed Debug Diagnostic Tool v2.0 and as a result I have Debug Diagnostic Service which is started automatically and attached to one of w3wp processes.

Debugging requests which are 'stuck' in an IIS worker process

笑着哭i 提交于 2019-12-13 04:53:08
问题 In case of TL;DR - I basically need guidance regarding what tools are available to debug requests which are issued to IIS and which stall inside a module. I have a problem with an old ASP 2.0 app at the moment whereby it will periodically become unavailable and recycling the app pool (horrible as that may be) doesn't bring it back up 100% of the time. So first of all it presents itself as requests entering the app pool and being trapped in state 'BeginRequest' in RewriteModule. It is not a

CPU usage of w3wp rises to 100% on a ASP.NET MVC4 web application

耗尽温柔 提交于 2019-12-12 10:57:33
问题 We have a ASP.NET MVC4 application which uses Entity Framework 4.0. When we deploy on the production server, the CPU rises after some time (~2-5h) until nearly 100%. The memory also rises then until maximum. After a while the application pool will be resetted automatically because of the high memory. Server: Windows 2008 R2 Standard SP1 IIS: 7 (V 7.5.7600.16385) Only one application pool and one webapplication is running. Stacktrace from Debug Diagnostic Tool of the thread which consumes most

Troubleshoot ASP.net possible memory leak

元气小坏坏 提交于 2019-12-11 05:48:40
问题 It looks like there is a possible memory leak with one of our web applications. w3wp.exe is taking about 1.5gb of RAM and our web services are returning an error saying that it is out of memory. Is there a way to determine which application is causing the excessive memory or profile the actively running websites to see what the cause of the memory issue is? I would post this on Server Fault, but I am more interested in a way of debugging the application to see where the fault is. I can run

Identify the w3wp System.Diagnostics.Process for a given application pool

左心房为你撑大大i 提交于 2019-12-10 15:26:19
问题 I got few web sites running on my server. I have a "diagnostic" page in an application that shows the amount of memory for the current process (very useful). Now this app is 'linked' to another app, and I want my diagnostic page to be able to display the amot of memory for another w3wp process. To get the amount of memory, I use a simple code : var process = Process.GetProcessesByName("w3wp"); string memory = this.ToMemoryString(process.WorkingSet64); How can I identify my second w3wp process

ASP.NET: High CPU usage under no load

瘦欲@ 提交于 2019-12-09 06:07:25
问题 I´m facing a huge problem since a couple weeks. I´ve an asp.net application hosted under IIS7 (W2008 SP1), and every a couple hours it starts consuming near 50% of the CPU when maybe there're no users connected. It´s understandable since we are using Quartz.net to make some application recicling, but we could not reproduce the problem yet. Here is a trace made with JetBrains dotTrace 3.1 while the CPU was high: http://mycenter.info/tmp/DotTraceSnapshot.zip Usually the process wasting CPU is

In VS2010, is there a way to know which application pool a given w3wp.exe is serving, to then decide to attach the debugger to?

佐手、 提交于 2019-12-09 01:52:44
问题 So I'm debugging some websites (one from trunk, one from branch) running locally, in separate apppools. I have trunk and branch solutions open in two VS instances. I'd like to debug trunk in one, and branch in the other. I'd like to know if there's a way to know which application pool each w3wp.exe is serving, to know which one is which when attaching the debugger. Update: the point of this is to write a macro within VS to then let me have a button (per app-pool that is interesting) which

SharePoint 2013 Asynchronous event handler executing synchronously (under wpw3 instead of owstimer)

天涯浪子 提交于 2019-12-08 05:49:03
问题 I created a custom list event handler using Visual Studio 2013 , for ItemAdded and ItemUpdated events. I totally expected those to execute under OWSTIMER.EXE as I do not want to add load to W3wp.exe , since the actions I need to perform in the ER will be rather heavy. However, in debug mode I noticed that it would only hit my Breakpoints by attaching to the W3wp.exe . I even configured the event receiver to be asynchronous in the XML expecting this would force them to run under OWSTimer but

Why isn't IIS cleaning up the old worker processes (w3wp.exe) on pool recycle leading to website out of memory exception?

旧城冷巷雨未停 提交于 2019-12-03 09:30:58
I have an asp.net-mvc site and recently I am getting an out of memory exceptions on my web server. I only have 1 application pool and we recent set IIS to recycle after it hits a certain limit. I went in the other day and saw 4 w3wp.exe processes running (each with ~1.8GB memory being used) I assume that during the recycle process, it's not killing the old worker process and eventually I get out of memory exceptions on my website because the box only has 8GB memory. I can add memory to the box but I am concerned why these old processes are not being cleaned up. Are there any recommendations to