Zen Cart Logo
Forums / General Questions / Server resources - hosting problems - MySQL

Server resources - hosting problems - MySQL

Views: 1,444

Results 1 to 12 of 12
2 Dec 2012, 1:18 AM
#1
kevmartin avatar

kevmartin

New Zenner

Join Date:
Dec 2012
Location:
Australia
Posts:
8
Plugin Contributions:
0

Server resources - hosting problems - MySQL

Hello,

I am a host and a client using zen-cart is causing ongoing issues with very heavy server resource usage. It seems to be heavily MySQL based and causes a lot of sleeping processes on the server. Eventually this causes the server load to rise unacceptably.

I've found the version number in the database as 1.39g. This looks to be considerably older than the current version available for download.

Can anyone here advise if an upgrade will likely bring any major improvements to this issue.
I have noticed that the script also saves many many thousands of files in the cache folders, which consumes vast amounts of disk space causing my client problems. This seems disproportionate to the number of products on the store (approx 2000). I read that it is possible to change to a database caching system instead, but frankly given the existing MySQL issues, this does not seem like it would be helpful here.

I'd appreciate any advice on whether an upgrade is the path to take, or any other insights on configuration issues that may assist.

Thanks,
Kevin Martin
GM-Innovations.com

2 Dec 2012, 3:08 AM
#2
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: Server resources - hosting problems - MySQL

If the cache folder is filling up there is any issue with the cart, upgrading is an absolute must for security but isn't as simple as it may look, nor a fix for this problem.
Both of these items I would recommend speaking with a developer.
Can you send a copy of one of the recent cache files?

2 Dec 2012, 5:50 AM
#3
kevmartin avatar

kevmartin

New Zenner

Join Date:
Dec 2012
Location:
Australia
Posts:
8
Plugin Contributions:
0

Re: Server resources - hosting problems - MySQL

bislewl:

If the cache folder is filling up there is any issue with the cart, upgrading is an absolute must for security but isn't as simple as it may look, nor a fix for this problem.
Both of these items I would recommend speaking with a developer.
Can you send a copy of one of the recent cache files?

Thanks.

Yes, here is the full contents of a cache file from today:

File name/location:
www/store/cache/ssu/products/9937_en*

File contents:
2-48-carat-pear-shaped-unheated-blood-red-ruby-from-mozambique-p-9937

Does this mean anything interesting or useful?

As far as gettign a developer on board, that would be a decision for the site owner, my client. I'll draw his attention to this thread.

Thanks,
Kevin

2 Dec 2012, 12:08 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Server resources - hosting problems - MySQL

While there may be issues with the single installation of zencart you refer to, we have 53 installations of zencart on one server - and have no problems.

Is your server up to the task of eCommerce? If not, maybe you should advise your client to host where servers have the capacity to handle these platforms.

20 years a Zencart User

2 Dec 2012, 8:46 PM
#5
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: Server resources - hosting problems - MySQL

can you send the contents of one of the files in the www/store/cache/
most recent would be most helpful.

3 Dec 2012, 1:09 AM
#6
kevmartin avatar

kevmartin

New Zenner

Join Date:
Dec 2012
Location:
Australia
Posts:
8
Plugin Contributions:
0

Re: Server resources - hosting problems - MySQL

Thanks again, bislewl. There are no files directly in the cache folder. Only the subfolder ssu which appears to contain the large number of files/folders.

-rw-r--r-- 1 starruby starruby 1104 Apr 29 2010 .htaccess
-rw-r--r-- 1 starruby starruby 1511 May 6 2005 index.php
drwxr-xr-x 6 nobody nobody 4096 Nov 17 19:35 ssu/

Does this provide any clues?

Thanks,
Kevin

3 Dec 2012, 1:13 AM
#7
kevmartin avatar

kevmartin

New Zenner

Join Date:
Dec 2012
Location:
Australia
Posts:
8
Plugin Contributions:
0

Re: Server resources - hosting problems - MySQL

To schoolboy,

Thanks for your advice but I am not new to this (hosting) and am very confident the server is more than powerful enough. We host sites on various mainstream ecommerce platforms, across numerous servers, but this is the only zencart issue that has arisen, so I feel quite sure it is a site specific issue.

3 Dec 2012, 2:08 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Server resources - hosting problems - MySQL

The /ssu is not part of Zen Cart but I believe there is an SEO/rewrite add on that uses it ...

You might check with your client on if they are using something for that ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

3 Dec 2012, 3:32 AM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Server resources - hosting problems - MySQL

"/ssu/" indicates yellow1912's Simple SEO URLs mod, which is no longer supported nor apparently compatible with v1.5.x (at least unless it gets updated).

3 Dec 2012, 1:47 PM
#10
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Server resources - hosting problems - MySQL

If "Query Cache" is not installed, you may want to look at installing it (or upgrading to 1.5.1 which includes a modified version).

One of my client's sites was running into similar "complaints" from a hosting provider about using too many MySQL queries (yes, this was their complaint - not long running queries - but too many!). I installing the "Query Cache" plugin and enabling the Zen Cart caching mechanism to cut down on queries (and disabled tracking category/product views and who is online in Zen Cart).

I then made a phone call (and eventually got to one of the server admins) who looked at the average usage since the changes were made and confirmed the resource usage was "acceptable" and unflagged the account for high "resource" usage. The same admin also recommended adding "delays" to SQL insert / update statements when importing a large number of products and/or categories (common when doing bulk updates).

May not solve your issues, but something you can look into... or better yet, move to a hosting plan / provider who can handle a larger number of MySQL connections and queries.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

3 Dec 2012, 4:30 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Server resources - hosting problems - MySQL

I will reiterate what's been given for feedback:

  1. The /cache/ssu/ folder is used by an addon, as described. Perhaps it is malfunctioning either by not doing any garbage collection or not re-using components it has cached. Either way, the first thing I'd suggest is disabling that addon. Of course that will cause the store's URLs to change, which may have SEO impact, so should be a temporary measure to simply aid in diagnosing ie: narrowing the pain symptoms to just that addon's effects.
    Periodically purging that ssu cache might be smart, but you might want to read up on what the implications of that may be. I'm not familiar with that addon's detailed inner workings.

  2. Query Cache will reduce the number of "repeat" queries, simply by adding an internal cache of results of repeat query calls. If the MySQL server isn't already caching intelligently then this application-layer caching will help improve speed somewhat.

  3. I will add that these FAQ articles, and the links therein, are valuable reads:
    http://www.zen-cart.com/content.php?63-how-do-i-speed-up-my-site
    http://www.zen-cart.com/content.php?262-webserver-tuning-tips

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Dec 2012, 8:36 AM
#12
kevmartin avatar

kevmartin

New Zenner

Join Date:
Dec 2012
Location:
Australia
Posts:
8
Plugin Contributions:
0

Re: Server resources - hosting problems - MySQL

Thanks for your suggestions everyone. My client is going to contact the developer of the SSU plugin with whom he has had previous contact, and see if there is an issue with it or if it can be optimised/updated. Failing this, the articles in the previous reply give some very worthwhile specific suggestions for configuration and selective feature disabling that could be useful. And the Query Cache sounds hopeful too.

We will see where it all leads us.

Thanks.