Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

3 Answers 3

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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.