Since the single threaded model allows only one
request to be serviced at one time, JRun is attempting
to compensate by starting up multiple instances. You
can set how many are instantiated in the JRun
administrative panel.

1. Start the Admin Tool.
2. Select the JRun servlet engine.
3. Click the Service Config button.
4. Click the General tab.
5. Modify the Single ThreadModel Pool Size field.
6. Save and Restart.

//Nicholas


--- Daniel Branch <[EMAIL PROTECTED]> wrote:
> I have recently written my first servlet that
> connects to a database to retrieve information which
> is then e-mailed to a number of different addresses.
> I ran it successfully on Servlet Runner and then
> transferred the program to JRun.  I have noticed a
> problem where the servlet runs seven times, although
> I am only running it once, hence creating seven
> connections to my interbase database.
> I have found that the problem comes from
> implementing the single-thread model, in that the
> problem disappears when the single-thread model is
> not implemented.
> If anybody knows why this is - and can offer me any
> advice on what to do next - I would greatly
> appreciate your help - either on how to correctly
> use the single-thread model, or how to make my
> servlet thread-safe - it will hopefully be accessed
> by a large number of people at any time!
> I appreciate your time and thank you in advance
>
> Daniel Branch
>
>
___________________________________________________________________________
> 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
>


=====
--
Nicholas Whitehead
Marketwide Software & Consulting Inc.
[EMAIL PROTECTED]
Home: 973 377 9335
Current Office: 212 559 9314
__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

___________________________________________________________________________
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