[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: deployment problems when i replace the war file
do-not-reply at jboss.com
Mon Sep 8 11:36:43 EDT 2008
I scanned the docs for a description of hot deployment but this was all I found:
So here is a more detailed explanation.
Every 5 seconds (by default, you can adjust this), a thread within the app server wakes up and scans the deploy directory looking for changes. It looks mainly at application archive files (for example EAR and WAR files) or primary configuration files within exploded application directories (for example, the WEB-INF/web.xml file within an xxx.war directory). If the file has been updated (the current modification timestamp is more recent that what it was the last time the hot deployer thread ran), then the hot deployer thread will undeploy the application and deploy it again.
The primary purpose is so that you can deploy an update to an application without having to bring the server down and back up; which is a big help in a development environment.
In a production environment it has some unwanted side-effects. First, any existing sessions are invalidated which means that any users in the middle of doing something will have to start over again. Second, hot deployment tends to not clean up the old classes from the prior versions of the app. Thus after several hot deployments you will find yourself running out of room in the permgen and experiencing out-of-memory error. Third, if there are no updated applications, the hot deployment thread runs for no good reasons and causes a slight performance slowdown. For these reasons, I always recommend turning hot deployment off in a production environment.
Having said all that, there is nothing magical about hot deployment that will solve the 404 error.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175094#4175094
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4175094
More information about the jboss-user