<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>out of memory error with 9K message mailbox</title> 
  <pubDate>Fri, 10 Apr 2026 05:21:34 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/5341</link> 
  <atom:link rel="self" type="application/rss+xml" title="out of memory error with 9K message mailbox" href="https://bugs.horde.org/ticket/5341/rss" /> 
  <description>out of memory error with 9K message mailbox</description> 
 
   
   
  <item> 
   <title>I think Michael wanted to be notified about memory errors wh</title> 
   <description>I think Michael wanted to be notified about memory errors when devs use 24M memory...



When I try to open a 9K message mailbox (sent-mail), I get the following error:



Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 1572865 bytes) in /etc/httpd/htdocs/horde/imp/lib/Mailbox.php on line 689



php.ini has these memory settings:



memory_limit = 24M</description> 
   <pubDate>Tue, 08 May 2007 23:40:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5341#t32814</link> 
  </item> 
   
  <item> 
   <title>24+ megs of memory to view a 9,000 message mailbox seems rea</title> 
   <description>24+ megs of memory to view a 9,000 message mailbox seems reasonable to me (t-bird takes up *way* more than 24 megs to view a mailbox of this size).  Don&#039;t think we can really do much about this without changing the internal imap processing in c-client.</description> 
   <pubDate>Sun, 20 May 2007 23:45:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5341#t33223</link> 
  </item> 
   
  <item> 
   <title>OK, but IMP 3.x was able to open 100K message mailboxes.  An</title> 
   <description>OK, but IMP 3.x was able to open 100K message mailboxes.  And quickly too.



Why do we need to use so much memory to show the message index?  There are only 20 mesage headers on the page...  Just curious.</description> 
   <pubDate>Mon, 21 May 2007 19:26:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5341#t33293</link> 
  </item> 
   
  <item> 
   <title>&gt; OK, but IMP 3.x was able to open 100K message mailboxes.  </title> 
   <description>&gt; OK, but IMP 3.x was able to open 100K message mailboxes.  And quickly too.



Do you have caching enabled?  That would increase memory usage - at the expense of speed of course.  Also, how are you sorting this mailbox? 



btw, I definitely see *much* slower mailbox accesses in IMP 3.x than 4.x.  Not to mention we cache mailbox lists in 4 and we never did this in 3.



&gt; Why do we need to use so much memory to show the message index?  

&gt; There are only 20 mesage headers on the page...  Just curious.



The only way you can determine a mailbox slice is if you know the contents of the entire mailbox.  i.e., the only way you can tell what messages are on page 2 is if you sort the entire mailbox.  Don&#039;t see anyway around this.</description> 
   <pubDate>Mon, 21 May 2007 22:33:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5341#t33313</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; OK, but IMP 3.x was able to open 100K message mailboxes. </title> 
   <description>&gt;&gt; OK, but IMP 3.x was able to open 100K message mailboxes.  And quickly too.



BTW, did you really have a 24 MB memory limit with IMP 3?  If I remember correctly, you really couldn&#039;t do anything at all in IMP 3 unless you turned memory_limit off completely, let alone set it at 24 MB.</description> 
   <pubDate>Mon, 21 May 2007 22:36:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5341#t33316</link> 
  </item> 
   
  <item> 
   <title>&gt; BTW, did you really have a 24 MB memory limit with IMP 3? </title> 
   <description>&gt; BTW, did you really have a 24 MB memory limit with IMP 3?  If I 

&gt; remember correctly, you really couldn&#039;t do anything at all in IMP 3 

&gt; unless you turned memory_limit off completely, let alone set it at 24 

&gt; MB.



You are correct.  We have no memory limit for IMP 3.  Apache memory usages seems to be around 120MB for 110K messages.  Does that sound reasonable?</description> 
   <pubDate>Mon, 21 May 2007 22:42:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5341#t33319</link> 
  </item> 
   
  <item> 
   <title>&gt; Do you have caching enabled?  That would increase memory u</title> 
   <description>&gt; Do you have caching enabled?  That would increase memory usage - at 

&gt; the expense of speed of course.  Also, how are you sorting this 

&gt; mailbox?



No caching.  We&#039;re using the default sort order for the mailbox.



$ grep cache imp/config/conf.php

$conf[&#039;server&#039;][&#039;cache_folders&#039;] = false;

$conf[&#039;server&#039;][&#039;cache_msgbody&#039;] = false;

$conf[&#039;mboxcache&#039;][&#039;use_mboxcache&#039;] = false;



&gt; The only way you can determine a mailbox slice is if you know the 

&gt; contents of the entire mailbox.  i.e., the only way you can tell what 

&gt; messages are on page 2 is if you sort the entire mailbox.  Don&#039;t see 

&gt; anyway around this.



OK.</description> 
   <pubDate>Mon, 21 May 2007 22:44:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5341#t33320</link> 
  </item> 
   
  <item> 
   <title>Now that we&#039;ve moved away from c-client in HEAD, this should</title> 
   <description>Now that we&#039;ve moved away from c-client in HEAD, this should either be rejected or closed.</description> 
   <pubDate>Sat, 08 Nov 2008 05:26:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5341#t50473</link> 
  </item> 
   
  <item> 
   <title>We&#039;ll reject it.</title> 
   <description>We&#039;ll reject it.</description> 
   <pubDate>Wed, 03 Dec 2008 06:51:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5341#t51056</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
