Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Advanced Search out of memory

Advanced Search out of memory

Locked

Views: 3,691

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
3 Aug 2007, 1:50 PM
#1
goshman avatar

goshman

New Zenner

Join Date:
Jul 2005
Posts:
16
Plugin Contributions:
0

Advanced Search out of memory

Hi

New install of 1.3.7, upgraded database.

When carrying out a search using the search side box i get the following out of memory error. Any ideas?, is this a server config issue?

Advanced Search
5 Out of memory (Needed 1048548 bytes)
in:
[select count(distinct p.products_id) as total FROM (zen_products p LEFT JOIN zen_manufacturers m USING(manufacturers_id), zen_products_description pd, zen_categories c, zen_products_to_categories p2c ) LEFT JOIN zen_meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 WHERE (p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND ((pd.products_name LIKE '%1905%' OR p.products_model LIKE '%1905%' OR m.manufacturers_name LIKE '%1905%' OR (mtpd.metatags_keywords LIKE '%1905%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%1905%' AND mtpd.metatags_description !='') OR pd.products_description LIKE '%1905%') ))]

Thanks
Dan

3 Aug 2007, 10:03 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Advanced Search out of memory

Any ideas?, is this a server config issue?
That is only a meg or so...

Is this a full server or a VPS with a memory limit?

3 Aug 2007, 10:13 PM
#3
goshman avatar

goshman

New Zenner

Join Date:
Jul 2005
Posts:
16
Plugin Contributions:
0

Re: Advanced Search out of memory

kobra:

That is only a meg or so...

Is this a full server or a VPS with a memory limit?

It is a VPS

PHP Core - memory_limit value is 32M

PHP is on Version 5.2.3

Dan

4 Aug 2007, 6:11 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Advanced Search out of memory

What are your MySQL memory settings ?
That would seem to be a memory error at the MySQL end.

4 Aug 2007, 10:57 AM
#5
goshman avatar

goshman

New Zenner

Join Date:
Jul 2005
Posts:
16
Plugin Contributions:
0

Re: Advanced Search out of memory

DrByte:

What are your MySQL memory settings ?
That would seem to be a memory error at the MySQL end.

MySQL Version 5.0.27-standard
MySQL memory limit is 512mb

Dan

4 Aug 2007, 4:50 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Advanced Search out of memory

How many products are in your database ?
How many languages?

I suspect you'll need to (likely work with your host to) change or optimize MySQL memory configurations.

4 Aug 2007, 5:02 PM
#7
goshman avatar

goshman

New Zenner

Join Date:
Jul 2005
Posts:
16
Plugin Contributions:
0

Re: Advanced Search out of memory

DrByte:

How many products are in your database ?
How many languages?

I suspect you'll need to (likely work with your host to) change or optimize MySQL memory configurations.

Only about 80 products but each product has about six sizes and six colours.

English is the only language.

Would have thought 512mb would be plenty, the message only implies that approx 1mb is needed - might need to get the host to try and increase the memory value and see if it makes any difference.

Strange thing is that it worked OK last week and i have not added any products just been making a few mods and stylesheet changes.

Dan

5 Aug 2007, 5:13 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: Advanced Search out of memory

goshman:

Would have thought 512mb would be plenty, the message only implies that approx 1mb is needed

goshman:

5 Out of memory (Needed 1048548 bytes)I believe that means that MySQL needed 1048548 more bytes than what it had available to it.

5 Aug 2007, 5:14 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: Advanced Search out of memory

goshman:

Strange thing is that it worked OK last week and i have not added any products just been making a few mods and stylesheet changes.You didn't mention that before.

Yes, definitely talk to your host.

If it suddenly stopped working ... then ... something changed. If it wasn't by you ... then ...

5 Aug 2007, 6:52 AM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Advanced Search out of memory

DrByte:

I believe that means that MySQL needed 1048548 more bytes than what it had available to it.
Good catch!! I guess I need to take remedial reading???

OP,

32MB is a low value even for a VPS as most are min 256MB or higher and 64MB or higher for php