Depends on what kind of data you are generating in your servlet. Are you
opening and closing any database connections?
Also the first time the servlet is invoked, it has to be loaded into
memory. This takes time. The next time this servlet is run, it will have a
faster response time ( as it is already loaded ). Hope this helps.
Cheers,
Amar..
Burkhard Sch
�fer <[EMAIL PROTECTED]> on 03/31/99 10:34:15 AM
Please respond to "A mailing list for discussion about Sun Microsystem's
Java Servlet API Technology."
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Amarnath Nanduri/IT/VANCPOWER)
Subject: Response time of the HTML POST command
Hello,
I wrote a servlet which is started as a 'startup servlet' (I proved,
that it is initialized only once!). This servlet is invoked by a HTML
POST command from a browser (HTML form). It generates a new HTML page
using the 'PrintWriter'-class. My problem:
IT LASTS 5 SECONDS FROM SUBMITTING THE FORM TO GETTING THE RESPONSE.
(Although browser and server are running on the same PC)
Is this an usual delay? How can I get a better performance?
(I used the APACHE1.3.4 server , ApacheJServ1.0b1 and JSDK 2.0 with
WindowsNT 4.0)
Best regards
Burkhard Schaefer
____________________________________________________________
Medigration GmbH Tel.: (++49) 09131-690-87-47
Am Weichselgarten 7 Fax: (++49) 09131-690-8750
D-91058 Erlangen www.medigration.de
GERMANY
___________________________________________________________________________
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