This message is slightly out of context. Bear with me. Listen to my
reasoning about managing multithreaded servlets.(all of them are).
Ok. Here We go.
U have a class. U create objects of the class. Methods are common between
objects, data is specific. Ok. Classical C++.
With Servlets, the threat is that u have one instance, where data and
methods are shared, if u with to avoid data corruption, u can implement the
above classical object creation method, in servlets, all u have to do is to,
move all your
servlet variables to a table, for each user keep a record full of variables
concerning them, and let's say, each user is represents a thread, and
sessions are tracked.
So, your class will only have code, all variables are in tables, and each
thread gets its own variable set, to manipulate variables, read them from
table manipulate them and return results. Think about this.
U will still need to use synchronised blocks, because
to read variables relevant to a thread , u have to move the record pointer
and read the values.
Thing, test and reply. I am a VB programmer , switching to Java servlets,
, started teaching myself Servlets about 15 days ago.
Thanks. Sorry to be long.
----- Original Message -----
From: Mark Wilcox <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 14, 2000 7:57 PM
Subject: Re: Multiple JSM.
> I think you mean JVM.
>
> Multiple JVM is not a bad thing to look at. Java has problems with
> more than 20 threads per JVM and it's even worse on something
> like Linux where it uses green threads (e.g. it's reall just a single
> thread, made to look like a multi-threaded application).
>
> Mark
>
>
> On 14 Jun 00, at 13:26, krishna srinivasan wrote:
>
> > 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.
> > ________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> >
> >
===========================================================================
> > 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
> >
> >
>
>
===========================================================================
> 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
===========================================================================
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