osCmax v2.5 User Manual
Results 1 to 3 of 3

Connections to MySQL not closing

This is a discussion on Connections to MySQL not closing within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; I've been informed by my webhost that one of my stores that's running osCMax 1.7 is crashing their server. Apparently, ...

      
  1. #1
    Member
    Join Date
    Aug 2004
    Posts
    49
    Rep Power
    0


    Default Connections to MySQL not closing

    I've been informed by my webhost that one of my stores that's running osCMax 1.7 is crashing their server. Apparently, connections to the database are not being closed when a customer leaves the site, so each time a new visitor enters a new connection is opened and eventually all the available memory is used up and the server goes down. Considering the server has 1GB of RAM, that's a lot of open connections.

    I've added three mods to the store, QTPro (modified to work with BTS), CVV 1.4 and Additional Table Rate Options v1.2. Does anyone have any idea what could be causing this problem?

    I did go into both config files and set the persistent connections to "false" but I don't know if this will solve the problem or effect the way the store runs.

    Help!

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default RE: Connections to MySQL not closing

    Persistent connections should ALWAYS be set to false on shared hosting.

    Most shared hosts already disable persistent connections serverwide which will not allow persistent connections, even if you have it set to true osC.

    I suggest you look into any slow queries that are running, as that can cause things to die quickly, if you have a lot of slow queries running, and starting before others finish, you can kill a server.

    Really, you should be working with your host on this. Have them provide a slow query log for you to look at the problem queries from your site. Also, they should provide any relevant log information that can help you track down the source of the problem. Most likely they will already have this info, since they would need it to even know it was your shop and not somebody elses that was causing the problem.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Member
    Join Date
    Aug 2004
    Posts
    49
    Rep Power
    0


    Default RE: Connections to MySQL not closing

    Thank you, Michael. I'll send your reply straight on to my webhost.

    This store is my biggest success to date, and I'm anxious to keep it running smoothly. The client has four brick-and-mortar stores, and this website generates more revenue than at least one of their physical stores.

    Thanks again.

Similar Threads

  1. mySQL 5 and PHP 5 problems
    By damnedpig in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 12-30-2006, 08:17 PM
  2. MySQL? Please help!
    By extremenewb in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 09-22-2004, 07:31 AM
  3. easypopulate : HTTP wrapper, writeable connections
    By pixelhed in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 12-23-2003, 06:17 AM
  4. Error with Mysql...?
    By Ambrose in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-28-2002, 02:53 PM

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
  •