Top VPS Hosting Provider

Welcome to the myhosting.com Forums.
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    warpig2000 is offline Junior Member
    Join Date
    Jun 2008
    Posts
    1

    Default Resource Problem

    I've recently started having a problem with my site - getting http 500 errors a lot. When I contacted myhosting, they told me that my site was causing an application pool to crash because it was consuming too many resources. They put my site into it's own application pool until I can correct the problem with my code. I don't really understand what could be causing this. What sort of things should I be looking for in my code?

  2. #2
    shortcircuit is offline Junior Member
    Join Date
    Jun 2008
    Posts
    3

    Default Re: Resource Problem

    Usually it's variables you aren't releasing when a connection is closed. They add up and eventually you run out of memory. There could be many other causes as well but that's one of the most common problems. ASP.Net provides methods for tracing your code. Tracing your code can help you identify these sort of problems. Here's some links to documents on the subject. Hopefully this helps:

    http://www.asp101.com/articles/rober...ng/default.asp

    http://msdn.microsoft.com/en-us/libr...we(VS.71).aspx

    http://www.beansoftware.com/ASP.NET-...g-ASP.NET.aspx

  3. #3
    tonyp is offline Junior Member
    Join Date
    Apr 2008
    Posts
    3

    Default Re: Resource Problem

    FIrst you will need to identify what the error is. Your browser settings may be configured to not show you a detailed error message. You can turn on full error reporting by doing the following in Internet Explorer.
    - Go to the Tools menu > Internet Options > Advanced Tab > Browsing
    - Uncheck the "Show Friendly Error Messages" option.

    Load the page that is causing problems again and see what the full error message is. It should tell you what line of code is causing the problem. Post the line of code here for more feedback.

  4. #4
    PotsNPans is offline Master Member
    Join Date
    May 2010
    Posts
    517

    Default

    I was having a similar issue, and this posting helped me locate the error. Thanks for the info.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts