Multiple JSMs will exacerbate the problem since it will only increase the
number of threads Linux has to manage.  Multiple JSMs has nothing to do with
performance.  They are used for separating servlet contexts in JRun 2.x, and
for configuring unique JVM/environment properties for separate applications.

If I understand you correctly, you are spawning 50 threads per user to do
some work in your servlets.  Is that correct?  If so, you have a huge design
flaw.  As you can see, your app scales horribly.  It's generally a bad idea
to spawn threads in servlets.  That's not what servlets are for.  If you
want to write a networked app that does some work using lots of threads,
write a stand alone app.  Servlets work best in a request/response
environment, handling relatively short and sweet requests for dynamic
content.

The only "out-of-the-box" thing that might help your situation is to use
IBM's 1.1.8 JVM for Linux, which is very fast.  It should be able to handle
your thread load too, but I hear ocasional reports of stability problems
with IBM's 1.1.8 on Linux.  The more fundamental problem is the application
design.  I can understand using a servlet to give HTTP access to your
clients, but using the servlet engine to handle around 500 threads per 10
users is extreme.   Maybe try doing the searches in a separate process and
getting the results into your servlets via a database query or an RMI
trnasaction.  I'm not sure what else to suggest.

Scott Stirling

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of krishna srinivasan
Sent: Wednesday, June 14, 2000 4:27 PM
To: [EMAIL PROTECTED]
Subject: Multiple JSM.


Hi,
My application spawns as many as 50 threads/user and searches the internet
for parts.In a scenario of 10 users  the performance is poor.I was
considering multiple JSM's on the same machine if it could improve the
performance.

I'm running JRUN 2.3.3 on Apache 1.3.12 with Redhat as OS.

Can i get a suggestion on the use of multiple JSM's and their advantage.Will
it really help in improving the performance?

Any documentation will be very helpful.

appreciate u'r inputs,
Krishna.

===========================================================================
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