This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Application slow after server restarts  RSS feed

 
Atul Mishra
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,

I am developing an application using Struts+Eclipse+Tomcat. The application is mainly used for maintaining a database, like performing Add,Edit options through screens. Right now I am in the development phase and what I noticed is, after a server start up[after the server starts, all initial runs are taking long times. As an example, all jsps when initially getting loaded are very slow. Also all "Submit" actions[includes database inserts,deletes,updates etc are slow when I do it the first time]. The application is running in my laptop right now and is running in eclipse+built in Tomcat.

If Any one can please tell me why appreciated.

Thanks.
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As an example, all jsps when initially getting loaded are very slow


Jsps when they are being accessed for the *first time* are first compiled to a servlet and then rendered. The compilation of the Jsp takes time. The jsp will be recompiled only if the jsp was changed before it is accessed next. You might consider precompiling your jsps. Here are a few links for the same:

Improve performance of application using precompilation of JSPs

Precompile JSP using JSPC, through build
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!