[imp] imp causes high load ?
Rich Lafferty
rich@horde.org
Tue, 6 Feb 2001 12:25:25 -0500
On Tue, Feb 06, 2001 at 05:54:20PM +0100, Atif Ghaffar (aghaffar@developer.ch) wrote:
> > Because IMP does not
> > use persistent imap connections a new imapd process is spawned and
> > closed down each time you perform an imap operation.
>
> Since we are beating this one.
> Why doesnt IMP keep a persistent connection?
Mostly because no-one's written it to do so yet. :-) It's not trivial,
though -- the simplest problematic question is "When do you close the
connection".
> I know Netscape Messanger can keep persistent connections.
Netscape Messenger starts running when you open it, and stops running
when you close it. IMP starts and then stops running every time
someone loads up a new page, window, or frame.
-Rich
--
------------------------------ Rich Lafferty ---------------------------
Sysadmin/Programmer, Instructional and Information Technology Services
Concordia University, Montreal, QC (514) 848-7625
------------------------- rich@alcor.concordia.ca ----------------------
>From chuck@horde.org Date: Tue, 6 Feb 2001 12:21:43 -0500
Return-Path: <chuck@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 95391 invoked from network); 6 Feb 2001 17:22:38 -0000
Received: from r94aag005136.sbo-smr.ma.cable.rcn.com (HELO marina.horde.org) (209.6.192.126)
by horde.org with SMTP; 6 Feb 2001 17:22:38 -0000
Received: by marina.horde.org (Postfix, from userid 33)
id D9B6E3CA9; Tue, 6 Feb 2001 12:21:43 -0500 (EST)
Received: from 206.243.191.252 ( [206.243.191.252])
as user chuck@marina by marina.horde.org with HTTP;
Tue, 6 Feb 2001 12:21:43 -0500
Message-ID: <981480103.3a8032a79323d@marina.horde.org>
Date: Tue, 6 Feb 2001 12:21:43 -0500
From: Chuck Hagenbuch <chuck@horde.org>
To: imp@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
Subject: RE: [imp] Can't get past the login screen
Quoting "Timothy M. Butkiewicz" <Timothy@cyberMIND-usa.com>:
> I have mcrypt compiled with PHP
Okay... but as I mentioned earlier, you're going to need to poke a bit in the
IMP class - createSession(), setupSession(), and authenticate() - to see what
point it's getting to and where it's dying.
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
"My intuitive grasp of math often leads me astray." -Me
>From chuck@horde.org Date: Tue, 6 Feb 2001 12:23:03 -0500
Return-Path: <chuck@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 95985 invoked from network); 6 Feb 2001 17:23:57 -0000
Received: from r94aag005136.sbo-smr.ma.cable.rcn.com (HELO marina.horde.org) (209.6.192.126)
by horde.org with SMTP; 6 Feb 2001 17:23:57 -0000
Received: by marina.horde.org (Postfix, from userid 33)
id D01D63CA9; Tue, 6 Feb 2001 12:23:03 -0500 (EST)
Received: from 206.243.191.252 ( [206.243.191.252])
as user chuck@marina by marina.horde.org with HTTP;
Tue, 6 Feb 2001 12:23:03 -0500
Message-ID: <981480183.3a8032f7a6421@marina.horde.org>
Date: Tue, 6 Feb 2001 12:23:03 -0500
From: Chuck Hagenbuch <chuck@horde.org>
To: imp@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
Subject: Re: [imp] getting weird now...
Quoting Mark Seelenbacher <mark@robesoncounty.org>:
> I've got the new Secret.php with the mcrypt_blowfish > mcrypt_gost change
> (tried it both ways after I reinstalled php, incidentally) and still I'm
> getting nothing after login (total blank screen). Still no segfaults in
> apache so I'm at a loss. Let me know if anyone has any ideas, or if I'm just
> missing something obvious.
Well, can you put some debug code in to see where things are dieing (spelling
that word just always looks wrong)? If you view source on the blank page, is
there anything? Etc...
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
"My intuitive grasp of math often leads me astray." -Me
>From chuck@horde.org Date: Tue, 6 Feb 2001 12:24:08 -0500
Return-Path: <chuck@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 96426 invoked from network); 6 Feb 2001 17:25:02 -0000
Received: from r94aag005136.sbo-smr.ma.cable.rcn.com (HELO marina.horde.org) (209.6.192.126)
by horde.org with SMTP; 6 Feb 2001 17:25:02 -0000
Received: by marina.horde.org (Postfix, from userid 33)
id 07B0B3CA9; Tue, 6 Feb 2001 12:24:09 -0500 (EST)
Received: from 206.243.191.252 ( [206.243.191.252])
as user chuck@marina by marina.horde.org with HTTP;
Tue, 6 Feb 2001 12:24:08 -0500
Message-ID: <981480248.3a803338c3409@marina.horde.org>
Date: Tue, 6 Feb 2001 12:24:08 -0500
From: Chuck Hagenbuch <chuck@horde.org>
To: imp@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
Subject: RE: [imp] Intallation Problem
Quoting Christopher Stein <stein@eecs.harvard.edu>:
> Why php4? I am running php-3.0.18 w/ imap-2000c and am having problems
> with login. Do you think my use of 3.0.18 is the cause? How can
> IMP use php4, when most of the scripts are written in php3 ?? (or
> at least suffixed by .php3).
php3 and php4 are nearly the same language; it's still php. IMP 2.2.x is
written to work with both; the file extension is meaningless except as a way of
telling your webserver to differently handle different kinds of files.
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
"My intuitive grasp of math often leads me astray." -Me
>From chuck@horde.org Date: Tue, 6 Feb 2001 12:25:14 -0500
Return-Path: <chuck@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 96935 invoked from network); 6 Feb 2001 17:26:08 -0000
Received: from r94aag005136.sbo-smr.ma.cable.rcn.com (HELO marina.horde.org) (209.6.192.126)
by horde.org with SMTP; 6 Feb 2001 17:26:08 -0000
Received: by marina.horde.org (Postfix, from userid 33)
id 5A7003CA9; Tue, 6 Feb 2001 12:25:14 -0500 (EST)
Received: from 206.243.191.252 ( [206.243.191.252])
as user chuck@marina by marina.horde.org with HTTP;
Tue, 6 Feb 2001 12:25:14 -0500
Message-ID: <981480314.3a80337a2dff2@marina.horde.org>
Date: Tue, 6 Feb 2001 12:25:14 -0500
From: Chuck Hagenbuch <chuck@horde.org>
To: imp@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
Subject: Re: [imp] imp-2.2.4 logging in and ie5.5
Quoting Network <network@network.shacknet.nu>:
> I'm assuming you either mean; scripts that come with horde & imp -or-
> scripts such as; phpinfo() -and- a simple 'hello world' script. Answer=
> yes, simple scripts work.
Something like
<?php
$stream = imap_open('{your.server}', 'username', 'password');
$check = imap_check($stream);
var_dump($check);
imap_close($stream);
?>
... gives you reasonable output?
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
"My intuitive grasp of math often leads me astray." -Me
>From chuck@horde.org Date: Tue, 6 Feb 2001 12:26:09 -0500
Return-Path: <chuck@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 97349 invoked from network); 6 Feb 2001 17:27:03 -0000
Received: from r94aag005136.sbo-smr.ma.cable.rcn.com (HELO marina.horde.org) (209.6.192.126)
by horde.org with SMTP; 6 Feb 2001 17:27:03 -0000
Received: by marina.horde.org (Postfix, from userid 33)
id 4B3BA3CA9; Tue, 6 Feb 2001 12:26:09 -0500 (EST)
Received: from 206.243.191.252 ( [206.243.191.252])
as user chuck@marina by marina.horde.org with HTTP;
Tue, 6 Feb 2001 12:26:09 -0500
Message-ID: <981480369.3a8033b128d87@marina.horde.org>
Date: Tue, 6 Feb 2001 12:26:09 -0500
From: Chuck Hagenbuch <chuck@horde.org>
To: imp@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
Subject: Re: [imp] IMP + MySQL
Quoting doug moore <lordscarlet@idledreams.net>:
> Ok.. my IMP-cvs works great with the default settings. I had lots of
> trouble getting it to even display with Mysql setup for preferences and
> connection tracking.. Now that I can get a login prompt finally I can't
> login. I get an invalid username/password setting, but if i remove the
> mysql settings it works fine.
Have you tried preferences and connection tracking seperately? Have you made
sure that the preferences database is empty (there are some sticky issues still
around with pre-existing prefs)?
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
"My intuitive grasp of math often leads me astray." -Me
>From chuck@horde.org Date: Tue, 6 Feb 2001 12:28:07 -0500
Return-Path: <chuck@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 98199 invoked from network); 6 Feb 2001 17:29:01 -0000
Received: from r94aag005136.sbo-smr.ma.cable.rcn.com (HELO marina.horde.org) (209.6.192.126)
by horde.org with SMTP; 6 Feb 2001 17:29:01 -0000
Received: by marina.horde.org (Postfix, from userid 33)
id CC1043CA9; Tue, 6 Feb 2001 12:28:07 -0500 (EST)
Received: from 206.243.191.252 ( [206.243.191.252])
as user chuck@marina by marina.horde.org with HTTP;
Tue, 6 Feb 2001 12:28:07 -0500
Message-ID: <981480487.3a803427a739e@marina.horde.org>
Date: Tue, 6 Feb 2001 12:28:07 -0500
From: Chuck Hagenbuch <chuck@horde.org>
To: imp@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
Subject: Re: [imp] imp causes high load ?
Quoting Atif Ghaffar <aghaffar@developer.ch>:
> Since we are beating this one.
> Why doesnt IMP keep a persistent connection?
> Is it possible to keep a persistent connection?
>
> I know Netscape Messanger can keep persistent connections.
> Is it a limitation from the c-client library?
Netscape Messenger is an application that stays in memory for the lifetime that
it is run. IMP is a php script. To keep a persistant connection, apache would
need to hold on to it for us. However, there's no way that I know of to have a
global pool of resources shared between all apache children, and if persistant
connections weren't shared between children, then you'd get one connection per
user per apache process, which would break things horribly and be even worse
than we have now.
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
"My intuitive grasp of math often leads me astray." -Me