----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

>True, in a multi-user env. but in this particular case I am the only
>user.
>I make a request to a servlet, the servlet makes an instance of some object
>and calls one of its methods (the one I sent) which sometimes works and
>sometimes takes > 10 seconds to execute for no obvious reason.

Try this as a test...

- Move the guts of your servlet's doGet into a separate function that can be
called from a test harness
- Create a test class that

   - Instantiates your servlet class
   - Repeat the following...
      - Creates a new thread
      - The new thread calls the guts of your doGet
      - The main driver thread sleeps for an arbitrary period

Do all your jdbc calls happen instantaneously?  Do some of them take a long
time?

Another thing to try...

- Try using manual mode.  
- Don't use the zone's repository, set up the classpath when you invoke
Java.  (This is only for tracking down this problem).

When you have everything set up so you can run your servlet in manual mode,
run the test class above rather than JServ.  That way you know that your
running under the *exact* same Java environment.

Happy hunting,
Dan



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to