asp/sql server memory leak

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default asp/sql server memory leak

    We are running asp (not asp.net) and vb com dll web sites on a machine
    which also has sql server 2000 sp3a running and uses Windows Server
    2003. We recently migrated from Windows 2000 (same database) where we
    had no problems. However on the new machine, despite much being much
    more powerful and having the same usage, the box is periodically
    grinding to a halt. The cause seems to be sql server using excessive
    amounts of memory, it steadily builds up to after a reboot to a high
    level. This seems to point in the direction of a memory leak, is
    anyone aware of any such problems with asp/sql server on windows 2003
    and how to diagnose/fix them. I am aware of some unclosed connections
    in the asp code and objects that have not be set to nothing but this
    did not seem to cause a problem in the old machine and it is not
    practical to fix them all in the short term. I thought it might be
    unclosed connections although when I looked at SQL Server:General
    Statistics and User Connections I did not seem to see a large or
    increasing number of connections.
    scott_mcarthur2003@yahoo.co.uk Guest

  2. Similar Questions and Discussions

    1. #39438 [NEW]: Memory leak PHP Fatal error: Out of memory
      From: nikolas dot hagelstein at gmail dot com Operating system: NETBSD 3.0.1 AMD64 PHP version: 5.2.0 PHP Bug Type: ...
    2. Memory leak CF MX 6.1 with CFFLUSH and function call ORHOW TO KILL YOUR SERVER
      Try the following thing: <cfsetting enablecfoutputonly='yes'> <cfoutput>Start <BR></cfoutput> <cfloop from='1' to='1000000' index='ind'> <cfset...
    3. major memory leak on CF MX 6.1 and win 2003 server
      CF MX is crashing about ever 24-48 hours due a memory leak. The server currently on has about 8 people using it and a few task runninng. how is the...
    4. sql server memory leak
      scott_mcarthur2003@yahoo.co.uk wrote: SQL Server is designed by default to take all available memory. If more memory becomes available, it grabs...
    5. Memory consumption of Ruby/mod_ruby combo on Apache [memory leak]
      > I don't think so - I think all the modules are loaded when Apache is It didn't have anything to do with IfModules or even Apache. I had a...
  3. #2

    Default Re: asp/sql server memory leak

    Cross post?
    I am seeing this message everywhere.

    --
    Roji. P. Thomas
    SQL Server Programmer ;)
    ________________________
    <scott_mcarthur2003@yahoo.co.uk> wrote in message
    news:92c92d63.0311240147.8a86775@posting.google.co m...
    > We are running asp (not asp.net) and vb com dll web sites on a machine
    > which also has sql server 2000 sp3a running and uses Windows Server
    > 2003. We recently migrated from Windows 2000 (same database) where we
    > had no problems. However on the new machine, despite much being much
    > more powerful and having the same usage, the box is periodically
    > grinding to a halt. The cause seems to be sql server using excessive
    > amounts of memory, it steadily builds up to after a reboot to a high
    > level. This seems to point in the direction of a memory leak, is
    > anyone aware of any such problems with asp/sql server on windows 2003
    > and how to diagnose/fix them. I am aware of some unclosed connections
    > in the asp code and objects that have not be set to nothing but this
    > did not seem to cause a problem in the old machine and it is not
    > practical to fix them all in the short term. I thought it might be
    > unclosed connections although when I looked at SQL Server:General
    > Statistics and User Connections I did not seem to see a large or
    > increasing number of connections.

    Roji. P. Thomas Guest

  4. #3

    Default Re: asp/sql server memory leak

    Please do not multipost Scott. This is definitely a database-related
    question so .asp.db was the perfect group in which to post it. Posting it
    here as well did not increase your chances of getting an answer (most of us
    subscribe to both groups). On the contrary, if somebody had taken his time
    to answer it here, only to find that it was already resolved in the other
    group, that person may have been annoyed enough to ignore any future posts
    from you, thereby decreasing your chances of getting help in the future.


    There are times when you will not be sure which group is most appropriate,
    and you will want to post a question to both groups. In that situation, you
    should use the cross-posting technique, rather than posting the same message
    multiple times. To crosspost, put a semicolon-delimited* list of the
    newsgroups to which you wish to post in the To: header of your post and post
    it once. It, and any replies to it, will appear in all the newsgroups in
    your list. So, if I reply in .asp.db,
    my reply will also appear here in .asp.general.

    * ... or whatever delimiter is recognized by your news client

    Bob Barrows
    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows Guest

  5. #4

    Default Re: asp/sql server memory leak

    [email]scott_mcarthur2003@yahoo.co.uk[/email] wrote:
    > We are running asp (not asp.net) and vb com dll web sites on a machine
    > which also has sql server 2000 sp3a running and uses Windows Server
    > 2003. We recently migrated from Windows 2000 (same database) where we
    > had no problems. However on the new machine, despite much being much
    > more powerful and having the same usage, the box is periodically
    > grinding to a halt. The cause seems to be sql server using excessive
    > amounts of memory, it steadily builds up to after a reboot to a high
    > level.
    SQL Server is designed by default to take all available memory. If more
    memory becomes available, it grabs it. You are describing the default
    behavior. You can limit the memory used by SQL in the server configuration
    screen in Enterprise Manager. But this rarely needs to (should) be done. I
    will say that MS recommends not using IIS and SQL on the same box if you
    need SQL to perform to its maximum capabilities. SQL needs as much memory as
    you can throw at it, especially when used in high-throughput multi-user
    applications.

    > This seems to point in the direction of a memory leak, is
    This is definitely a possibility
    > anyone aware of any such problems with asp/sql server on windows 2003
    > and how to diagnose/fix them. I am aware of some unclosed connections
    > in the asp code and objects that have not be set to nothing but this
    > did not seem to cause a problem in the old machine and it is not
    > practical to fix them all in the short term.
    It's a likely source of the problem ... Sounds like it may be practical to
    fix them after all ....
    >I thought it might be
    > unclosed connections although when I looked at SQL Server:General
    > Statistics and User Connections I did not seem to see a large or
    > increasing number of connections.
    The number of connections does not need to be large. A good sign is an
    orphaned connection, especially if you cannot kill it. There does not need
    to be a large number of connections leaking memory to cause IIS to crash. Al
    l it takes is one.

    However, here are a few other things you can look at:

    [url]http://support.microsoft.com?kbid=309051[/url]

    Check out the IIS6 Resource Kit:
    [url]http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&DisplayLang=en[/url]

    Also, run IISState to capture your problem and have it looked at:
    [url]http://www.iisfaq.com/default.aspx?view=P197[/url]



    Bob Barrows

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.



    Bob Barrows Guest

  6. #5

    Default Re: asp/sql server memory leak

    Thanks for the response, sorry about the multipost, not sure exactly
    where to post in and was getting a bit desparate. One question, how
    can I tell if a connection has been "orphaned"
    > The number of connections does not need to be large. A good sign is an
    > orphaned connection, especially if you cannot kill it. There does not need
    > to be a large number of connections leaking memory to cause IIS to crash. Al
    > l it takes is one.
    >
    > However, here are a few other things you can look at:
    >
    scott_mcarthur2003@yahoo.co.uk Guest

  7. #6

    Default Re: asp/sql server memory leak

    [email]scott_mcarthur2003@yahoo.co.uk[/email] wrote:
    > Thanks for the response, sorry about the multipost, not sure exactly
    > where to post in and was getting a bit desparate. One question, how
    > can I tell if a connection has been "orphaned"
    >
    Several indicators:
    - connections from a non-running application are present
    - The "last batch" was several hours ago. Some applications deliberately
    leave open connections in place, so you will need to use your knowledge of
    the apps to distinguish the legitimate connections from the orphaned ones.
    - You can't "kill" it

    Bob Barrows
    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139