There are many reasons that threads can be blocked causing an application to hang. This is an example of one of those situations. I loaded a memory dump into WinDbg and loaded the PSSCOR2 extension. When I executed !syncblk, I received the following result shown in the following. 0:000> !syncblk Index SyncBlock MonitorHeld Recursion Owning […]
Read More →Author: Benjamin Perkins
A global directory for IIS Express
I know of 3 different Microsoft web server versions that can be used to host and test your web applications. They are: Internet Information Services (IIS) Cassini Web Server IIS Express IIS is the full version with many features and can be enhanced and extended in many, many ways. It can be installed on your […]
Read More →Troubleshooting an IIS Add Roles and Features error
It is common to install or uninstall Web Server features. You need these features to execute ASP.NET pages, perform logging, authenticate user requests, etc…. Figure 1 shows a sub-set list of features which you may choose to install. Figure 1, Add Roles and Features list, small example Try walking through the ‘Add Roles and Features’ […]
Read More →Recreate Event Viewer logs
If you ever receive “the event log file is corrupted” on Windows 2008 R2, try the following list of actions to fix it. Following these steps result in the recreation of the event logs. Open a command as an Administrator and enter “NET STOP EVENTLOG” as shown in Figure 1. Figure 1, stopping event logging […]
Read More →How to capture a memory dump of a W3WP process that consumes too much CPU
If you want to find out why a W3WP worker process is consuming so much CPU, you can use ProcDump. You might also use LogParser to look at the time-taken field, but to get to the root cause you will need to get deep into the source. Before you can get a memory dump, you […]
Read More →StaticCompressionDisableCpuUsage and DynamicCompressionDisableCpuUsage
Performance problems are generally difficult to find the root cause of and fix. There are so many ‘touch points’ that where to start looking much less finding the root cause while the issue is happening, can be a challenge. I found these 4 Compression settings very interesting and a system administrator should review them and […]
Read More →Professional Microsoft IIS 8, co-author Benjamin Perkins
The Professional Microsoft IIS 8 book is now available, check it out. I had the opportunity to contribute a few chapters to it. What an awesome experience! There are lots of examples, experiences, discussions and reviews of the new features found in IIS 8. You can get an inside look at the contents on Amazon […]
Read More →Change or modify a Response Header value using URL Rewrite
If you have ever used a tool that allows you to view the request and response headers, you certainly know that there is some information being passed back and forth between the client and the server that is not simply visible. An example of possible fields can be found here or here. New in IIS […]
Read More →NHibernate Serialized startup
In all of my NHibernate implementations I serialize the startup. It saves a noticeable amount of time. We know that without it, NHibernate validates all the mapping files each time we start the program. If we only have 1 or 2 simple files it is not a problem, however, if you have a large implementation, […]
Read More →Nhibernate MappingException could not compile the mapping document
The following error is generally caused when there is a misspelling or case miss match between the class file and the mapping file. Review the contents of both and confirm spelling and case are the same so that the ‘Could not compile the mapping document: hbm.xml’ error can be avoided. The inner exception is something […]
Read More →