This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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 ]
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.