osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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, ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-10-2005, 08:34 AM
Member
 
Join Date: Aug 2004
Posts: 46
Thanks: 2
Thanked 4 Times in 3 Posts
Rep Power: 0
jbanda
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 11-10-2005, 09:03 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,075
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-10-2005, 09:11 AM
Member
 
Join Date: Aug 2004
Posts: 46
Thanks: 2
Thanked 4 Times in 3 Posts
Rep Power: 0
jbanda
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 12:20 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax