Results 1 to 3 of 3

Thread: To much connections for apache

  1. #1
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default To much connections for apache

    1) Script Title: Ajax Tabs Content Script

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex...tent/index.htm

    3) Describe problem: I use the script for multiple and often reload of data. By now, i reload every 12 seconds data by the script. For that reason, the conection from the script will not be destroyed. With more than 1800 users at hte same time, apache gets a problem by handling the open connections.

    Is it possible to destroy the connection after geting the data?

    Thanks

    bballer

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    I may be wrong on this, but how many requests the server keeps alive is set on the server side (ie: inside httpd.config), and cannot be done using JavaScript. In other words, this really is a server side issue, not Ajax.
    DD Admin

  3. #3
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    thanks for your answer. Yes we know, the server-configuration is one possible way to optimize it. But i thought it would be better to destroy the connection after recieving the data. So we can set the ressources free when they will not longer be needed.

    Otherwise the connection will be destroyed after the server-timeout. By deault 15 seconds is confiured in apache. If i refresh the data faster than 15 secondes, the connection will never be destroyed. That's my problem.

    Regards

Bookmarks

Posting Permissions

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