• Resolved mirgcire

    (@mirgcire)


    I noticed this in my error logs this morning.
    This was the only message at the time.

    PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 38213521 bytes) in /home3/lightnm0/public_html/wp-content/plugins/postman-smtp/Postman/Postman-Mail/PostmanGmailApiModuleZendMailTransport.php on line 190

    https://ww.wp.xz.cn/plugins/postman-smtp/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jason Hendriks

    (@jasonhendriks)

    PHP is telling you that it asked the computer for 36 more megabytes and the computer said, sorry, i’ve already given you 256 and that’s all you get.

    All the scripts that run in PHP, including Postman, cost you some amount of memory but that seems rather high. Might be a memory leak somewhere,

    If I would install a PHP profiler, or one of those WordPress plugins that shows you how much memory each plugin is using.

    Thread Starter mirgcire

    (@mirgcire)

    After searching for more than an hour, I have not found any free tools that provide memory usage profiling. P3 seems to be the most popular profiler for wordpress, but it profiles time, not runtime memory usage. Even the paid options seemed to be focused on time as opposed to memory.

    Do you have any suggestion?
    Thanks

    Thread Starter mirgcire

    (@mirgcire)

    I just realized that sending a 36 megabyte message should not be happening.

    After poking around, I found that ithemes was setup to send the DB backup through the mail. I suspect the problem will go away now that I changed the setting to store DB backups locally.

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    Thanks for letting me know. Didn’t even cross my mind to think of a 36MB file attachment :p

    Had the same problem. Then I switch my PHP version from 5.5 to 7.0. Problem Solved.

    Thank you @mirgcire! Coincidentally, I received an automatic email regarding iThemes scan; when I read your post, it all made sense. Solution: I disabled the database back-up as the site is using a third-party plug-in for file and database back-ups.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘PHP Fatal error: Allowed memory size exhausted’ is closed to new replies.