Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Website hangs causing server to hang

Posted on 2014-02-13
2
578 Views
Last Modified: 2014-02-13
Setup:
I have a server (windows server 2012) with two webistes on two different application pools.  Both websites connect to a SQL Server 2012 database and both are ASP.Net 4.5.  Both use JQuery, VB.Net and ASP.Net.  The only major difference is website two has a membership component (have to sign in) to it where website one does not.  

Problem:
Website 1 runs without any problems.  Website two hangs consistently.  Occasionally it works but most of the time the website just 'spins' when the URL is typed into the browser.  When I look at the ISS event logs it will say something like 'A process serving application pool failed to response to a ping'.  However; trying to access website leads to the whole server going through this process:
1. Server Hard hangs (totally unresponsive--website one starts to hang as well) until the browser is stopped.
2. After browser stops, the server will go into a 'soft hang' (The cursor moves and you can  slowly navigate on server--website one starts to work again).  This will last for about 5 minutes
3. Everything on server is fine.

I suspect it is a setting that deals with ASP.net in IIS, but I'm not sure how to verify this.   I believe this because if I disable my web.config file, the website will work fine.  However, if I have this (and only this) in my web.config:

<?xml version="1.0"?>
<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.5"/>
    <httpRuntime targetFramework="4.5"/>
</configuration>

Open in new window


the website starts to crash again.

Question:
How do I verify/locate (and stop) the source of the hang?  OR what are some settings I can check?

Thanks!
0
Comment
Question by:badrhino
2 Comments
 
LVL 20

Accepted Solution

by:
Patrick Bogers earned 500 total points
ID: 39856787
What if you just comment out line 4, production websites should have debugging disabled.

Doing so causes a number of non-optimal things to happen including:
 
1) The compilation of ASP.NET pages takes longer (since some batch optimizations are disabled)
2) Code can execute slower (since some additional debug paths are enabled)
3) Much more memory is used within the application at runtime
4) Scripts and images downloaded from the WebResources.axd handler are not cached
0
 
LVL 1

Author Comment

by:badrhino
ID: 39856848
Sage,  That seemed to worked.  I didn't think about this as the web is still under construction....Thanks!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question