Results 1 to 5 of 5

Thread: Open Mysql connections

  1. #1

    Join Date
    Jan 2006
    Posts
    48

    Default Open Mysql connections

    We installed AE 4.0 IQ and we have 1500 users. Usually there are 120 users online at the same time. But we've got major server problems. The site is verry often down. Users get the message couldn't connect database.
    We've contacted our hosting company (xxxhostit.com) very often about this problem and they blame us. We have to many open connections to the database. When I check/test somethings local I see, when I'm logged in as a single user and I'm surving over the site, there are many connections to mysql server, the script didn't close the connections.

    Is there anyone who has the same problem or is there anyone who has an solution for this major problem?

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Hi,

    Actually - this is a two sided problem. First - your hosting company should make sure they have the number of connections and other parameters set correctly for mySQL to support a high number of concurrent users.

    Make a phpinfo.php file – so you can see for yourself how they have things configured.

    As for the dating site, and db.inc.php - you may want to try a couple of things:

    1) disable pconnect in db.inc.php, or if you can, with a php.ini override in either .htaccess or a local php.ini

    2) take a look at the code (or lack of) where connections are explicitly closed - and modify that to do a better job of closing completed connections.

    However - perhaps #1 is the first step.... search ModMySite for pconnect to find threads about this. Send me a PM if you would like us to help you with this.

    Rob

    Quote Originally Posted by freexel
    We installed AE 4.0 IQ and we have 1500 users. Usually there are 120 users online at the same time. But we've got major server problems. The site is verry often down. Users get the message couldn't connect database.
    We've contacted our hosting company (xxxhostit.com) very often about this problem and they blame us. We have to many open connections to the database. When I check/test somethings local I see, when I'm logged in as a single user and I'm surving over the site, there are many connections to mysql server, the script didn't close the connections.

    Is there anyone who has the same problem or is there anyone who has an solution for this major problem?
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  3. #3
    dmatkov
    Guest

    Default Sorry to post but....

    Rob,

    I have sent you several pm's and an email regarding request for paid assistance over past number of days... no response. Are you getting my messages?

  4. #4
    mark
    Guest

    Thumbs up

    Quote Originally Posted by dmatkov
    Rob,

    I have sent you several pm's and an email regarding request for paid assistance over past number of days... no response. Are you getting my messages?
    I already informed Rob about this, Although his out of town this week Im sure he'll update you.

  5. #5

    Join Date
    Jan 2006
    Posts
    48

    Default

    We've t this message from our hosting company:
    | Id | User | Host | db | Command | Time | State | Info|
    |9698 | *** | *** |***| Sleep | 32 | | NULL|

    Can someone give us advise?
    Last edited by freexel; 01-25-2007 at 05:03 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Database Error - Too Many Connections
    By Britster in forum General Troubleshooting
    Replies: 6
    Last Post: 12-23-2007, 10:28 AM
  2. MySQL Error [persistant connections]
    By ElFalu in forum General Troubleshooting
    Replies: 0
    Last Post: 10-14-2007, 09:53 AM
  3. Ray Self Connections
    By Smoge in forum Ray Community Widget Suite
    Replies: 1
    Last Post: 09-28-2007, 08:00 AM
  4. Open connections
    By freexel in forum Database
    Replies: 1
    Last Post: 12-12-2006, 12:08 PM
  5. failed connections to my database
    By outlander in forum Web Hosting Talk
    Replies: 1
    Last Post: 06-22-2006, 01:30 AM

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
  •