Previous Next

Thread: Web Site is hanging after a while

Last post 05-12-2008 5:08 PM by ma_khan. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 05-09-2008, 5:50 AM

    • Cooper83
    • Not Ranked
    • Joined on 05-09-2008, 9:37 AM
    • Posts 1
    • Cooper83

    Web Site is hanging after a while

    Hi there,

    we have a big problem with one of our customers websites. After a while the website wont be reachable. The browser is serching before he displays the message "Page cannot be found". When i force the IIS to reset (iisreset over commandline) everything would be fine. The page is coded in classic asp with database connection to an MSSQL Database. We also host other websites coded in asp.net and classic asp which works fine all over the time. We dont know the cause of the problem. For me it semms that there are stacks or heaps which will run out of range. But this is just a suggestion. Maybe someone have some experiences whith such an issue and kan give me a hint to solve the problem. Or give me a point wehre i can start to search.

    We use the iis 6.0 with the latest service packs and updates..

    Thanks you for reading this!

    Daniel

  • 05-09-2008, 9:14 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Lawrenceville, NJ
    • Posts 3,408
    • IIS MVPs
    • tomkmvp

    Re: Web Site is hanging after a while

    Are you sure the error message is "page can not be found"?  That's quite different than what you'd see from a code error.  Make sure friendly error messages are turned off in IE.

  • 05-09-2008, 3:26 PM In reply to

    • ma_khan
    • Top 25 Contributor
    • Joined on 03-16-2008, 4:26 PM
    • Posts 212
    • ma_khan

    Re: Web Site is hanging after a while

    Cooper83,

     I would not advice using IIS reset to solve the problem... you could do

    cscript %windir%\system32\iisapp.vbs" from command line. This would list all the AppPools along with their PID... relate the result to the PID from the task manager and end only the problematic AppPool... This way you wouldn't effect the other websites ... however for the command to run ... you should running IIS 6 in worker process isolation mode...

     Other than this try checking if you are able to connect to the MSSQL DB from the server...

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 05-12-2008, 9:04 AM In reply to

    • Robson58
    • Not Ranked
    • Joined on 05-12-2008, 12:48 PM
    • Posts 2
    • Robson58

    Re: Web Site is hanging after a while

    I have a very similar problem, and have to right click the webite then select Restart IIS.

    What I have found out is that if we have database calls, and for some reason there is a DB connection problem etc then it starts to hang.

    You said enter the following on the command line:

    cscript %windir%\system32\iisapp.vbs"

    then compare in the task manager. Will this have to be done all the time, if the server hangs or is there a solution?

     

  • 05-12-2008, 9:19 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Lawrenceville, NJ
    • Posts 3,408
    • IIS MVPs
    • tomkmvp

    Re: Web Site is hanging after a while

    What technology are you using?  Are you using proper coding techniques?

  • 05-12-2008, 9:29 AM In reply to

    • Robson58
    • Not Ranked
    • Joined on 05-12-2008, 12:48 PM
    • Posts 2
    • Robson58

    Re: Web Site is hanging after a while

    We are using ASP, and some asp.net pages on an Intranet we have in Windows server 2003 IIS 6.

    I have been working here half a year, this particular problem has been ongoing for 2-3 years, before my time.

    There were previous developers before me programming in asp. When I create a connection to any database, I will close it once done, as I know unclosed connections can take up a lot of resources on server and ultimately bottlekneck IIS.

    There are too much pages to go through on out Intranet.

    Maybe we have not quite configured IIS properly or something? Can you suggest any troubleshooting points?

    Much obliged.  

     

     

  • 05-12-2008, 5:08 PM In reply to

    • ma_khan
    • Top 25 Contributor
    • Joined on 03-16-2008, 4:26 PM
    • Posts 212
    • ma_khan

    Re: Web Site is hanging after a while

    Hello,

    You can always try taking a dump... here are some links that might help you...

    http://www.microsoft.com/downloads/details.aspx?familyid=01c4f89d-cc68-42ba-98d2-0c580437efcf&displaylang=en

    http://blogs.msdn.com/rakkimk/archive/2007/08/10/generating-iis-hang-dumps-when-a-certain-event-is-triggered-in-the-event-viewer.aspx

    http://support.microsoft.com/kb/286350

    http://support.microsoft.com/kb/919791
     

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
Page 1 of 1 (7 items)
Page view counter