Hello Rich,
On Tuesday, March 15, 2005, Rich Hall wrote...

>>>> Have seen something similar when php hit its limits for execution-time
>>>> or memory.

[..]

>> I believe I missed the beginning of this thread, so I'm jumping in
>> mid-way, and will probably cover a few things. Have you tried
>> server side sorting? Have you been able to narrow down which pages
>> are the cause of the server to spin? Have you run an strace on the
>> run-away daemon? Is your IMAP server also in the list of
>> application using a lot of cpu/memory? Are your users allowed shell
>> access to their home directories? Can/have they put large
>> files/symlinks/etc in their home directories?

> Well basically a few of us are running into 100% cpu usage and
> things hanging sometimes with SM. I have most all of the latest
> parts/updates on my system..

> Dual AMD 2400 + MP cpu
> Apache 2.0.53
> UW Imap 2004e
> SM 1.4.4
> PHP 4.3.9 - 32 b memory allocation - 30 sec timeout.

I think a common trend here seems to be uw-imap, would that be a
correct assumption? What mailbox format are you using? From past
experience, with large mailboxes, even with server side sorting on,
uw-imap can be a... pain.  Because the default format for uw-imap is a
flat file, with no real indexing, from my understanding, uw-imap has
to read every single email to do any kind of work on the mailbox.  If
you're dealing with larger mailboxes (mine when I was doing it where
in the 20k emails mark), cpu goes through the roof, and apache just
has to wait and wait for uw-imap to finish sending back data.

> No shell accounts
> Gobs of memory (4 gb)
> Server side sorting on

> I just have not had a lot of time to debug it.. but I do beleive it
> hangs on large file attachments.. and mostly on my own mail as I am
> the most abusive user on the system out of about 100 accounts (all
> email).

What is the size of the actual mailbox file? Have you considered
moving to something a little more scaleable? Courier does nicely, and
cyrus is supposed to be great (though I've heard initial setup is a
little bit of a headache). My courier server handles well over 90k
emails in one folder in my mail tree alone... I wouldn't dare through
something like that at uw-imap ;)

> There are only 2 shell accounts.. mine and a friend who is *NIX
> safe.. And the accounts are used just for admin.

What does the home directory look like? Are there any symlinks to
other folders?  When using SquirrelMail with uw-imap, we suggest that
you force a default folder prefix to something like mail/ so that all
your mail folders are inside $HOME/mail for example.  This helps
greatly when it comes to the folders page, as uw-imap WILL follow
symlinks by default if I remember correctly, and if you request all
the folders in uw-imap's default path, it will go through your $HOME
directory without any issues, checking every file to see if it is a
mailbox. I had that issue when I used to use it about 3 or 4 years
ago.  I had a symlink to a webroot which had a 3GB website in it :)

> But now that I am thinking more about this.. I am going to try and
> push the PHP timeout limit out to 60 secs as I have huge mailboxes
> on a UW Imap (slow) and I also allow 20 mb attachements in the
> email. I will let you know what I find in a few days.

While I know for a lot of people, an infrastructure change probably
isn't what they like to hear, but sometimes it's the better option.

-- 
Jonathan Angliss
([EMAIL PROTECTED])

Posting Hints: 
http://www.squirrelmail.org/wiki/en_US/MailingListPostingGuidelines



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
--
squirrelmail-users mailing list
Posting Guidelines: 
http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [email protected]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
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