Jack,

One thing you could try is to create your own log file for the servlet that
will track the time it takes to process the servlet request.  This will tell
you how long the actual request takes.  The rest of the time can be attributed
to the communications line.

for example:

public void servletTimer(HttpRequest req, HttpResponse resp)
{
  // -- open the log file

  // write the start time
  logfile.write("Start processing: " + System.currentMillis());

  // call your actual servlet processer function
  actuallRequesetProcessor(req, resp);

  // write the end time
  logfile.write("  End processing: " + System.currentMillis());
}


This method would allow you to compare actual processing time on your
development environment and the time on the ISP.

Tim Gallagher



Jack Wang wrote:

> Hi,all,
>
> I have developed a project with servlet and MySQL in windows 98 platform.
> Now I hosting the project web in a ISP's server. In my local developing
> environment, the speed is fast, I can browse the dynamical html page
> retrived from MySQL in 1 to 2 seconds, and the servlet engine is JRUN.
>
> But when the web is transfered to ISP's machine, the speed is very very
> sloooooowwwwwwwwwww, about 20 seconds, the ISP's machine is also setup with
> MySQL and JRUN, where is the problem?
>
> Any help are appreciated very much, any help, any help, I am eager for
> resolving the problem.
>
> Thanks.
>
> Jack
>
> ___________________________________________________________________________
> 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