Server resource and open database connections

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

  1. #1

    Default Server resource and open database connections

    If a host suggests poor performance is possibly due to 'open database'
    connections and Im fairly sure that Ive closed everything - what is an easy
    method to test for connections that havent been cleaned up? (assuming 1000's
    of pages)
    Or, is it just a blow off by the host for their server problem?

    Is it easier to investigate at the server end? if so what can I suggest?

    Cheers.


    dave Guest

  2. Similar Questions and Discussions

    1. IDCS2 - Cannot Open Resource File - ???What does this mean ???
      I have run into this same error message, "Cannot Open Resource File" when saving files. These files are saved on our Windows 2003 network. I think ID...
    2. MX Open Database Connections
      Did MX do away with the settings for database connections? We just switched from Oracle 8i to Oracle 9i and have seen some connectivity failures. ...
    3. MX 6.1 / MySQL 3.23 - Open Connections
      We have been noticing that the Client Variables db connections are not closing even when we set timeouts and turn off Connection pooling. I've...
    4. Maintain (database) Connections option eventuallycrashes server
      anyone get anywhere on this? MACR??? We have the same isue with Oracle.
    5. Passing database resource to object (OO)
      Wan I insatiate an object I want to pass a database resource that can be used throughout the object. The below code should indicate what I want but...
  3. #2

    Default Re: Server resource and open database connections

    dave wrote:
    > If a host suggests poor performance is possibly due to 'open database'
    > connections and Im fairly sure that Ive closed everything - what is
    > an easy method to test for connections that havent been cleaned up?
    > (assuming 1000's of pages)
    > Or, is it just a blow off by the host for their server problem?
    Probably not. There's been lots of documented experiences where the failure
    to close AND DESTROY all ADO objects has caused intermittent server hangs.
    >
    > Is it easier to investigate at the server end? if so what can I
    > suggest?
    >
    > Cheers.
    Depends on your backend database.

    Bob Barrows


    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows Guest

  4. #3

    Default Re: Server resource and open database connections

    msSQL Server


    "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
    news:eb2TUWF$DHA.3232@TK2MSFTNGP10.phx.gbl...
    > dave wrote:
    > > If a host suggests poor performance is possibly due to 'open database'
    > > connections and Im fairly sure that Ive closed everything - what is
    > > an easy method to test for connections that havent been cleaned up?
    > > (assuming 1000's of pages)
    > > Or, is it just a blow off by the host for their server problem?
    >
    > Probably not. There's been lots of documented experiences where the
    failure
    > to close AND DESTROY all ADO objects has caused intermittent server hangs.
    >
    > >
    > > Is it easier to investigate at the server end? if so what can I
    > > suggest?
    > >
    > > Cheers.
    >
    > Depends on your backend database.
    >
    > Bob Barrows
    >
    >
    > --
    > Microsoft MVP - ASP/ASP.NET
    > Please reply to the newsgroup. This email account is my spam trap so I
    > don't check it very often. If you must reply off-line, then remove the
    > "NO SPAM"
    >
    >

    dave Guest

  5. #4

    Default Re: Server resource and open database connections

    Well, you can look for open connections in Enterprise Manager, or by using
    the sp_who system stored procedure, but this may not be foolproof. There may
    be connections that are legitimately left open due to connection pooling
    rather than the failure to close and destroy them. One clue is if there are
    connections that cannot be killed without restarting the SQL Server.

    I just noticed: you said the " ... host suggests poor performance is
    possibly due to 'open database'
    connections ... ". This is different from what I was talking about, where
    the failure to destroy connections caused server hangups. Is the host
    instead talking about your use of Connection object in Application or
    Session? If so, he is right on the mark. Best practices for IIS include the
    maxim "open ADO connections late and close them early". Using a connection
    or recordset object in Application or Session forces all use of that object
    to be serialized - one at a time. This can kill performance. Connections
    should be opened on each page just before they are needed, and closed and
    destroyed immediately after their task is done. It's OK to store a
    connection string in Application. But ADO objects should not be stored in
    Application or Session without using the makfre.bat batch file to change a
    registry setting to make the ADO objects free-threaded. This should NOT be
    done if Jet databases are being used on the server.

    So, is this what your host is talking about?

    Bob Barrows

    dave wrote:
    > msSQL Server
    >
    >
    > "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
    > news:eb2TUWF$DHA.3232@TK2MSFTNGP10.phx.gbl...
    >> dave wrote:
    >>> If a host suggests poor performance is possibly due to 'open
    >>> database' connections and Im fairly sure that Ive closed everything
    >>> - what is
    >>> an easy method to test for connections that havent been cleaned up?
    >>> (assuming 1000's of pages)
    >>
    >> Depends on your backend database.
    >>
    >> 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 [MVP] Guest

  6. #5

    Default Re: Server resource and open database connections

    No, all database connections occur when needed - not as application objects
    (yuk :)
    Its just a general perception of slowness by users and the host suggested
    checking all connections were destroyed.
    Just going through the motions to satisfy them and me.
    Ill check out EM thanks Bob




    "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
    news:e7ckFdH$DHA.624@TK2MSFTNGP11.phx.gbl...
    > Well, you can look for open connections in Enterprise Manager, or by using
    > the sp_who system stored procedure, but this may not be foolproof. There
    may
    > be connections that are legitimately left open due to connection pooling
    > rather than the failure to close and destroy them. One clue is if there
    are
    > connections that cannot be killed without restarting the SQL Server.
    >
    > I just noticed: you said the " ... host suggests poor performance is
    > possibly due to 'open database'
    > connections ... ". This is different from what I was talking about, where
    > the failure to destroy connections caused server hangups. Is the host
    > instead talking about your use of Connection object in Application or
    > Session? If so, he is right on the mark. Best practices for IIS include
    the
    > maxim "open ADO connections late and close them early". Using a connection
    > or recordset object in Application or Session forces all use of that
    object
    > to be serialized - one at a time. This can kill performance. Connections
    > should be opened on each page just before they are needed, and closed and
    > destroyed immediately after their task is done. It's OK to store a
    > connection string in Application. But ADO objects should not be stored in
    > Application or Session without using the makfre.bat batch file to change a
    > registry setting to make the ADO objects free-threaded. This should NOT be
    > done if Jet databases are being used on the server.
    >
    > So, is this what your host is talking about?
    >
    > Bob Barrows
    >
    > dave wrote:
    > > msSQL Server
    > >
    > >
    > > "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
    > > news:eb2TUWF$DHA.3232@TK2MSFTNGP10.phx.gbl...
    > >> dave wrote:
    > >>> If a host suggests poor performance is possibly due to 'open
    > >>> database' connections and Im fairly sure that Ive closed everything
    > >>> - what is
    > >>> an easy method to test for connections that havent been cleaned up?
    > >>> (assuming 1000's of pages)
    > >>
    > >> Depends on your backend database.
    > >>
    > >> 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.
    >
    >

    dave Guest

  7. #6

    Default Re: Server resource and open database connections

    dave wrote:
    > No, all database connections occur when needed - not as application
    > objects (yuk :)
    > Its just a general perception of slowness by users and the host
    > suggested checking all connections were destroyed.
    > Just going through the motions to satisfy them and me.
    > Ill check out EM thanks Bob
    >
    I doubt that would affect performance, unless the orphaned connections were
    leaking memory - however I would think that would cause a server crash, not
    slow performance.

    --
    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 [MVP] 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