Results 1 to 4 of 4
  1. #1
    Join Date
    May 2009
    Posts
    186
    Plugin Contributions
    0

    Default php memory_limit 128M versus 256M and Zen Cart Speed / Performance

    I noticed that some of my hosting accounts have a php memory_limit of 128M and others 256M.
    Is there any reason to think that 256 is better or worse than the recommended 128M?
    For example will 256 yield better/worse Zen Cart performance?

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: php memory_limit 128M versus 256M and Zen Cart Speed / Performance

    Quote Originally Posted by Zean View Post
    I noticed that some of my hosting accounts have a php memory_limit of 128M and others 256M.
    Is there any reason to think that 256 is better or worse than the recommended 128M?
    For example will 256 yield better/worse Zen Cart performance?
    128MB is actually a *lot* of memory for a single process and you are unlikely to need more. Increasing *needlessly* can actually be detrimental, especially on a busy site, and doubly so on a busy site that doesn't have much memory in the 1st place (if you double the per-process memory, which is what this setting does) the server will only be able to service half the number of requests before running out of total memory).

    As long as you aren't running into any memory issues, leave at the hosting providers defaults. Changing it will have no positive affect on Zen performance.

    Cheers
    RodG

    ps. Wordpress (which contains a lot of bloat and is more demanding on a server than ZenCart would ever be), functions just fine with only 32MB, so if you have a busy site, you would actually be better to reducing what you have. You probably won't notice any difference though, so leave it be,)
    Last edited by RodG; 7 Nov 2016 at 09:41 AM.

  3. #3
    Join Date
    May 2009
    Posts
    186
    Plugin Contributions
    0

    Default Re: php memory_limit 128M versus 256M and Zen Cart Speed / Performance

    RodG, thanks so much for explaining php memory_limit.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: php memory_limit 128M versus 256M and Zen Cart Speed / Performance

    Also keep in mind that some admin plugins (especially reporting tools, or sitemap generators, or google feed generators) may demand a ton of memory if not written to manage memory efficiently. (XML builders are really bad for that since they try to build the entire XML map in memory before writing to disk).

    If using something like that you might want to find creative ways to bump memory options when using those tools.

    As RodG said, there's little need for high RAM settings with most PHP scripts, including Zen Cart.
    .

    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.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 29 Dec 2012, 12:15 AM
  2. Zen Cart performance -- how to speed up
    By moltar in forum General Questions
    Replies: 11
    Last Post: 17 Feb 2008, 04:30 AM
  3. 2007 Zen Cart versus osCommerce
    By soda_pop in forum General Questions
    Replies: 2
    Last Post: 27 Dec 2007, 09:06 PM
  4. Performance / Speed Issues
    By websightdesign in forum General Questions
    Replies: 1
    Last Post: 20 Dec 2006, 05:57 PM
  5. Speed & Performance..
    By gemohler in forum Basic Configuration
    Replies: 5
    Last Post: 11 May 2006, 02:19 AM

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