One problem you may encounter with java is the (current) lack of non-blocking
i/o . This means that for every connection, you need a thread running, because
you can't loop across the open sockets and check for waiting data, like you can
in C.  Most JVM's don't scale well into the 1000's of threads so this will hurt
-- though I think possibly TowerJ and a couple of other JVM's are good at this
(IBM claim the OS/390 one won't even blink at this stuff - if you've got one
handy ;o) . JDK 1.4 i think will have the new I/O APIs. It'll be a while before
you can use that though.

I seem to remember HP implemented a select() call of sorts in order to cope with
this at one point.

Ken.





[EMAIL PROTECTED] on 30/08/2000 15:39:38

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:   (bcc: Ken X Horn)
Subject:  Re: highly scalable network server app




You will need much more memory than with the C++ model but that is
practically free. I suspect that you will also need a faster processor, but
again, who cares? The cost of deployment is hardly impacted by the cost of a
server in most cases in my experience. You are going to want to write a lot
of code to do pooling of resources and pay special attention to memory
management but Java makes that relatively easy as well.

I believe that if you can do it with C++ then you can do the same scaling
with a little work with Java. And you get tremendous benefits as well. Java
is much more maintainable than C++. Porting to a new platform ought to be
trivial. You get the benefits of very well designed API's like JDBC and the
Java 2 collection classes.


-----Original Message-----
From: skeptical [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 30, 2000 1:07 PM
To: [EMAIL PROTECTED]
Subject: Re: highly scalable network server app


corey:

thanks for your info. just another note on nt. first of all, i'm not a msft
fan. and i also love the concept of java's write once run anywhere. my
impression is that it's not very scalable. i'll tell you my experience and
you can tell me what you think. my company recently wrote a client server
app. we wrote the app server which services about 10k tcp connections with
incoming requests for a sql server. we used i/o completion port such that
socket i/o is very efficient. the machine we use is a single celeron 500
with 256mb ram, running windows 2000 advanced server. under our stress test
with 10k users, we are not hitting any bottlenecks. my question is: if i
were to do this with java, 1. how will i write the code? 2. what hardware do
i need in order to achieve the same performance?

tks,
peter

----- Original Message -----
From: "Corey A. Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 31, 2000 1:36 AM
Subject: Re: highly scalable network server app


> Just to comment...  i used Sybase Jaguar CTS servers in a recent project
> i did for a very large client...  using two Solaris servers...
> clustered...  And they are easily handling 1000 simultaneous EJB
> connections each....
>
> Cj
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets







This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its
subsidiaries and affiliates.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to