wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat takes a long time to serve .jsp file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat takes a long time to serve .jsp file" Watch "Tomcat takes a long time to serve .jsp file" New topic
Author

Tomcat takes a long time to serve .jsp file

Alan Blass
Ranch Hand

Joined: Mar 21, 2010
Posts: 119
Hi!

I am running Windows Server 2008 R2 and Apache Tomcat 7.0.14 and JDK 1.6.0_25.

I have a webpage which has a javascript:

window.location = 'test.jsp';

When I activate the window.location command through a button, firefox shows:

Waiting for <ipaddress>

and the test.jsp takes about 30 seconds to load. test.jsp has absolutely nothing but a

<%@page contentType="text/html" pageEncoding="UTF-8"%>

and hello world in html.

I have tried loading a test.html page and the response is immediate. It seems that only the test.jsp is having problem.
How can I speed up the loading of test.jsp? How can I find out where the problem is?

Thanks.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16158
    
  21

Fire up the Windows task manager and pay attention to memory and CPU usage while you do this. It's quite possible you have insufficient RAM and your Windows machine is bogged down doing virtual memory page swaps.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat takes a long time to serve .jsp file