JBoss/Tomcat (which I assume you are referring to) has default behaviour whereby the compiled JSPs get deleted on graceful server shutdown. Killing the process hard gets round this issue, or there is a config setting which disables this. You need to edit the tomcat config file ($JBOSS\server\default\deploy\jbossweb-tomcat41.sar\META-INF\jboss-service.x ml) and add:
<attribute name="DeleteWorkDirs">false</attribute> Between <attribute name="SnapshotInterval">2000</attribute> & <attribute name="Config"> With this change you'll only have poor performance the very first time a page is accessed, regardless of reboots etc. Paul > -----Original Message----- > From: Mike Elliott [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 28, 2004 12:50 AM > To: Struts Users Mailing List > Subject: Compilation of JSP at time of deployment? > > > I have a neglected Ultra 1, now running Solaris 9, which I've rescued > to use as a web application server. It's running JBoss just fine and > when my web application is loaded and run the response time, while > slow (on the order of a second or two per page) is still reasonable. > > The problem comes about after redeploy, or reboot, or JBoss restart, > or whatever, which causes JBoss to forget all the compiled servlets > for the application. When the first user encounters such a page the > page is, of course, compiled and made ready for use -- but this can > take tens of seconds to accomplish, leaving a less than sparkling > impression for the user. > > Is there a way to force all the JSPs and ActionForms, etc., to be > compiled and ready to go at the time of deployment? Even if it takes > several minutes to achieve this, it would be worth it rather than > delaying until the first user/victim accesses the page. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ********************************************************************** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]