Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JSP taking long time to load

 
Ranch Hand
Posts: 45
  • 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 ]
 
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe this threda belongs to Performance section.
 
Ranch Hand
Posts: 1847
  • 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.
 
author and cow tipper
Posts: 5000
1
Hibernate Spring Tomcat Server
  • 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.
 
Greenhorn
Posts: 15
  • 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 ]
 
It's a beautiful day in this neighborhood - Fred Rogers. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic