Zen Cart Logo
Forums / Code Collaboration / Solve Memory Leaks

Solve Memory Leaks

Views: 6,439

Results 1 to 8 of 8
28 Jul 2019, 2:22 AM
#1
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Solve Memory Leaks

Hello, Can anyone give any advice on how to code properly so that there are no memory leaks.... I have tried unset($value); .... no memory release seen.... I have tried
gc_disable();
gc_enable();
gc_collect_cycles();

.... no memory release seen..... HELP!!!!!

28 Jul 2019, 12:55 PM
#3
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Solve Memory Leaks

Thanks dbltoe. PHP seems to be a different animal....

28 Jul 2019, 2:47 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Solve Memory Leaks

On what are you seeing what seems to be a memory leak?

29 Jul 2019, 2:18 PM
#5
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Solve Memory Leaks

Trying to work on the GoogleFroogle Merchant Feed Module. It currently dies at around 2000 items with 500MB in memory usuage.

29 Jul 2019, 2:32 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,067
Plugin Contributions:
56

Re: Solve Memory Leaks

shrimp-gumbo-mmmhhh:

Trying to work on the GoogleFroogle Merchant Feed Module. It currently dies at around 2000 items with 500MB in memory usuage.
That's more the design of that module, since it creates the entire feed in-memory and only outputs when the feed's complete.

30 Jul 2019, 2:55 AM
#7
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Solve Memory Leaks

Is it possible to not store in memory and write one record at a time?

30 Jul 2019, 4:47 AM
#8
lankeeyankee avatar

lankeeyankee

Totally Zenned

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

Re: Solve Memory Leaks

Anything is possible but you'd have to do some editing to the file. I think it would be pretty large rewriting due to the way the code currently works.