Shivashis,

The first time the servlet is executed, the server must instanciate the
servlet and put it into memory.  On subsequent requests, the servlet is now
accessed from memory.  This is the reason for the time differences.

Bill

-----Original Message-----
From: <Shivashis Bose> [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 19, 2000 1:48 PM
To: [EMAIL PROTECTED]
Subject: Execution time for a servlet


Hi

I am using a servlet to fetch data from MS Access database and display it to
the
browser. On the first invocation of the servlet, the time taken is around
6secs.
If the servlet is invoked again, the time redues to around 2 to 3 seconds. I
am
running the servlet on Windows 95.

Could someone explain me the reason for the different values of the
servlet's
execution time.


Thanks
Shivashis

___________________________________________________________________________
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

___________________________________________________________________________
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