Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Tomcat takes a long time to serve .jsp file

 
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 20841
125
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!