james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joan Carles Nez <joancar...@indibil.com>
Subject Re: System Load
Date Mon, 26 Feb 2001 10:23:47 GMT
Hi, 

   Ok. Would it be a matter of writing a native C function that queries system
load and call that from the JVM via JNI?
Doing this for Linux should be easy, don't know about Windows...

       J. C.
  

On Sun, 25 Feb 2001 05:51:12 -0800
Federico Barbieri <scoobie@betaversion.org> wrote:

> "Joan Carles Núñez" wrote:
> > 
> > Hi all,
> > 
> >    I have been playing with James and I am very impressed with its design
> > and stability.
> > I have been testing it with MySQL, Interbase and I am about to test it with
> > Oracle. I have written a stress test program which you can find at the end
> > of this message. When I push the server to handle heavy loads the JDBC driver
> > for Interbase starts to throws Exceptions when recovering blobs.
> > 
> > Question: Does James deal with system load limits? Looking at the source of
> > sendmail I see that they use a function called "shouldQueue" which takes the
> > system load and if it is higher than 1 then it queues the message. It starts
> > to deliver more messages when the load goes under 1. In this way it protects
> > itself like transaction monitors do. With James I have seen my machine go to
> > load levels of 10 or higher. Does James have/need such functionality?
> > 
> > Cheers,
> > 
> >        Joan Carles
> > 
> 
> If I'm not wrong james impl queque ALL incoming messages so processing
> and sending is done asichronusly. SMTPHandler send messages to james
> wich just queque them (James.java line 403). 
> 
> It could be nice to be able to dynamically change threads priority to
> balance pushes and pops in and from the queque thou I think it's quite a
> pain to query the jvm for system load...
> 
> Fede
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-dev-help@jakarta.apache.org

Mime
View raw message