Global navigation

   Documentation Center
   eZ Studio & eZ Platform
     User Manual
     Technical Manual
     Glossary
   eZ Publish 4.x / legacy

 
eZ Publish (5.x)

eZ Publish 5.x | For eZ Platform & eZ Studio topics see Technical manual and User manual, for eZ Publish 4.x and Legacy topics see eZ Publish legacy

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Memory consumption issues with Redis

Status
colourYellow
title>= 5.4.13

If you use the Redis cache driver and encounter problems with high memory consumption, you can use the following (non-SiteAccess-aware) settings:

Code Block
titleezpublish.yml
ezpublish:
    stash_cache:
        igbinary: true/false
        lzf: true/false
  • `ezpublishezpublish.stash_cache.igbinary` igbinary enables you to use the `igbinary` library igbinary PHP extension to serialize objects stored in cache.
      `ezpublish.
      • Recommended enabled in most use cases.
    • ezpublish.stash_cache.lzf` lzf enables you to use the `LZF` library LZF PHP extension to compress serialized objects stored in cache.
      • Compression consumes some more CPU. A scenario where it improves overall performance is when Redis memory and/or network bandwidth is limited, with spare CPU capacity on PHP server.

    These options in combination results in around 1/2 memory usage for API caching compared to not being enabled, igbinary accounts for ~75% of that and LZF the remaining ~25% when configured for max compression.

    After changing these settings you need to clear cache and purge Redis content .