Hello Lesli,
On Monday, November 15, 2004, Lesli St. Clair wrote...

> I've been struggling with SquirrelMail for two months. At about 300
> users, the CPU is maxed out and the load average on a dual-Ghz CPU Sun
> machine climbs into the 80s.

[..]

I've been reading most of this thread over, and find some of the
suggestions intersting.

A php cache engine is always a big help in larger environments, but
you must be careful on how much it caches, especially when it comes to
dynamic content.

Enabling server side sorting is also a bonus, but from what I've read
of the thread, your IMAP server doesn't support it.

I see that you mention an IMAP proxy server thrown into the loop to
try and help, but that doesn't seem to have helped.

What I don't think I've seen is mentions of mailbox sizes, and the
state of your IMAP server during logins. I noticed a few of your posts
included `top` output, but those never show your imap server.

For the most part, PHP can be a huge hog when it comes to sorting a
very large mailbox, I've seen reports of people having issues with
mailboxes that are a meer 1000 emails in size, but I run on a server
that supports server side sort, but for my testing or other bugs and
features, I have it disabled sometimes, and I never see any issues,
even with folders containing up to 40,000 emails.

Have you tried stress-testing the IMAP server alone? Perform a login,
do an LIST and LSUB, and then select a few folders. What about just
the web server, requesting random pages (not SM related)?

I'm having issues tracking down any decent documentation on iPlanet.
From what I've uncovered, it's been renamed by Sun to "Sun ONE", and
is a fully integrated application server (sounds interesting).  I
found one small document on improving performance on it, but it
doesn't seem to be mail related:

  http://developers.sun.com/sw/viewsource/char_tuningias/

Not sure that'd be too much help though.

> I've tried every tuning tip, and what I still see is huge jumps in CPU
> usage with every login,

On /every/ login? Or just the first 2 logins after the very initial
login?  SM does 3 logins before you even see anything:

  src/redirect.php   - Initial user verify
  src/left_main.php  - Folder list
  src/right_main.php - Mailbox view

Last time I checked, I don't believe src/webmail.php did a login, but
just verified the cookie and session information.

Have you tried just load testing src/left_main.php? Or just
src/right_main.php? What about opening an individual message under a
random folder via src/read_body.php?

What happens if you just stress test src/redirect.php without allowing
it to redirect? Do you still see a high load then?

Try removing your load testing pref files (the users that you are
logging in as, remove their pref files), so that you're starting from
a blank sheet, and are working on the defaults (assuming you didn't
tweak default_pref).

Double check, and make sure your IMAP server isn't configured to limit
a certain number of logins at a time, this might cause a delay with
apache/php handles by sitting in a loop.

-- 
Jonathan Angliss
([EMAIL PROTECTED])

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



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
--
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)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to