Theodore Knab said:
> Could someone tell me how to fix this ?
>
> I am getting complaints from scripts dying when
> users are attempting to sendmail in squirrel-mail.
>
> The error that appears on the users screen is like this:
>     Fatal error: allowed memory size of 20971520 bytes exhausted
>     (tired to allocate 104876 bytes) in
>     /usr/share/squirrelmail/functions/imap_general.php on line 96
>

This sounds like an error with reading a mailbox, not an error sending mail.
Someone correct me if I'm wrong, but I don't /think/ imap_general.php
handles the sending of mail.

> I have a memory limit of 20M in my /etc/php/php.ini
>
> memory_limit = 20M ; Maximum amount of memory a script may consume (8MB)
>

Try turning on server-side sorting in conf.pl. That should take some of the
load off of PHP.

> This server has 4GB of RAM but it never uses over 2.3 GB of RAM even
> though it has a custom kernel which I compiled for large memory support.
>
>
> ted@webmail:~$ free -m
>               total       used       free     shared    buffers cached
>
> Mem:          3981       1860       2121          0     94      1159 -/+
> buffers/cache:        607       3374
> Swap:          956          0        956
>

It looks like it's reporting the right amount of ram. My guess would be that
it's just not needing all that memory. Feel free to crank up the PHP memory
limit some more if you want to. ;)

Matthew

-- 
 Was I helpful?  Let others know:
 http://svcs.affero.net/rm.php?r=utoxin&p=main




-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to