Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Out of memory when receiving emails Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Doctortim
Newbie
Newbie
Avatar

Joined: 25 April 2013
Location: United Kingdom
Online Status: Offline
Posts: 7
Posted: 25 April 2013 at 5:57am | IP Logged Quote Doctortim

Hi,
I have an installation of WebMail Lite 6.5.2 (php on apache) running just great.
A customer of mine is using it to access his yahoo email via pop3 (they don't provide imap). He recently complained he was only seeing emails up to 2011.
I investigated and found that webmail connected ok, reported downloading 465 emails and after around 1 minute stopped (with no errors) but only displayed 216 emails in the inbox. As he said, the most recent one dated from 2011.
Looking in error_log I see the following
[24-Apr-2013 10:50:06 UTC] PHP Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to allocate 28461422 bytes) in /home/xxxxxx/public_html/wm/common/mime/class_mailmessage.php on line 580

My hosting provider says 200MB is all that is allocated to php processes and that should be plenty.

So what is going on here? Does this behavior seem reasonable given 400 emails? I'm not sure the exact size of my customers mail but is webmail downloading the whole lot into memory? Is this likely to be a problem with a very large attachment? Is webmail going to download all the emails each time he accesses webmail? Can I easily download the most recent 50 emails (for example).

In all other respects I'm happy.
cheers,
Doc
Back to Top View Doctortim's Profile Search for other posts by Doctortim
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 25 April 2013 at 6:12am | IP Logged Quote Igor

In terms of POP3, WebMail downloads and parses mails entirely, extracts headers and saves mail as files. The account in question probably has a large message there, 20-30 Mbytes at least, and processing that message aborts the operation. It's hard to state specific numbers, but based on our experience, processing message of N Mbytes approximately requires N*10 Mbytes of free memory. We recommend to delete the problematic message from server using Yahoo webmail interface. Aside from that, switching to IMAP or increasing memory limit are the only options.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Doctortim
Newbie
Newbie
Avatar

Joined: 25 April 2013
Location: United Kingdom
Online Status: Offline
Posts: 7
Posted: 25 April 2013 at 7:57am | IP Logged Quote Doctortim

Igor wrote:
In terms of POP3, WebMail downloads and parses mails entirely,


Thanks very much Igor.
Unfortunately accessing webmail to spot the offending message isn't an option.
I wasn't sure if I should expect an error displayed in the browser. I might have a look at the code and see if it is easy to skip large messages rather than aborting.

Doc.
Back to Top View Doctortim's Profile Search for other posts by Doctortim
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide