Zen Cart Logo
Forums / All Other Contributions/Addons / easy populate stalls, too many products?

easy populate stalls, too many products?

Views: 1,406

Results 1 to 11 of 11
2 Jul 2011, 4:33 PM
#1
bowes avatar

bowes

New Zenner

Join Date:
Apr 2010
Location:
okanagan, bc
Posts:
23
Plugin Contributions:
0

easy populate stalls, too many products?

Hi! I'm having problems downloading my EasyPopulate Attributes file. There are too many attributes and products in my database and it keeps stalling on a blank page before it can finish. Using 1.3.9a and EP 1.2.5.7.csv.

I have about 3300 products loaded and maybe a hundred attributes, but I'm the furthest thing from a programmer and don't understand the lingo, so bear with me.

I'm told my server has RAM memory limits that have prevented EP from finishing this file, but I hired a programmer to fix it, and he did. Something about changing the way it wrote the file so it wouldn't excede the server memory.

But after that, I added another thousand products and it again stalls and the person that fixed won't respond.

Suggestions? A known fix? Too me this is a core value of the zencart system and if it doesn't work there's no way I can keep on top of the products in the store.

I'd be happy to pay the zencart management to work out a fix for release also.

2 Jul 2011, 4:41 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: easy populate stalls, too many products?

Are you using a dedicated server, a VPS or a shared server account?

How much RAM is allowed for each process? (You can find out by going into your admin and clicking on the version link.)

What symptom are you seeing telling you that this is a memory limit problem?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

2 Jul 2011, 5:20 PM
#3
bowes avatar

bowes

New Zenner

Join Date:
Apr 2010
Location:
okanagan, bc
Posts:
23
Plugin Contributions:
0

Re: easy populate stalls, too many products?

Hi! It's a shared server, version page shows a PHP Memory Limit of 64M.

The symptom was a stalled attributes file download when my product database grew, so I hired a programmer to fix, and he said he changed the query to write the file in a different way that wouldn't exceed the memory limit. It worked until I added another thousand products. The EP page shows its downloading for about 5 minutes then it quits on a blank page and no error given.

The other EP files load fine, the last working attributes file was 33,589 KB and it's probably 40,000 KB now after adding more items.

2 Jul 2011, 7:41 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: easy populate stalls, too many products?

If your PHP processes are limited to 64MB and just loading your file takes 40MB of that, then it's entirely possible that it's no longer possible to code around it.

A quicker, cheaper and more feasible option would be to move to a hosting account, or VPS that offers a memory profile more suited to your usage.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

2 Jul 2011, 7:47 PM
#5
bowes avatar

bowes

New Zenner

Join Date:
Apr 2010
Location:
okanagan, bc
Posts:
23
Plugin Contributions:
0

Re: easy populate stalls, too many products?

true, its just too costly right now for that.

is there a way to export the file into seperate blocks of say 500 rows each? or to slow it down/pause it as it exports to stay within memory limits?

2 Jul 2011, 7:54 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: easy populate stalls, too many products?

You're kidding, right? Hosting is way cheaper than professional development.

Had one of my clients upgrade their VPS this week from 512MB to 1GB RAM. The incremental monthly cost approximates to about 5 minutes of development time at my standard rate.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

2 Jul 2011, 9:50 PM
#7
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: easy populate stalls, too many products?

You can increase the time limit for each process by uploading a customized php.ini file to your cart's root directory. You can use less RAM but it takes longer and the script is reaching the per-process time limit.

Have you tried creating the file in the temp directory and then download it from there?


Zen Cart and it's community are the best!!

4 Jul 2011, 9:00 PM
#8
bowes avatar

bowes

New Zenner

Join Date:
Apr 2010
Location:
okanagan, bc
Posts:
23
Plugin Contributions:
0

Re: easy populate stalls, too many products?

my host wants $150/month for dedicated hosting. :shocking:

did try sending it to the temp dir but no luck, and i'm not sure what the programmer did for php tweaks.

4 Jul 2011, 9:08 PM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: easy populate stalls, too many products?

Over here (in the UK) we can get a VPS with a gig of RAM for $30 a month or less. I'd expect it to be cheaper still for you.

If you gave your PHP processes access to half of that, then you'd be giving them a huge amount of headroom compared to the 64Mb you have currently.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

4 Jul 2011, 9:11 PM
#10
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: easy populate stalls, too many products?

Your developer may have done something to chunk the reading of the file so that it wasn't all in memory at the same time. But you have so little space to play with that this would also have been at risk of overflowing the resources (memory or time) available.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Jul 2011, 4:36 PM
#11
bowes avatar

bowes

New Zenner

Join Date:
Apr 2010
Location:
okanagan, bc
Posts:
23
Plugin Contributions:
0

Re: easy populate stalls, too many products?

well my host bumped me to 192M, they also tried the script at 256M but no luck.

Can anyone help get this fixed?