Hi guys, We have a problem, when we try to send an attachment wich is a little bit to heavy. Roundcube tries to allocate a lot of memory, and the process crashes beceause memory limit is reached I've tried to arise memory limit up to 65M, but I think that it should normaly be not more than 16M (php standard is 8).
I've got the following lines in error log PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 10598455 bytes) in program/lib/imap.inc on line 1910 [03-Feb-2008 16:22:22] PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 10599123 bytes) in program/lib/Mail/mimePart.php on line 226 [03-Feb-2008 17:31:39] PHP Fatal error: Allowed memory size of 68157440 bytes exhausted (tried to allocate 21474171 bytes) in program/lib/Net/SMTP.php on line 745
Do you have a fix for that very annoying bug ? We use RC2
Thank you.
Hi,
if you have access to your php.ini, you could increase the memory
limit for php. I have the same problem and i unfortunately don't have
access to that file. My biggest Attachment was 3 MB, twhen taking more
php fails to allocate Memory.
Tom
Am 03.02.2008 um 20:08 schrieb Julien Wadin:
Hi guys, We have a problem, when we try to send an attachment wich is a little bit to heavy. Roundcube tries to allocate a lot of memory, and the process crashes beceause memory limit is reached I've tried to arise memory limit up to 65M, but I think that it should normaly be not more than 16M (php standard is 8).
I've got the following lines in error log PHP Fatal error: Allowed memory size of 16777216 bytes exhausted
(tried to allocate 10598455 bytes) in program/lib/imap.inc on line 1910 [03-Feb-2008 16:22:22] PHP Fatal error: Allowed memory size of
41943040 bytes exhausted (tried to allocate 10599123 bytes) in program/lib/Mail/mimePart.php on line 226 [03-Feb-2008 17:31:39] PHP Fatal error: Allowed memory size of
68157440 bytes exhausted (tried to allocate 21474171 bytes) in program/lib/Net/SMTP.php on line 745Do you have a fix for that very annoying bug ? We use RC2
Thank you.
-- Wadin Julien Tel : +32 (0) 475 632 168 ou +33 (0) 9 79 99 21 56 Web : http://blog.julienwadin.be/
List info: http://lists.roundcube.net/users/
List info: http://lists.roundcube.net/users/
Thomas Schober a écrit :
Hi,
if you have access to your php.ini, you could increase the memory limit for php. I have the same problem and i unfortunately don't have access to that file. My biggest Attachment was 3 MB, twhen taking more php fails to allocate Memory.
Yes I've access to php.ini, but I can't allow php to use 100mb by script ! Reading Error log, I see that Roundcube tries to allocate a lot of memory 3 times, looks like the file is loaded in memory 3 times ! Why not using a stream ?
Quoting Thomas Schober thomas.schober@gmail.com:
Hi,
if you have access to your php.ini, you could increase the memory limit for php. I have the same problem and i unfortunately don't have access to that file. My biggest Attachment was 3 MB, twhen taking more php fails to allocate Memory.
You can also add to .htaccess
php_value memory_limit 100M
or whatever value you need.
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
List info: http://lists.roundcube.net/users/
Earnie Boyd a écrit :
Quoting Thomas Schober thomas.schober@gmail.com:
Hi,
if you have access to your php.ini, you could increase the memory limit for php. I have the same problem and i unfortunately don't have access to that file. My biggest Attachment was 3 MB, twhen taking more php fails to allocate Memory.
You can also add to .htaccess
php_value memory_limit 100M
or whatever value you need.
I repeat : this is not possible in a production environement. There's a bug in Roundcube. It should not need a lot of memory to send attached files. How are others webmails doing ?
I am not the developer, i don't know why this is done like this. I don't know either why there has to be such a big allocation. Because of this problem i stoped using Roundcube. It is a great Client, but this high Memory usage is not acceptable for me to. As far as i know, the only thing you could go around this problem, by adjusting the Memory Limit in php.ini. It is not a good thing to do this, but until the bug is fixed i don't see other possibilities. If you find something to fix it an other way, please tell me how :)
Tom
2008/2/4, Julien Wadin julien@wadin.be:
Thomas Schober a écrit :
Hi,
if you have access to your php.ini, you could increase the memory limit for php. I have the same problem and i unfortunately don't have access to that file. My biggest Attachment was 3 MB, twhen taking more php fails to allocate Memory.
Yes I've access to php.ini, but I can't allow php to use 100mb by script ! Reading Error log, I see that Roundcube tries to allocate a lot of memory 3 times, looks like the file is loaded in memory 3 times ! Why not using a stream ?
-- Wadin Julien Tel : +32 (0) 475 632 168 ou +33 (0) 9 79 99 21 56 Web : http://blog.julienwadin.be/
List info: http://lists.roundcube.net/users/
List info: http://lists.roundcube.net/users/
On Mon, 04 Feb 2008 07:14:43 -0500, Earnie Boyd earnie@users.sourceforge.net wrote:
Quoting Thomas Schober thomas.schober@gmail.com:
Hi,
if you have access to your php.ini, you could increase the memory limit for php. I have the same problem and i unfortunately don't have access to that file. My biggest Attachment was 3 MB, twhen taking more php fails to allocate Memory.
You can also add to .htaccess
php_value memory_limit 100M
or whatever value you need.
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
Sounds like a (not very scalable) workaround rather than a fix.
List info: http://lists.roundcube.net/users/
Quoting bb bb@0brg.net:
On Mon, 04 Feb 2008 07:14:43 -0500, Earnie Boyd earnie@users.sourceforge.net wrote:
You can also add to .htaccess
php_value memory_limit 100M
or whatever value you need.
Sounds like a (not very scalable) workaround rather than a fix.
Yes, a work around for those without access to php.ini. For debugging you can also add such things as display_error. It is scalable to control the memory limit of each application should you have more than one on a system. You can allow X amount of memory for one and Y amount of memory for another.
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
List info: http://lists.roundcube.net/users/
Earnie Boyd wrote:
Quoting bb bb@0brg.net:
On Mon, 04 Feb 2008 07:14:43 -0500, Earnie Boyd earnie@users.sourceforge.net wrote:
You can also add to .htaccess
php_value memory_limit 100M
or whatever value you need.
Sounds like a (not very scalable) workaround rather than a fix.
Yes, a work around for those without access to php.ini. For debugging you can also add such things as display_error. It is scalable to control the memory limit of each application should you have more than one on a system. You can allow X amount of memory for one and Y amount of memory for another.
That is limited scalability compared to improving roundcube's memory usage altogether. Whether you have access to php.ini or not, the issue remains the same. You can only allow as much memory as you have available, and that is usually not very much for busy webservers or shared hosting. _______________________________________________ List info: http://lists.roundcube.net/users/
On Feb 3, 2008, at 1:08 PM, Julien Wadin wrote:
Hi guys, We have a problem, when we try to send an attachment wich is a little bit to heavy. Roundcube tries to allocate a lot of memory, and the process crashes beceause memory limit is reached I've tried to arise memory limit up to 65M, but I think that it should normaly be not more than 16M (php standard is 8).
If you can reproduce that with a specific file, I recommend you use
the RoundCube Trac issue reporting site.
http://trac.roundcube.net/wiki/Howto_ReportIssues
If a bug is reproducible, it will get more attention from developers
than an issue that does not have a specific way to reproduce. They
can't tell if they have fixed it if they can make it happen in the
first place ;)
If you have patches to help address the problem, even better ;)
Charles Dostale System Admin - Silver Oaks Communications http://www.silveroaks.com/ 824 17th Street, Moline IL 61265
List info: http://lists.roundcube.net/users/
This issue is already reported since a long time. But there is now fix
avalable so far. I found it in the Bugtracker today.
Tom
Am 05.02.2008 um 18:35 schrieb chasd:
On Feb 3, 2008, at 1:08 PM, Julien Wadin wrote:
Hi guys, We have a problem, when we try to send an attachment wich is a little bit to heavy. Roundcube tries to allocate a lot of memory, and the process crashes beceause memory limit is reached I've tried to arise memory limit up to 65M, but I think that it
should normaly be not more than 16M (php standard is 8).If you can reproduce that with a specific file, I recommend you use the RoundCube Trac issue reporting site.
http://trac.roundcube.net/wiki/Howto_ReportIssues
If a bug is reproducible, it will get more attention from developers than an issue that does not have a specific way to reproduce. They can't tell if they have fixed it if they can make it happen in the first place ;)
If you have patches to help address the problem, even better ;)
Charles Dostale System Admin - Silver Oaks Communications http://www.silveroaks.com/ 824 17th Street, Moline IL 61265
List info: http://lists.roundcube.net/users/
List info: http://lists.roundcube.net/users/