Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default 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!!!!!

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,154
    Plugin Contributions
    11

    Default Re: Solve Memory Leaks

    Not sure if it will get you there but, there seems to be many sites that suggest as https://www.geeksforgeeks.org/what-i...-can-we-avoid/

    HTH

  3. #3
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: Solve Memory Leaks

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

  4. #4
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Solve Memory Leaks

    On what are you seeing what seems to be a memory leak?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

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

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,500
    Plugin Contributions
    88

    Default Re: Solve Memory Leaks

    Quote Originally Posted by shrimp-gumbo-mmmhhh View Post
    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.

  7. #7
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: Solve Memory Leaks

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

  8. #8
    Join Date
    Jan 2007
    Posts
    1,484
    Plugin Contributions
    10

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

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

 

 

Similar Threads

  1. please solve my postage problem
    By rabbitnutrition in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 14 Feb 2012, 05:51 PM
  2. Warning i can't solve
    By stevefriedman71 in forum All Other Contributions/Addons
    Replies: 13
    Last Post: 28 Feb 2011, 03:41 AM
  3. A problem to solve?
    By gele76 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 Jan 2010, 02:16 PM
  4. Help to solve this issue
    By lorhan in forum General Questions
    Replies: 3
    Last Post: 30 Mar 2008, 03:38 PM
  5. Big problem! How do I solve it?!
    By pcny2la in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 5 Jun 2006, 06:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR