6 Replies Latest reply on Apr 7, 2006 10:43 AM by Peter Johnson

    Is Linux better for running Jboss with MySQL than Windows?

    Dave Chen Master

      Is Linux better for running Jboss with MySQL than Windows?
      Linux has two versions:
      FreeBSD, Fedora
      which one is better?

      Thanks for advice

        • 1. Re: Is Linux better for running Jboss with MySQL than Window
          Peter Johnson Master

          All of the performance testing we have done shows negligible performance differences between running JBoss on Windows or Linux on the exact same hardware. So the choice should really be one of ease of administration and total-cost-of-ownership.

          • 2. Re: Is Linux better for running Jboss with MySQL than Window
            Dave Chen Master

            Thanks for reply.

            Do you use MySQL with JBoss for testing?
            some people say MySQL is more native to Linux and perform better on Linux. Is this true?

            My application is: JSF + JBoss + Hibernate + MySQL.

            Thanks for advice.

            • 3. Re: Is Linux better for running Jboss with MySQL than Window
              Peter Johnson Master

              We test with Oracle, MySQL and PostgreSQL, and have run the databases on both Windows and Linux (same with JBoss, running it on Windows and Linux). Usually we run matching OSes, that is, if we have JBoss on Linux we also have the database on Linux, but we have ocassionally run the database on the other OS. It usually depends on what hardware we have available and what OS is currently installed on it. Since the performance we have seen is roughly similar for any given software under either OS, we are fairly agnostic as to which OS we use. Except that on occasion we find that a particular Linux distro won't run on a 32 processor system, so we go with Windows or another Linux distro (we run RHEL 4 and SLES 9).

              • 4. Re: Is Linux better for running Jboss with MySQL than Window
                Dave Chen Master

                Thanks again.

                There is one pre-imaged Linux machine with
                Fedora Core 3
                mysql-3.23.58-16.FC3.1

                are they too old for running lastest version of JBoss + Hibernate + JSF?

                Is it easy to upgrade MySQL?
                Thanks!


                • 5. Re: Is Linux better for running Jboss with MySQL than Window
                  Dave Chen Master

                  Windows 2003, or Windows XP
                  which one is better to run web application(JBoss+MySQL) ?

                  Is Windows XP designed to replace 2003?
                  Thanks!

                  • 6. Re: Is Linux better for running Jboss with MySQL than Window
                    Peter Johnson Master

                    Sorry, but I haven't run with Fedora Core 3. I have run FC 4 and FC 5 with JBoss 3.2.6 and higher (now running 4.0.3SP1), and with MySQL 4.x and higher (now running 5.0). However, JBoss and MySQL should run just fine on FC 3, but make sure you get the JVM from Sun, the JVM that comes with FC 3 will not work (my assumption based on the fact that the JVMs on FC 4 and FC 5 won't run JBoss).

                    Regarding Windows XP and 2003, 2003 came out after XP and is a newer version of Windows (it was originally supposed to be the server version of that level of Windows but MS added various things, such as added security enhancements to it). One technical question is how many CPUs are in your server system? XP is limited to 2 CPUs (I run XP on a 2 CPU system with hyperthreading turned on) while 2003 will run on up to 32 CPUs. But the biggest question is a legal issue rather than a technical one. Windows XP is limited to 10 client connections, and services such as file sharing and IIS enforce that limit. While you can run Apache or Tomcat or JBoss with more than 10 connections on XP, legally that might not be permissible. You should read and carefully understand the XP license agreement if you plan to host JBoss on XP. Otherwise, you should go with 2003.