Skip to content

Unable to fetch large mailbox #4343

@shunkica

Description

@shunkica

PHP version: 8.2
FreeScout version: 1.8.156
Database: MySQL
Are you using CloudFlare: No
Are you using non-official modules: No

I am trying to set up Freescout for a mailbox which has around 50GB of unread mail from the last 10 or so days.

Even though I have given PHP a 2G memory limit it is still not enough, as the fetching process keeps crashing with:

Allowed memory size of 2147483648 bytes exhausted (tried to allocate 5323576 bytes) {"exception":"[object] (Symfony\Component\Debug\Exception\FatalErrorException(code: 1): Allowed memory size of 2147483648 bytes exhausted (tried to allocate 5323576 bytes) at /www/html/overrides/webklex/php-imap/src/Structure.php:109)

And in the browser I get 504 timeout when running manual fetch.

It would appear as if the app was trying to buffer all the emails at once, because there is no single mail which is over 50MB in size, let alone 2G.

Default docker installation, no modules and no customizations. I am posting here as I don't believe this has anything to do with the app running in Docker.

Let me know if there is any additional info I can provide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions