Hi,

The best way to find out such things (system limits) is to write a small
test program, because, even if you find the info in some docs/specs,
it might not hold good in your case - depending on your machine/OS config.
Try this idea :

        Write a simple servlet (say a subclass of HttpServlet) that stays in

        a while loop inside the doGet method, so that it does not terminate
        immediately. The while loop could either be for a large number of
        seconds ( = 30 minutes, say), or an infinite loop. This is to allow
you
        time to start up multiple requests to it. To do that, write a simple
Java
        program that acts like a client to the servlet, i.e. invokes the
servlet's
        URL. Then startup multiple instances of this servlet from a shell
script
        (I'm assuming you can do this from a UNIX/Linux box here - from
NT/9x
        I'm not sure if you will be able to start up (potentially) tens or
hundreds
        of clients, since you might have to start a DOS window for each, and
        hence might run out of memory on your PC before the servlet runner
        runs out of connections).

        If you're not sure how to write such a client (that basically
simulates
        a browser making a HTTP request), check any good Java book's
        networking examples, or Jason Hunter's servlet book - I believe
        it has an example of how to do this.

        Another option might be, instead of starting multiple instances
        of the client, to write the client in such a way, maybe using
threads,
        that it can itself simulate multiple requests to the servlet (one in
        each thread). In this case you should be able to test it from NT/9x
as well.

HTH

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Vasudev Ram
Infosys Technologies Limited
Pune, India
Email : [EMAIL PROTECTED]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

> -----Original Message-----
> From: Francesca Quattrocchi [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, January 05, 2000 7:01 PM
> To:   [EMAIL PROTECTED]
> Subject:      JSDK2.1: multi connections question
>
> Hi guys!
> I've installed jsdk2.1 and it works (with jdk1.2.2).
> I wish to know how many clients connection the jsdk servlet engine can
> hold
> at the same time.
> Is there somebody who can send also some web resources address about the
> question??
> I've looked for it on java.sun, but I was not able to find anything. Am I
> stupid??? ;)
> Sorry for my bad english!
> Thanks in advance
> F.
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to