Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Re: connection polling

    I am having the same problem - running in a development environment,
    single instance. Have checked that all my connections are being
    closed. Performance counters, even tho they are not resetting
    correctly, showing only low numbers of connections. It's driving me
    crazy. Any other ideas please?
    Roz Lee Guest

  2. Similar Questions and Discussions

    1. Net connection without Internet connection whoas
      Hi does flash media server 2 require a connection to the internet i'm using the evaluation version on a computer which is not connected to the...
    2. Continuous polling for data
      Does anyone know how to create the equivalent of a background task to collect data continuously? I have an application with several forms all of...
    3. asynchronous client updates (server polling?)
      Hi, I'm considering Macromedia Flex for some rich client interaction. One requirement I'm looking to satisfy is the ability to refresh certain...
    4. One NFS connection fine, one NFS connection slow
      Ok, this is all a bit odd. I will draw an ascii picture and hope it survives in Google: sun server | .------mandrake...
    5. Managing read/write socket without polling
      I need to manage multiple socket connections to a server. Each one can have data that needs to be read or written at any time. I would like to be...
  3. #2

    Default Re: connection polling


    i am certain that ive already closed ALL my connections... but still im
    getting this error...

    hope u can help me with this one... tia

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    ker beroz Guest

  4. #3

    Default Re: connection polling

    Hi,

    If you are running long executing queries change the Command
    CommandTimeout property.

    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

  5. #4

    Default Re: connection polling

    the query ran in 2 secs...


    "Natty Gur" <natty@dao2com.com> wrote in message
    news:umh%23%23KsRDHA.2248@TK2MSFTNGP12.phx.gbl...
    > Hi,
    > If you run the query in the SQL Query analyzer, what is the execution
    > time ?
    >
    > Natty Gur, CTO
    > Dao2Com Ltd.
    > 28th Baruch Hirsch st. Bnei-Brak
    > Israel , 51114
    >
    > Phone Numbers:
    > Office: +972-(0)3-5786668
    > Fax: +972-(0)3-5703475
    > Mobile: +972-(0)58-888377
    >
    > Know the overall picture
    >
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Kerberoz Guest

  6. #5

    Default Re: connection polling

    and if you remove the call to the DB , do you still get this error?

    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

  7. #6

    Default Re: connection polling

    no its not,

    i suspect that this is a ado.net thing kinna issue....

    "Natty Gur" <natty@dao2com.com> wrote in message
    news:uWMcGOtRDHA.2128@TK2MSFTNGP12.phx.gbl...
    > Yep, I want to be sure that the access to the DB cause that error.
    >
    > Natty Gur, CTO
    > Dao2Com Ltd.
    > 28th Baruch Hirsch st. Bnei-Brak
    > Israel , 51114
    >
    > Phone Numbers:
    > Office: +972-(0)3-5786668
    > Fax: +972-(0)3-5703475
    > Mobile: +972-(0)58-888377
    >
    > Know the overall picture
    >
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Kerberoz Guest

  8. #7

    Default Re: connection polling

    When creating the Connection object add to the connection string this:
    Max Pool Size=200,Enlist=true

    if again get the same error try in connection string :
    Pooling=false

    I hope these help.

    "Kerberoz" <dec698@hotmail.com> wrote in message
    news:uxgFzUtRDHA.2676@TK2MSFTNGP10.phx.gbl...
    > no its not,
    >
    > i suspect that this is a ado.net thing kinna issue....
    >
    > "Natty Gur" <natty@dao2com.com> wrote in message
    > news:uWMcGOtRDHA.2128@TK2MSFTNGP12.phx.gbl...
    > > Yep, I want to be sure that the access to the DB cause that error.
    > >
    > > Natty Gur, CTO
    > > Dao2Com Ltd.
    > > 28th Baruch Hirsch st. Bnei-Brak
    > > Israel , 51114
    > >
    > > Phone Numbers:
    > > Office: +972-(0)3-5786668
    > > Fax: +972-(0)3-5703475
    > > Mobile: +972-(0)58-888377
    > >
    > > Know the overall picture
    > >
    > >
    > > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > > Don't just participate in USENET...get rewarded for it!
    >
    >

    Salim Afþar Guest

  9. #8

    Default Re: connection polling

    One thing, when you have connection pooling, first hit will open multiple
    connections (the size of the pool) so that is normal as far as I am aware.
    Running out of connections means some of the connections are remaining open
    still.

    Here are few things to try:
    1. Turn connection pooling off and see how many connections being opened by
    the application and are they being closed. To do so add "pooling=no" to the
    connection string. (This may help the application last longer but does not
    solve the connection problem and will happen again unless fixed)

    2. When closing an SqlDataReader dispose of it rather than just closing it
    using:
    ((IDisposable) reader).Dispose();

    3. Run profiler and see which calls are not closing the connection. To do
    so, do the following:

    3.1 Open SQL Profiler and connect to the database. (Dialog will open)
    3.2 Under Events Tab select the following:
    Security Audit
    Audit Login
    Audit Logout
    Stored Procedures
    RPC:Completed
    4. Run the trace and use your application.

    I would personally hit each section of the application that i know calls the
    database and look at profiler to see what happens. What you need to see is:

    connection opened
    procedure name
    connection closed

    Sometimes you may have nested calls, so connection closed may not show up
    till later in the list. Make sure you have as many connections closed as
    open. this will help you narrow down which connection not being closed and
    figure out why.

    Fadi
    "Roz Lee" <rosl@panztel.com> wrote in message
    news:b75327.0307091819.30cba805@posting.google.com ...
    > I am having the same problem - running in a development environment,
    > single instance. Have checked that all my connections are being
    > closed. Performance counters, even tho they are not resetting
    > correctly, showing only low numbers of connections. It's driving me
    > crazy. Any other ideas please?

    fadi Guest

  10. #9

    Default Re: connection polling

    Turning pooling off does not fix the problem, it simply delay it. He has
    open connections are are not getting closed.

    "Salim Afþar" <safsar@luckyeye.com> wrote in message
    news:uPFSLfvRDHA.2408@TK2MSFTNGP10.phx.gbl...
    > When creating the Connection object add to the connection string this:
    > Max Pool Size=200,Enlist=true
    >
    > if again get the same error try in connection string :
    > Pooling=false
    >
    > I hope these help.
    >
    > "Kerberoz" <dec698@hotmail.com> wrote in message
    > news:uxgFzUtRDHA.2676@TK2MSFTNGP10.phx.gbl...
    > > no its not,
    > >
    > > i suspect that this is a ado.net thing kinna issue....
    > >
    > > "Natty Gur" <natty@dao2com.com> wrote in message
    > > news:uWMcGOtRDHA.2128@TK2MSFTNGP12.phx.gbl...
    > > > Yep, I want to be sure that the access to the DB cause that error.
    > > >
    > > > Natty Gur, CTO
    > > > Dao2Com Ltd.
    > > > 28th Baruch Hirsch st. Bnei-Brak
    > > > Israel , 51114
    > > >
    > > > Phone Numbers:
    > > > Office: +972-(0)3-5786668
    > > > Fax: +972-(0)3-5703475
    > > > Mobile: +972-(0)58-888377
    > > >
    > > > Know the overall picture
    > > >
    > > >
    > > > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > > > Don't just participate in USENET...get rewarded for it!
    > >
    > >
    >
    >

    fadi Guest

  11. #10

    Default Re: connection polling

    Please read my reply to Roz. Also make sure you installed SP1 for MDAC 2.7

    [url]http://www.microsoft.com/downloads/details.aspx?FamilyID=9ad000f2-cae7-493d-[/url]
    b0f3-ae36c570ade8&DisplayLang=en

    "ker beroz" <anonymous@devdex.com> wrote in message
    news:#$PBXHpRDHA.1896@TK2MSFTNGP12.phx.gbl...
    >
    > i am certain that ive already closed ALL my connections... but still im
    > getting this error...
    >
    > hope u can help me with this one... tia
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    fadi 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