[Tickets #13761] Memory usage issues when IMAP sequence range is far apart

noreply at bugs.horde.org noreply at bugs.horde.org
Thu Dec 18 12:57:56 UTC 2014


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/13761
------------------------------------------------------------------------------
  Ticket             | 13761
  Created By         | ricardo at wenn.com
  Summary            | Memory usage issues when IMAP sequence range is far
                     | apart
  Queue              | IMP
  Version            | 6.2.4
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


ricardo at wenn.com (2014-12-18 12:57) wrote:

If the IMAP sequence ID between the earliest and latest messages is  
very large it is easy to hit memory limits in PHP specifically in the  
Horde/Imap/Client/Ids.php file
Why this large range happens sometimes and not always is odd and I  
have a lack of understanding on what it is doing.

Ive had an issue with one user where the range was over 1m between min  
& max and the max memory had to be over 256Mb

Using SplFixedArray the max memory limit can be reduced to about half  
but there are big issues elsewhere as the Spl does not have all the  
sort functions that a standard array has.
I am not sure if this can somehow be shoehorned in and made to work or  
if its limitations are a problem.

Another problem is found on line 170, would it not be prudant to unset  
each array key as it is populated into the _add array, that way the  
memory should not balloon (not sure if PHP optimises for this anyway).






More information about the bugs mailing list