Henning Stoverud Not so interresting personal site

10Dec/090

maxAllowedContentLength in IIS 7

After migrating some of my webapps from IIS 6 to IIS 7, I noticed that I was no longer able to upload files larger than 30 MB. It turns out there is a new setting in IIS 7 which by default restricts maximum allowed content length for a request to 30 MB.

The typical error message you will see in your browser is “The connection to the server was reset while the page was loading.” or something similar.

IISFileUploadRestrictions001

To allow uploading of larger files than 30 MB, you can add this to your web.config file.

<system.webServer>
    <security>
        <requestFiltering>
            <requestLimits maxAllowedContentLength="1000000" />
        </requestFiltering>
    </security>
</system.webServer>

  • Share/Bookmark
Filed under: Uncategorized No Comments
24Aug/090

How to find out what application pool is using CPU

Recently, one of my web servers was using a lot of CPU. This server is hosting several websites, each running in it’s own application pool. Each application pool spins up it’s own w3wp.exe process. When looking at task monitor, there is no information about what application pool each of the worker processes are serving.

You could however, easily figure this out by running a great tool called Process Explorer, which is a freely available tool from Sysinternals/Microsoft.

To figure our what application pool is consuming most CPU, start Process Explorer. You'll then see a window similar to the one below. Find the w3wp.exe process that consumes most CPU, right click on it and select "Properties".

ProcessExplorer001

In the properties window, click the tab "Environment". You'll there find the name of the app pool as shown below.

ProcessExplorer002

  • Share/Bookmark
Filed under: Uncategorized No Comments
20Feb/093

Updates on stoverud.com

If you have visited this website recently (or not so recently) you have might noticed that it has not been updated since 2002. I'm not going to add a lot of new content, but I thought it was better to have nothing, than to have a whole lot of outdated content.

If you for some reason were looking for some of the old contents on this website, here are some links:

  • Share/Bookmark
Filed under: Uncategorized 3 Comments