my dog learned polymorphism
The moose likes Performance and the fly likes JSP taking long time to load Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "JSP taking long time to load" Watch "JSP taking long time to load" New topic

JSP taking long time to load

Ketan Mohite
Ranch Hand

Joined: Feb 14, 2006
Posts: 45

I am working on a web application, which uses Websphere as a Web server and DB2 as a backend.

In one of the module in Live Environment the speed is reduced considerably (Page takes around 10 sec to load)whereas same module works fine on Test environment(hardly takes a second or 2).
I replicated the code and database from Live to Test, still it gives fine results on Test.
I noticed that this change is only for a particular module. Rest of the modules work with the normal speed.

This problem has come into existence recently,this issue was not there before.

What can be the cause for this issue?

Thanks & Regards,

[ September 19, 2006: Message edited by: Ketan Mohite ]
[ September 19, 2006: Message edited by: Ketan Mohite ]
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3640
I believe this threda belongs to Performance section.

My blood is tested +ve for Java.
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
impossible to say without a lot more information.
What exactly is taking longer for example? Is it really the server taking longer or is it due mainly to network latency (a common thing when moving from a local machine to a remote cohosted machine)?
What are the hardware specs like local and remote? Those servers need quite some RAM to work nicely.
If it's database heavy, maybe the database is slow because of the higher volume of traffic and data than on the test machine where datasets are small and traffic is almost nonexistent.
If it's just the first request for a page after server start that's taking a long time that's normal, it's due to the JSP compiler running.
Deploy precompiled JSPs to prevent that.

It's highly unlikely something in your code is causing it to execute far slower on one machine than on another.

Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

WebSphere is a memory hog. Check out the memory.

Tivoli Performance Monitor can also help. Sic it on your application and see what kind of numbers you get. It comes standard with WebSphere.
kundan sinha

Joined: Aug 01, 2005
Posts: 15

I am also having similar problem. One of my jsp takes 6 seconds to get load in development/SIT environment but in production it is taking 40 seconds. Other jsp's are working fine.

So what could be the problem here?

About it's architecture. This jsp includes 6 jsp in it.

Every jsp on production taking 6 seconds and making this page loading in 40 seconds.

I am using Sun server 8.1 and oracle as DB.

How can i find out where is the problem?

with regards
[ September 20, 2006: Message edited by: kundan sinha ]
I agree. Here's the link:
subject: JSP taking long time to load
jQuery in Action, 3rd edition