aspose file tools*
The moose likes Tomcat and the fly likes Which OS is better for Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Which OS is better for Tomcat" Watch "Which OS is better for Tomcat" New topic
Author

Which OS is better for Tomcat

Mohamed Mubeen
Greenhorn

Joined: Aug 09, 2007
Posts: 7
Hi Everyone,

We are in the process of getting java/web project.
We proposed to develop this application in Java with
Spring and Struts. Also we are going to use Tomcat as
the web server.

I wanted to know which OS is better for deployment
of this application.

NOTE : This application is not that much complicated.

Please compare with Linux(RedHat) Vs Windows

Thanks


Mubeen - Software Engineer<br />Fortunaglobal Private Limited - SriLanka.
Ajay Vikas
Ranch Hand

Joined: Nov 08, 2006
Posts: 66
I believe this depends on the application size war file your are deploying.
Typically windows 2k is good with its performance with small size war file. But when we go for Linux systems large war or ear file deploying is good. Also i faced tomcat startup problem in both the systems. I could not able to find the much difference.

- Vikas.
SCJP 1.4.
Mohamed Mubeen
Greenhorn

Joined: Aug 09, 2007
Posts: 7
Thank Ajay,

Please update is there any important
issues related to this like security and
other concern also..............

very best regards.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42930
    
  68
I sincerely doubt that the size of the war file plays any role. I've had no problems deploying war files of 100MB size on either Windows or Linux/Unix.

If you're concerned about security, Windows has more problems in that area than Linux, so unless you have good admins that know what hey are doing (not a given) go with Linux.

But in general, I wouldn't make the decision of which OS to use dependent on Tomcat; it runs well on both.
Ajay Vikas
Ranch Hand

Joined: Nov 08, 2006
Posts: 66
I believe security does not play any great difference. Because it is product dependent which is independent of OS. But debugging log and application is cumbersome in Linux when compared to windows.

Ulf :
I believe size of war file matters because tomcat takes time in reading resources of a war file which is best in Linux than in windows. This again depends on JVM start parmas :-).

So finally I feel is Tomcat performance does not vary much across OS unless we configure and tune it well.

-Vikas
SCJP 1.4.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42930
    
  68
I believe security does not play any great difference. Because it is product dependent which is independent of OS.

Beg to differ profoundly. There are great differences in security between OSes, much more than between a server like Tomcat running on one OS vs. running it on a different OS. Security always concerns a complete environment; the most secure server in the world doesn't help if the underlying OS is not secure.

But debugging log and application is cumbersome in Linux when compared to windows.

Not sure what you mean by this. Web apps running in Tomcat are the same everywhere in terms of logging and debugging. Can you elaborate?

I believe size of war file matters because tomcat takes time in reading resources of a war file which is best in Linux than in windows.

That may or may not be the case, but startup time on a production system would be an exceptionally bad criterion to choose an OS, especially if the difference is (at most) between seconds and minutes (and probably much less).
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1836
    
    7

Originally posted by Ulf Dittmer:
If you're concerned about security, Windows has more problems in that area than Linux, so unless you have good admins that know what hey are doing (not a given) go with Linux.


In turn, I sincerely doubt that admins who have no clue as to what they're doing will fare any better at setting up a secure system *nix than they would under Windows
[ August 18, 2008: Message edited by: Jelle Klap ]

Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which OS is better for Tomcat