Allowed memory size of 536870912 bytes exhausted error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • murugappan
    Active Community Member
    • Aug 2017
    • 544

    #1

    Allowed memory size of 536870912 bytes exhausted error

    Hi,

    Occasionally, our CRM app is registering this error:

    Allowed memory size of 536870912 bytes exhausted (tried to allocate 33888504 bytes) in /home/crmemast/public_html/emascrm/vendor/maennchen/zipstream-php/src/File.php on line 131

    Is there a default memory_limit set in the app? Need help to address this issue.
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9925

    #2
    Hi,

    On which version does it happen?

    You can try to increase memory limit 2X (from 512 to 1024 MB) in the PHP config. The application itself does not control the memory limit.

    Comment

    • murugappan
      Active Community Member
      • Aug 2017
      • 544

      #3
      yuri Hi, The version is 7.2.4. We still have not migrated to the latest version as there are some logistics involved. The current memory is set to -1 (umlimited). I notice that this happen just now when the use tried to export a large number of rows in XLSX format.

      Comment

      • yuri
        EspoCRM product developer
        • Mar 2014
        • 9925

        #4
        Note that the memory limit parameter can be different for PHP CLI and PHP for webserver. They use different configs, maybe you set -1 in the PHP CLI config.

        The XLSX export consumes memory, it's how the library works. For this reason, we have 'Lite' mode in XLSX export, which produces more simple output document, but it does not consume memory.

        Comment


        • murugappan
          murugappan commented
          Editing a comment
          Unfortunately this option is not available in version 7.2.4.
          Last edited by murugappan; 06-29-2026, 09:02 AM.
      Working...