1

Topic: php内存问题

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  iRedMail-1.6.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Ubuntu 20.04.3 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

部署了iredmail系统后,经常会在postmaster账户下收到系统的报错邮件,邮件内容如下:
PHP Fatal error:  Allowed memory size of 2097152 bytes exhausted (tried to allocate 163840 bytes) in /opt/www/roundcubemail-1.5.3/program/lib/Roundcube/rcube_charset.php on line 365

我已经在/etc/php/7.4/fpm和/etc/php/7.4/cli目录下都修改了php.ini文件,将memory_limit修改为1024M,但还是会经常收到这个报错邮件。

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: php内存问题

会不会是和附件大小相关的其它配置文件没有同步修改?参考:
https://docs.iredmail.org/change.mail.a … .size.html

3 (edited by yshzhao 2023-02-14 20:21:03)

Re: php内存问题

ZhangHuangbin wrote:

会不会是和附件大小相关的其它配置文件没有同步修改?参考:
https://docs.iredmail.org/change.mail.a … .size.html

都是按照这个页面配置过的,都配置成了1024M,但是还是有这个报错

4

Re: php内存问题

正常情况下是只要调整了 php.ini 文件里的 memory_limit 参数即可。是否忘记重启 php-fpm 服务了?

5

Re: php内存问题

ZhangHuangbin wrote:

正常情况下是只要调整了 php.ini 文件里的 memory_limit 参数即可。是否忘记重启 php-fpm 服务了?

我的运行环境里没有php-fpm服务,只有一个php7.4-fpm.service,并且已经重启过这个服务了,但是依然会时常收到那个PHP Fatal error的报错