----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Well it is a long story about why I need to do this.  I realize that a JServ
session is inexpension but not the rest of the resources we need to use for
each session.  When we have a new session, we need to have a connection to
our middle-tier server, the third party product we have been using will then
allocate 2 more threads for the new connection. (Yes I can't believe that
either) In a high load period (say 1000 users), our linux server will run
out-of threads rapidly (Linux by-default can only have around 500
threads/processes) and JServ will then die.

In our case, it will make more sense to limit the number of sessions instead
of number of connections.

Any suggestion will be appreciated.

Thanks
Conrad

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jean-Luc
> Rochat
> Sent: Friday, November 12, 1999 12:50 PM
> To: Java Apache Users
> Subject: Re: Max session
>
>
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files.  Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Conrad Chan wrote:
> >
> > ----------------------------------------------------------------
> > BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> > WHEN YOU POST, include all relevant version numbers, log files,
> > and configuration files.  Don't make us guess your problem!!!
> > ----------------------------------------------------------------
> >
> > Is there a configuration setting that can set the maximum number of
> > concurrent session could be created in JServ 1.0?  I
> checked through the
> > configuration files and the only thing I can see is max connection.
> >
> Why do you want this ? a session is only few bytes of inexpensive RAM.
>
> You've got the source code, it's max 10 lines to code if you want to
> loose customers ;-)
> You can limit the number of simultaneous connexions, which is not the
> same, using the correct parameter.
> You can also limit the timelife of existing but unused
> sessions (garbage
> the oldest).
>
>
> Jean-Luc
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]
>



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to