Colin’s IT, Security and Working Life blog

December 17, 2009

Debugging Exchange 2010 W3WP High Memory Usage

Filed under: Fault Finding — chaplic @ 10:49 pm

 

I checked the Wordfish Exchange server and noticed high memory usage; in particular W3WP processes were consuming more memory than store.exe !

A quick Google produced nothing of note; the total memory usage was 1GB. On a server with two heavy users, that seems a tad high! One process was consuming more than 500MB alone.

TaskMan isn’t much help:

image

So, what next?

With headscratchers like this, Process Explorer is always a good bet.

Let’s fire it up, and look for our W3WP processes:

image

 

Let’s open the PID showing high memory usage to see if it gives us a clue:

image

Aha! This tells us the application pool!

Do we have a memory leak? Not sure, and without any web references we’re flying blind. Let’s jump into IIS, into application pools, and program some thread recycling for the thread:

image

 

Let’s recycle the thread now to confirm. Note it’s using 176MB of memory:

image

 

The replacement process is consuming less memory

 

image

Have I spotted a bug in Exchange IIS? Is this expected? Has my recycling helped? Don’t know yet. Only time till tell!

 

Technorati Tags: ,

:

 

 

:

Advertisements

December 4, 2009

FTP Test

Filed under: Programs and Scripts — chaplic @ 4:11 pm

 

FTPTest is a small application for testing the reliability of FTP servers. You supply it with a file, how many times you want the upload the file and it does the rest.  I wrote it to test the most horrible problem to fix – an intermittent fault.

If your source file was test.txt and you selected to upload to times, you would get testn.txt on the remote FTP server, where n is an increasing number

FTPTest is configured via a small INI file, simply edit this in notepad or similar:

#host – address of FTP server
host=www.ftp.com

#directory – what directory to change to after login
directory=

#username – what user to login as
username=aaa

#password – what password to use
password=xx

#origfile – what file to upload. This is copied to
# filenameN where N is an incrementing number depending on howmany
origfile=c:\perlprog\anotherdesk.jpg

#howmany – number of repetitions of upload
howmany=10

To download the program, click on this link. Be sure to get in touch to say hello if you find it of use!

Blog at WordPress.com.