Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the recommended procedure for deployment of Java Web App in tomcat? Drop the uncompressed directory or just drop the war? Im asking because the war is compressed, doesnt it have a performance cost?

share|improve this question
up vote 1 down vote accepted

By default, Tomcat will uncompress your WAR during deployment, so the only penalty you will pay is for the time to decompress the WAR file at that time (which shouldn't be much).

I find WAR files to be more convenient for deployment because you just copy a single file instead of doing a recursive-scp or something like that.

share|improve this answer
I feel better knowing that. – Jhonnytunes May 25 '12 at 14:57

Deployment performance cost should not be a thing to worry about.

The only way to answer your questions is to make a real test, 'cause it depends on your application size, number of files in it, server parameters and many other things.

share|improve this answer

It didn't have any noticeable performance as far as I remember but also have in mind that you need to construct and redeploy the whole WAR file each time you want to push an update (even for just one .class)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.