Here is the code. Danny/Noel/Peter if you could test this for load. This post has the right way to use scheduler for James fix.
The watchdog approach calls for one thread per handler to watch for timeout. So per connection there will be 2 threads - Handler and Watchdog. Although the Thread will mostly be in wait-notify state, it is still very heavy and unavailable. In this approach there is a scheduler per handler, one additional thread. This will allow James to scale more smoothly. I have tested this with cornerstone scheduler and after replacing cornerstone scheduler with another implementaion that I have been using. It is entirely possible that watchdog approach may be better, but by looking at the thread semantics it would be a surprise to me. I suggest taking this POP3 implementation and the one Peter has sent out and doing a load comparison. There is nothing better than 2 developers pushing their point of view and the gain is to be had by all. :-) Harmeet ----- Original Message ----- From: "Noel J. Bergman" <[EMAIL PROTECTED]> To: "James Developers List" <[EMAIL PROTECTED]> Sent: Saturday, October 12, 2002 3:30 PM Subject: RE: [PATCH] Removing Scheduler dependency, refactoring service code > I have been running James as a primary mail server all summer. In general > it works, but try load testing. > > And yes, please post your code. > > --- Noel > > -----Original Message----- > From: Harmeet Bedi [mailto:[EMAIL PROTECTED]] > Sent: Saturday, October 12, 2002 20:43 > To: James Developers List > Subject: Re: [PATCH] Removing Scheduler dependency, refactoring service > code > > > From: "Noel J. Bergman" <[EMAIL PROTECTED]> > > If I quote the Avalon developers telling you that you're wrong, does that > > count? ;-) You should be able to find the discussion in the Avalon > > Developers mailing list archive. > > Not likely. I have been using scheduler for 1+ year. This mail goes through > to you with the help of a scheduler > I'll make a patch, reading code is always more interesting than quoting. > > > > > Cheap bet, by the way. I don't drink beer. :-) > > Good habit. :-) > > Harmeet > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
POP3Handler.diff
Description: Binary data
POP3Handler.java
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
