PDA

View Full Version : Disabling runtime code change checks on Tomcat


kjkoster
22-07-2008, 10:28
Dear All,

Here is a small performance tweak I ran into when discussing a caching issue on IRC. Tomcat context files have a switch that allows us to switch off application reloading. Check out the documentation of the context definitions (http://tomcat.apache.org/tomcat-6.0-doc/config/context.html), search for the word "reloadable". Setting this switch to "false" gives a small run-time performance increase. I have not measured this, so I cannot tell you if you'll even notice.

Of course, this is only useful for production machines, where there is no need to change any code on the fly.

Does anyone use this switch in production? Do you have any measurements on how much time this saves per request?

Is this setting present on other application servers? How do I change this in other application servers?

Kees Jan

Barry
24-07-2008, 10:18
Does it really save per request? because I believe Tomcat just has a seperate thread doing the file change checks on the filesystem at regular intervals.
But it makes sense to switch it off in the production since nobody ever changes code in production :D