Closeing connections

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

  1. #1

    Default Re: Closeing connections

    Hi Croney,

    The way I see things if that if you want your page to refresh every minute,
    then that is what you should do. If that proves to be more than the
    resources you have available can handle, then up the resources. And then
    when the reality of the world sets in and you are informed that upping the
    resources is not in the budget, then switch to five minutes. What I mean is
    that you should not make decisions on the functionality of your application
    based on hardware limitations, unless there is no way to get around those
    limitations - which is often the case in real life.....

    Just make sure that your pages are as efficient as possible. There are many
    things you can do to keep overhead down. Aaron has a good FAQ about general
    efficiency of ASP pages. Read this, make sure you're doing everything that
    is applicable and reasonable, and then go through your code again to see if
    you can make it better. [url]http://www.aspfaq.com/2424[/url]

    Ray at home

    --
    Will trade ASP help for SQL Server help


    "Croney" <n@n.com> wrote in message
    news:0e1d01c35074$c2badb40$a601280a@phx.gbl...
    > Hi there.
    >
    > I have an ifraim included in my default page, which
    > displays information pulled from several databases. This
    > information scrolled from top to bottom displaying things
    > like news, new events and other information. The Main page
    > also has queries to databases checking for changes made to
    > update the page with an image next to the relating heading
    > to advise the user that there is some thing new under that
    > heading.
    >
    > Whiles the main page is not reloaded automatically the
    > iframe is.
    >
    > My question is. When a maxim of 80 users (Intranet) have
    > this main page loaded and the iframe being reloaded every
    > minute should I close the connection after each connection
    > is finish or at the end of all the connections?
    >
    > There are about 5 connections made for each user which
    > could be about 40 users possibly refreshing at the same
    > time totaling 200 connections being made at the same time.
    >
    > I am using IIS5 on Windows200 Server. This server is not
    > dedicated to these services and therefore has other
    > operations also to handle.
    >
    > I am thinking of setting it to reload by the clock using
    > JavaScript to check for every five minutes and therefore
    > all users accessing that page will be updated the same
    > time. Instead of setting to reload by counting the time
    > that it has been up as this may cause requests being made
    > all day long by the users as they view the page at
    > different times.
    >

    Ray at Guest

  2. Similar Questions and Discussions

    1. Connections
      > If too many connections are made to an access database what error message am Microsoft JET Database Engine error '80004005' Unspecified error...
    2. How many connections can be use?
      Hi All! I have some problems like this: 1. I write a chat application by using chat component. And each of private chat room. I must use 2...
    3. Can FCS do p2p connections
      Hi, i'm a newbie in this world, i'm trying the trial version of FCS and i need to know how to make a connection pear to pear, if it is possible or...
    4. Connections?
      Found that tutorial now! http://www.macromedia.com/devnet/flashcom/articles/broadcast_receiver.html. However, when making connections for...
    5. ASP.Net and ADO Connections
      Carl: In the current VB6 app, the user logs into the db once, does a whole lot of things across 7-15 screens, and gets logged off the db as he...
  3. #2

    Default Re: Closeing connections

    Croney wrote:
    > Hi there.
    >
    > My question is. When a maxim of 80 users (Intranet) have
    > this main page loaded and the iframe being reloaded every
    > minute should I close the connection after each connection
    > is finish or at the end of all the connections?
    Ray gave you good advice, but it's hard to tell if he answered your question
    (for me anyways), so:
    Yes, connections should be opened late and closed early to allow ODBC
    Connection Pooling or OLEDB Session Pooling (depending on which you are
    using) to work properly This helps keep resource usage down since new
    connections don't have to be spawned every time a page requests a
    connection. So the less time a page has a connection open, the better chance
    that the connection will be used by another thread that needs one. So close
    your connections as soon as you are finished with them.

    HTH,
    Bob Barrows



    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