File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP taking long time to load

 
Ketan Mohite
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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,
Ketan

[ September 19, 2006: Message edited by: Ketan Mohite ]
[ September 19, 2006: Message edited by: Ketan Mohite ]
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe this threda belongs to Performance section.
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
Kundan
[ September 20, 2006: Message edited by: kundan sinha ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic